Click to See Complete Forum and Search --> : Building mod_auth_mysql.so error! -- need help!


SiFactor
04-21-2003, 02:18 PM
Stats: rh 8, apache 1.3, mysql 3.23.56, php 4.1.2

I have installed mysql and it's up and running, but there's no mod_auth_mysql.so module installed, so I'm having to build it from mod_auth_mysql.c Now, I worked out all the errors it was giving me, but now, when I run this command, this is what I get:

[root@customcivics mod_auth_mysql]# apxs -c -D APACHE1 -L/usr/mysql/lib -I/usr/mysql/include -lmysqlclient -lm -lz mod_auth_mysql.c
gcc -DLINUX=22 -I/usr/include/gdbm -DEAPI -DEAPI_MM -O2 -march=i386 -mcpu=i686 -fPIC -DEAPI_MM_CORE_PATH=/var/run/httpd.mm -fpic -DSHARED_MODULE -I/usr/include/apache -I/usr/mysql/include -DAPACHE1 -c mod_auth_mysql.c
gcc -shared -o mod_auth_mysql.so mod_auth_mysql.o -L/usr/mysql/lib -lmysqlclient -lm -lz
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
apxs:Break: Command failed with rc=1
i don't know what that -lz option does, but it's stopping me from making the .so file. I tried removing it, and it built the file, and i was able to install it. But when I uncommented it from httpd.conf, it gave me a syntax error at that line...but the syntax was fine. So i'm guessing that this option is important. Thanks for ya'lls help ahead of time! I really need it. :(