tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jean-frederic clere <jfrederic.cl...@fujitsu-siemens.com>
Subject Re: mod_webapp fails to build
Date Mon, 03 Dec 2001 10:15:38 GMT
Andrew Savory wrote:
> 
> Hi,
> 
> I'm not having much joy with building webapp-module-1.0.1-tc401 source on
> Debian 2.2r4 i686.
> 
> 1) The instructions for building it are incorrect, as they say if you
> download a source distribution, all you have to do is:
> 
>         ./configure --with-apxs
> 
> ... unfortunately, ./configure is not there until ./support/buildconf.sh
> has been run.

I am afraid that is my fault...

> 
> 2) After doing ./support/buildconf.sh && ./configure --with-apxs && make
I
> always get a failed compile:
> 
> { APXS_LDFLAGS_SHLIB="`/usr/bin/apxs -q LDFLAGS_SHLIB` \
>          \
>         -lm -lcrypt -lnsl -ldl" ; \
>     APXS_LDFLAGS_SHLIB=`/bin/echo ${APXS_LDFLAGS_SHLIB}` ; \
>     APXS_CFLAGS="`/usr/bin/apxs -q CFLAGS` \
>         -g -O2 \
>         -g -O2 \
>          \
>         -DLINUX=2 -D_REENTRANT \
>         -I/tmp/webapp-module-1.0.1-tc401/apr/include \
>         -I/tmp/webapp-module-1.0.1-tc401/include \
>         " ; \
>     APXS_CFLAGS=`/bin/echo ${APXS_CFLAGS}` ; \
>     /usr/bin/apxs \
>         -S CFLAGS="${APXS_CFLAGS}" \
>         -S LDFLAGS_SHLIB="${APXS_LDFLAGS_SHLIB}" \
>         -o "mod_webapp.so" \
>         -c "mod_webapp.c" \
>         "/tmp/webapp-module-1.0.1-tc401/lib/libwebapp.a" \
>         "/tmp/webapp-module-1.0.1-tc401/lib/libapr.a" ; \
> } Bareword found where operator expected at (eval 6) line 1, near
> ""-DLINUX=2 -DEAPI -DTARGET="apache"
>         (Missing operator before apache?)
> Bareword "apache" not allowed while "strict subs" in use at (eval 6) line
> 1.
> String found where operator expected at (eval 6) line 1, near
> "apache" -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -g -O2 -g -O2
> -DLINUX=2 -D_REENTRANT -I/tmp/webapp-module-1.0.1-tc401/apr/include
> -I/tmp/webapp-module-1.0.1-tc401/include""
> gcc -DLINUX=2 -DEAPI -DTARGET="apache" -DUSE_HSREGEX -DUSE_EXPAT
> -I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache-1.3  -c
> mod_webapp.c
> mod_webapp.c:70: wa.h: No such file or directory
> apxs:Break: Command failed with rc=65536
> make[2]: *** [mod_webapp.so] Error 1
> make[2]: Leaving directory `/tmp/webapp-module-1.0.1-tc401/apache-1.3'
> make[1]: Exiting directory "apache-1.3"
> make[1]: *** [template] Error 2
> make[1]: Leaving directory `/tmp/webapp-module-1.0.1-tc401'
> make: *** [apache-1.3-build] Error 2
> 
> This happens with the latest CVS version too. Am I missing something
> obvious?

I think your apxs is broken, what does the following commands return?
/usr/bin/apxs -q CFLAGS
/usr/bin/apxs -q LDFLAGS_SHLIB

> Help!
> 
> Andrew.
> 
> --
> All views are my own .... who else would want them?
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message