Re: Problem installing on Debian Linux (Woody)

Tom Rogers <[email protected]>
Newsgroups gmane.comp.apache.mod-log-sql
Organization Perfect Web Site Designs
Message-ID <[email protected]>
Hi,

Monday, January 27, 2003, 3:38:40 AM, you wrote:

CMS> Any help/pointers about getting this to compile are welcomed.

CMS> debian:mod_log_sql# make dso
CMS> + make dso
CMS> /usr/bin/apxs -c  -Wc,-O2 -Wc,-Wall -DEAPI -I/usr/include/mysql  
CMS> -L/usr/lib -lmysqlclient -lz mod_log_sql.c
CMS> gcc -DLINUX=22 -DEAPI -DTARGET="apache" -I/usr/include/db1 
CMS> -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -D_LARGEFILE_SOURCE 
CMS> -D_FILE_OFFSET_BITS=64 -O1 -fPIC -DSHARED_MODULE 
CMS> -I/usr/include/apache-1.3 -O2 -Wall -I/usr/include/mysql -DEAPI  -c 
CMS> mod_log_sql.c
CMS> gcc -shared -o mod_log_sql.so mod_log_sql.o -Wc,-O2 -Wc,-Wall 
CMS> -L/usr/lib -lmysqlclient -lz -lc -lm -lcrypt -ldb1 -ldb -lexpat
CMS> /usr/bin/ld: cannot find -lz
CMS> collect2: ld returned 1 exit status
CMS> apxs:Break: Command failed with rc=1
CMS> make: *** [mod_log_sql.so] Error 1



CMS> #APACHESOURCE    = /usr/local/src/apache_1.3.27-dso
CMS> APACHEINSTALLED = /usr/sbin
CMS> APACHEHEADERS   = /usr/include/apache-1.3
CMS> APXS            = /usr/bin/apxs

CMS> MYSQLLIBRARIES  = /usr/lib
CMS> MYSQLHEADERS    = /usr/include/mysql


CMS> If there is a package for debian I have not found it.


CMS> Thanks,
CMS> Chad

CMS> __________________________________________________________________
CMS> Reminder: to unsubscribe, send email to <[email protected]>
CMS> with the words "unsubscribe mod_log_sql" in the body (w/o quotes).
CMS> The module homepage is http://www.grubbybaby.com/mod_log_sql/

Try compiling apache with 1 of its internal modules as a shared one (mod_rewrite
for example) The problem is apxs has not been built properly, it is missing
linker information.

-- 
regards,
Tom

__________________________________________________________________
Reminder: to unsubscribe, send email to <[email protected]>
with the words "unsubscribe mod_log_sql" in the body (w/o quotes).
The module homepage is http://www.grubbybaby.com/mod_log_sql/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.