httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lty <lmusi...@gmail.com>
Subject [users@httpd] problems with apxs
Date Wed, 02 Feb 2005 11:12:30 GMT
Hi all,
I'm having problems with apxs; every module I build with apxs give me a
undefined symbol error, e.g.
> Cannot load /usr/local/apache2.0.52/modules/mod_cache.so into server:
>  /usr/local/apache2.0.52/modules/mod_cache.so: undefined symbol: 
> cache_generate_key_default

even if the module building process seems fine:

> /usr/local/apache2.0.52/bin/apxs -i -c mod_cache.c 
> /usr/local/apache2.0.52//build/libtool --silent --mode=compile gcc
> -prefer-pic  -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT
> -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2
> -pthread -I/usr/local/apache2.0.52//include
> -I/usr/local/apache2.0.52//include
> -I/usr/local/apache2.0.52//include   -c -o mod_cache.lo mod_cache.c
> && touch mod_cache.slo /usr/local/apache2.0.52//build/libtool
> --silent --mode=link gcc -o mod_cache.la  -rpath
> /usr/local/apache2.0.52//modules -module -avoid-version
> mod_cache.lo /usr/local/apache2.0.52//build/instdso.sh
> SH_LIBTOOL='/usr/local/apache2.0.52//build/libtool' mod_cache.la
> /usr/local/apache2.0.52//modules 
> /usr/local/apache2.0.52//build/libtool --mode=install cp mod_cache.la
> /usr/local/apache2.0.52//modules/ cp .libs/mod_cache.so
> /usr/local/apache2.0.52//modules/mod_cache.so cp .libs/mod_cache.lai
> /usr/local/apache2.0.52//modules/mod_cache.la cp .libs/mod_cache.a
> /usr/local/apache2.0.52//modules/mod_cache.a ranlib
> /usr/local/apache2.0.52//modules/mod_cache.a chmod 644
> /usr/local/apache2.0.52//modules/mod_cache.a PATH="$PATH:/sbin"
> ldconfig -n /usr/local/apache2.0.52//modules 
> ----------------------------------------------------------------------
>  Libraries have been installed in: /usr/local/apache2.0.52//modules
> 
> If you ever happen to want to link against installed libraries in a
> given directory, LIBDIR, you must either use libtool, and specify the
> full pathname of the library, or use the `-LLIBDIR' flag during
> linking and do at least one of the following: - add LIBDIR to the
> `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR
> to the `LD_RUN_PATH' environment variable during linking - use the
> `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator
> add LIBDIR to `/etc/ld.so.conf'
> 
> See any operating system documentation about shared libraries for 
> more information, such as the ld(1) and ld.so(8) manual pages. 
> ----------------------------------------------------------------------
>  chmod 755 /usr/local/apache2.0.52//modules/mod_cache.so

*but* I was successful compiling php as shared module with the --with-apxs2


I compiled apache with:
> ./configure --prefix=/usr/local/apache2.0.52/ --enable-module=so
> --enable-modules=all --enable-mods-shared=all --enable-deflate
> --with-zlib=/usr/lib/ --enable-proxy


What am I missing?
Thanks in advance,

Lorenzo




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


Mime
View raw message