DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5150>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5150

webapp module doesn't compile

           Summary: webapp module doesn't compile
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: WARP Connector
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Attempting to compile the mod_webapp module on my Debian 2.1/Intel machine gives
me this:

make[0]: Installing APR library in "/var/tmp/webapp-module-1.0.1-tc401/lib"
make[1]: Entering directory `/var/tmp/webapp-module-1.0.1-tc401'

make[1]: Entering directory "apache-1.3"
make[1]: Invoking "make  build"
make[2]: Entering directory `/var/tmp/webapp-module-1.0.1-tc401/apache-1.3'
{ 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/var/tmp/webapp-module-1.0.1-tc401/apr/include \
        -I/var/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" \
        "/var/tmp/webapp-module-1.0.1-tc401/lib/libwebapp.a" \
        "/var/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, at end of line
gcc -DLINUX=2 -DEAPI -DTARGET="apache" -DMOD_SSL=207101 -DUSE_HSREGEX -DEAPI
-DEAPI_MM -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=1
make[2]: *** [mod_webapp.so] Error 1
make[2]: Leaving directory `/var/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 `/var/tmp/webapp-module-1.0.1-tc401'
make: *** [apache-1.3-build] Error 2



The build scripts seem a little too fragile I think.

The culprit is the output from the command 'apxs -q CFLAGS', which
on my system is thus:

-DLINUX=2 -DEAPI -DTARGET="apache" -DMOD_SSL=207101 -DUSE_HSREGEX -DEAPI
-DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite

Note the '"'s around the TARGET symbol.

Running the script by hand to work around the issue seems to work ok
(but is tedious).

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to