tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4925] New: - WebApp module doesn't build on GNU/Linux
Date Fri, 16 Nov 2001 15:07:42 GMT
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=4925>.
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=4925

WebApp module doesn't build on GNU/Linux

           Summary: WebApp module doesn't build on GNU/Linux
           Product: Tomcat 4
           Version: 4.0 Final
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other Connectors
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: ma.darche@free.fr


My configuration :
* Linux 2.2.18
* Apache/1.3.9 (Unix) Debian/GNU
* gcc 2.95.2
* libc6 2.1.3 
* java 1.3.1 (build Blackdown-1.3.1-FCS)

The WebApp module doesn't build on GNU/Linux when I procede as follows :
$ ./configure --with-apxs
$ make

make[2]: Entering directory `/usr/local/webapp-module-1.0-tc40/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/usr/local/webapp-module-1.0-tc40/apr/include \
        -I/usr/local/webapp-module-1.0-tc40/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" \
        "/usr/local/webapp-module-1.0-tc40/lib/libwebapp.a" \
        "/usr/local/webapp-module-1.0-tc40/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/usr/local/webapp-module-1.0-tc40/apr/include
-I/usr/local/webapp-module-1.0-tc40/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 `/usr/local/webapp-module-1.0-tc40/apache-1.3'
make[1]: Exiting directory "apache-1.3"
make[1]: *** [template] Error 2
make[1]: Leaving directory `/usr/local/webapp-module-1.0-tc40'
make: *** [apache-1.3-build] Error 2


=============================================================================

To be able to build the Apache module I have had to modify
apache-1.3/Makefile.in. After the modification the build went to its end without
error and I could use Apache-Tomcat as expected.

So it seems that those 2 include directories were needed:
-I$(APR_INCDIR) \
-I$(SRCDIR)/include \


$(MOD): $(SRCS) $(TGTDIR)/lib/libapr.a $(TGTDIR)/lib/libwebapp.a
        { APXS_LDFLAGS_SHLIB="`$(APXS) -q LDFLAGS_SHLIB` \
                $(APR_LDFLAGS) \
                $(APR_LIBS)" ; \
            APXS_LDFLAGS_SHLIB=`$(ECHO) $${APXS_LDFLAGS_SHLIB}` ; \
            APXS_CFLAGS="`$(APXS) -q CFLAGS` \
                $(CFLAGS) \
                $(APR_CFLAGS) \
                $(CPPFLAGS) \
                $(APR_CPPFLAGS) \
                -I$(APR_INCDIR) \
                -I$(SRCDIR)/include \
                $(APR_INCLUDES)" ; \
            APXS_CFLAGS=`$(ECHO) $${APXS_CFLAGS}` ; \
            $(APXS) \
                -S CFLAGS="$${APXS_CFLAGS}" \
                -I$(APR_INCDIR) \
                -I$(SRCDIR)/include \
                -S LDFLAGS_SHLIB="$${APXS_LDFLAGS_SHLIB}" \
                -o "$@" \
                -c "mod_webapp.c" \
                "$(TGTDIR)/lib/libwebapp.a" \
                "$(TGTDIR)/lib/libapr.a" ; \
        }

--
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