httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lty <>
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/ into server:
>  /usr/local/apache2.0.52/modules/ 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
> -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  -rpath
> /usr/local/apache2.0.52//modules -module -avoid-version
> mod_cache.lo /usr/local/apache2.0.52//build/
> SH_LIBTOOL='/usr/local/apache2.0.52//build/libtool'
> /usr/local/apache2.0.52//modules 
> /usr/local/apache2.0.52//build/libtool --mode=install cp
> /usr/local/apache2.0.52//modules/ cp .libs/
> /usr/local/apache2.0.52//modules/ cp .libs/mod_cache.lai
> /usr/local/apache2.0.52//modules/ 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/'
> See any operating system documentation about shared libraries for 
> more information, such as the ld(1) and manual pages. 
> ----------------------------------------------------------------------
>  chmod 755 /usr/local/apache2.0.52//modules/

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


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message