You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Wayne Miller <cy...@directvinternet.com> on 2002/09/30 18:10:59 UTC

[users@httpd] bulding DSO modules with Apache 2.x

I installed Apache 2.0.42 and tried to build it with .so modules instead
of statically linked. Compiles fine, but the .so modules are not
generated. I changed to static build and compile and link fine and runs
fine.

So I am now trying to build the mod_jk.so module. I do the following (on
RedHat 7.3
2.4.18-10):

bulding the jk_mod.so file (Apache to Tomcat module)

cd to CONNECTOR_HOME/jk/native

run buildconf.sh: ./buildconf.sh.

run configure: ./configure --with-apxs=/usr/local/apache2/bin/apxs
==with-java-home=${JAVA_HOME}

run make: make

snip....snip out the compiles....

/bin/sh /usr/local/apache2/build/libtool --silent --mode=link gcc
-I/usr/local/apache2/include -g -O2 -DUSE_APACHE_MD5 -I ../common  -I
/usr/Develop/j2sdk1.4.0_02/include -I
/usr/Develop/j2sdk1.4.0_02/include/unix -D_REENTRANT -Wall -g -O2
-pthread -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-D_SVID_SOURCE -D_GNU_SOURCE -o mod_jk.la -module -rpath
/usr/local/apache2/modules -avoid-version mod_jk.lo
../common/jk_ajp12_worker.lo ../common/jk_connect.lo
../common/jk_msg_buff.lo ../common/jk_util.lo ../common/jk_ajp13.lo
../common/jk_pool.lo ../common/jk_worker.lo ../common/jk_ajp13_worker.lo
../common/jk_lb_worker.lo ../common/jk_sockbuf.lo ../common/jk_map.lo
../common/jk_uri_worker_map.lo ../common/jk_ajp14.lo
../common/jk_ajp14_worker.lo ../common/jk_md5.lo
../common/jk_ajp_common.lo ../common/jk_context.lo


the compile is fine, no errors. But no jk_mod.so is built. The .o file
is built and is fine. Seems like I have the same problem that I had when
I wanted to build Apache with DSO modules.

mod_so shows up when I do the httpd -l so I know its enabled for DSO.

I think it has something to do with the ld options. I can manually build
a .so modules so I know I have all the support code on my machine.

Is there a system wide setting that enables DSO module support or a
switch somewhere that has to be set in order to build the dynamic modules?





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org