[nycphp-talk] Httpd
Michele Waldman
mmwaldman at nyc.rr.com
Mon Feb 2 13:44:14 EST 2009
Can someone direct me to a apache forum other than
http://httpd.apache.org/lists.html. I gotten no response.
I modified mod_auth_digest to use mysql and crypt, but the crypt symbol is
undefined when I try to restart apache.
I configured httpd with ./configure --enable-modules=all
--enable-mods-shared=all --enable-so --with-included-apr
I modified config_var.mk MOD_AUTH_DIGEST_LDADD with -lm -lz -luuid -lrt
-lcrypt
Still crypt is undefined. I can seem to properly link in crypt. I include
#include <unistd.h> and <crypt.h>
/usr/lib/mysql is in the ld.so.conf whereas /usr/lib is not. Randomly
adding it in doesn't seem to work.
I've set the LD_LIBRARY_PATH and LD_RUN_PATH environment variable to
/usr/lib.
I'm at my wits end.
This is the apxs -i -a -L/usr/lib/mysql -lmysqlclient -L/usr/lib -luuid -lrt
-lcrypt -lz -lm -c mod_auth_digest.c output.
I also tried generating it as part of a httpd compile.
/usr/local/apache2/bin/httpd/usr/local/src/httpd-2.2.8/srclib/apr/libtool
--mode=compile gcc -prefer-pic -DLINUX=2
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread
-I/usr/local/apache2/include -I/usr/local/src/http
d-2.2.8/srclib/apr/include
-I/usr/local/src/httpd-2.2.8/srclib/apr-util/include
-I/usr/local/src/httpd-2.2.8/srclib
/apr-util/xml/expat/lib -I/usr/local/src/httpd-2.2.8/os/unix -c -o
mod_auth_digest.lo mod_auth_digest.c && touch mod
_auth_digest.slo
gcc -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2
-pthread -I/usr/local/apache2/include -I/usr/l
ocal/src/httpd-2.2.8/srclib/apr/include
-I/usr/local/src/httpd-2.2.8/srclib/apr-util/include
-I/usr/local/src/httpd-2
.2.8/srclib/apr-util/xml/expat/lib -I/usr/local/src/httpd-2.2.8/os/unix -c
mod_auth_digest.c -fPIC -DPIC -o .libs/mo
d_auth_digest.o
gcc -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2
-pthread -I/usr/local/apache2/include -I/usr/l
ocal/src/httpd-2.2.8/srclib/apr/include
-I/usr/local/src/httpd-2.2.8/srclib/apr-util/include
-I/usr/local/src/httpd-2
.2.8/srclib/apr-util/xml/expat/lib -I/usr/local/src/httpd-2.2.8/os/unix -c
mod_auth_digest.c -fPIC -DPIC -o mod_auth
_digest.o >/dev/null 2>&1
/usr/local/src/httpd-2.2.8/srclib/apr/libtool --mode=link gcc -o
mod_auth_digest.la -L/usr/lib/mysql -L/usr/lib -lm
ysqlclient -luuid -lrt -lcrypt -lz -lm -rpath /usr/local/apache2/modules
-module -avoid-version mod_auth_digest.lo
rm -fr .libs/mod_auth_digest.a .libs/mod_auth_digest.la
.libs/mod_auth_digest.lai .libs/mod_auth_digest.so
gcc -shared .libs/mod_auth_digest.o -L/usr/lib/mysql -L/usr/lib
-lmysqlclient -luuid -lrt -lcrypt -lz -lm -Wl,-son
ame -Wl,mod_auth_digest.so -o .libs/mod_auth_digest.so
ar cru .libs/mod_auth_digest.a mod_auth_digest.o
ranlib .libs/mod_auth_digest.a
creating mod_auth_digest.la
(cd .libs && rm -f mod_auth_digest.la && ln -s ../mod_auth_digest.la
mod_auth_digest.la)
/usr/local/src/httpd-2.2.8/build/instdso.sh
SH_LIBTOOL='/usr/local/src/httpd-2.2.8/srclib/apr/libtool' mod_auth_diges
t.la /usr/local/apache2/modules
/usr/local/src/httpd-2.2.8/srclib/apr/libtool --mode=install cp
mod_auth_digest.la /usr/local/apache2/modules/
cp .libs/mod_auth_digest.so /usr/local/apache2/modules/mod_auth_digest.so
cp .libs/mod_auth_digest.lai /usr/local/apache2/modules/mod_auth_digest.la
cp .libs/mod_auth_digest.a /usr/local/apache2/modules/mod_auth_digest.a
chmod 644 /usr/local/apache2/modules/mod_auth_digest.a
ranlib /usr/local/apache2/modules/mod_auth_digest.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/apache2/modules
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/apache2/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/modules/mod_auth_digest.so
Michele
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20090202/dd772462/attachment.html>
More information about the talk
mailing list