(1)
First of all, do I need to compile mod_webapp.so, or is there a binary
version I can grab? I assume that I do have to compile it, and that
some attributes specific to my apache configuration need to be
compiled in. I have tried one binary version that I found at
rpmfind.net, and when I start up apache I get the error:
$ ./apachectl start
Syntax error on line 206 of /home/cpennock/apache/conf/httpd.conf:
Cannot load /home/cpennock/apache/libexec/mod_webapp.so into server:
undefined symbol: ap_ctx_get
(2)
I have also tried to compile it, and when I reach the final step in
the final Makefile,
.../jakarta-tomcat-connectors/webapp/apache-1.3/Makefile,
which is:
mod_webapp.so: mod_webapp.lo
/home/cpennock/jakarta-tomcat-connectors/webapp/lib/libwebapp.la
/home/cpennock/apr/apr/libapr.la
@echo Linking Apache 1.3 WebApp Module
@$(SHELL) $(LIBTOOL) $(LTFLAGS) --mode=link \
$(APXS_LD_SHLIB) $(APXS_LDFLAGS_SHLIB) \
mod_webapp.lo ../lib/libwebapp.la $(LIBTOOL_LIBS) \
-o mod_webapp.so
(the important part of which translates into:
sh libtool -someflags --mode=link gcc mod_webapp.lo \
../lib/libwebapp.la $(LIBTOOL_LIBS) -o mod_webapp.so
)
I get the error:
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function
`_start':
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18):
undefined reference to `main'
mod_webapp.o: In function `wam_init':
/home/cpennock/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:109:
undefined reference to `ap_register_cleanup'
mod_webapp.o: In function `wa_log':
/home/cpennock/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c:271:
undefined reference to `ap_log_error'
... and ~25 similar lines ...
/home/cpennock/apr/apr/.libs/libapr.so: undefined reference to
`dlerror'
/home/cpennock/apr/apr/.libs/libapr.so: undefined reference to
`pthread_create'
... and ~15 similar lines ...
collect2: ld returned 1 exit status
make[1]: *** [mod_webapp.so] Error 1
make[1]: Leaving directory
`/home/cpennock/jakarta-tomcat-connectors/webapp/apache-1.3'
make: *** [local-all] Error 2
Clearly, some libraries aren't being found, but why not? I imagine
that in some previous Makefile, like to Apache or apr, I had to point
to some other libraries, but I have not been able to find where I
should do this, if this is the case.
Any thoughts, help, links etc would be greatly appriciated.
thanks,
Chris
[EMAIL PROTECTED]