Mailing List Archive

apxs not playing ball (Apache 1.3.23)
Can anybody please help me with this really irritating problem I have with
apxs?

This is a fresh clear Apache 1.3.23 build on RedHat 7.2. I have DSO
compiled in, and various other modules working great as standard.

My problem is that I cannot get mod_log_mysql (or any other module for
that matter) to compile as DSO using apxs. I've added a little debug to
apxs, and have found it's trying to execute non-senseicle shell commands.
(See as follows):

[root@bacardi mod_log_mysql]# /opt/apache/bin/apxs -i -a -c - L/usr/lib/mysql -lmysqlclient -lz mod_log_mysql.c
1>> Added command >> cc -DLINUX=22 -I/usr/include/db1 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_HSREGEX -DNO_DL_NEEDED -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/apache/include -c mod_log_mysql.c
1>> Added command >> -o mod_log_mysql.so mod_log_mysql.o -L/usr/lib/mysql -lmysqlclient -lz
3>> Executing command >> cc -DLINUX=22 -I/usr/include/db1 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_HSREGEX -DNO_DL_NEEDED -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/apache/include -c mod_log_mysql.c
3>> Executing command >> -o mod_log_mysql.so mod_log_mysql.o -L/usr/lib/mysql -lmysqlclient -lz
apxs:Break: Command failed with rc=16777215
[root@bacardi mod_log_mysql]#

Obviously it's barfing when it tries to execute
"-o mod_log_mysql.so mod_log_mysql.o -L/usr/lib/mysql -lmysqlclient -lz"
as a shell command.

How can I fix this, or am I just doing something outrageously stupid and
dense?

Thanks in advance,
Nic

--
Nic LAWRENCE - NOC Engineer - Frontier Internet Services Limited
Tel: 020 7510 4700 Fax: 020 7531 9930 http://www.frontier.net.uk
Statements made are at all times subject to Frontier's Terms and
Conditions of Business, which are available upon request.


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org