"Pier P. Fumagalli" wrote:

> That's definitely weird... If you have mod_so, LD_SHLIB _should_ be defined.
> Can you put "gcc" in your Makefile near APXS_LD_SHLIB, and see what happens.
> I really don't understand why this is happening...

I compiled and installed apache 2.0.22 as well. everything seems to be ok, but

cheiron:/tmp/src/jakarta-tomcat-connectors/webapp # /usr/local/httpd-2.0/bin/apxs
-q LD_SHLIB
nothing :(

I still use the version 1.3.20 with dso support. the 2.0.22 is compiled with dso
support as well.

I changed the apache-1.3/Makefile
-------------
APXS_CC =            gcc
APXS_TARGET =        httpd
APXS_CFLAGS =        -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DNO_DL_NEEDED
APXS_SBINDIR =       /usr/local/httpd/bin
APXS_CFLAGS_SHLIB =
APXS_INCLUDEDIR =    /usr/local/httpd/include
APXS_LD_SHLIB =      /usr/bin/gcc
APXS_LIBEXECDIR =    /usr/local/httpd/libexec
APXS_LDFLAGS_SHLIB =
APXS_SYSCONFDIR =    /usr/local/httpd/conf
APXS_LIBS_SHLIB =
APXS_PREFIX =        /usr/local/httpd

MODULE = mod_webapp.so
-------------

...now I've got the following error messages
-------------------
Compiling sources in /tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3...
make[1]: Entering directory `/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3'
Linking Apache 1.3 WebApp Module
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
mod_webapp.o: In function `wa_log':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:270: undefined
reference to `ap_log_error'
mod_webapp.o: In function `wam_handler_log':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:278: undefined
reference to `ap_log_error'
mod_webapp.o: In function `wam_handler_setctype':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:294: undefined
reference to `ap_pstrdup'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:295: undefined
reference to `ap_pstrdup'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:295: undefined
reference to `ap_table_add'
mod_webapp.o: In function `wam_handler_setheader':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:305: undefined
reference to `ap_pstrdup'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:305: undefined
reference to `ap_pstrdup'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:305: undefined
reference to `ap_table_add'
mod_webapp.o: In function `wam_handler_commit':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:313: undefined
reference to `ap_send_http_header'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:314: undefined
reference to `ap_rflush'
mod_webapp.o: In function `wam_handler_flush':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:321: undefined
reference to `ap_rflush'
mod_webapp.o: In function `wam_handler_read':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:338: undefined
reference to `ap_should_client_block'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:342: undefined
reference to `ap_get_client_block'
mod_webapp.o: In function `wam_handler_write':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:357: undefined
reference to `ap_rwrite'
mod_webapp.o: In function `wam_match':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:401: undefined
reference to `ap_pstrdup'
mod_webapp.o: In function `wam_invoke':
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:429: undefined
reference to `ap_log_error'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:436: undefined
reference to `ap_get_remote_host'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:478: undefined
reference to `ap_setup_client_block'
/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:486: undefined
reference to `ap_rflush'
collect2: ld returned 1 exit status
make[1]: *** [mod_webapp.so] Error 1
make[1]: Leaving directory `/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3'
make: *** [local-all] Error 2
--------------------



Steffen

S/MIME Cryptographic Signature

Reply via email to