httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William E. Branson" <wbran...@transitchicago.com>
Subject [users@httpd] Trouble adding mod_auth_mysql to apache 2.0.49 dlname error
Date Thu, 15 Apr 2004 18:02:31 GMT
I am having trouble adding mod_auth_mysql to apache 2.0.49 on a Solaris 9
box.
I followed the instructions in the README, with the exception that I changed
"#include <mysql/mysql.h>" to "# include <mysql.h>." I have also googled
'dlname'.  It seems that there is something lacking in the mod_auth_mysql.la
file.  Can someone help me get past this hurdle?  I have included the two
apxs command strings below and the error message/s. What does apxs need to
finish creating the .so file?

William E. Branson
Administrator, Systems Planning
Chicago Transit Authority
wbranson@transitchicago.com


==
bash-2.05# /space/apache/bin/apxs -i mod_auth_mysql.la
/space/apache/build/instdso.sh SH_LIBTOOL='/space/apache/build/libtool'
mod_auth_mysql.la /space/apache/modules
/space/apache/build/libtool --mode=install cp mod_auth_mysql.la
/space/apache/modules/
cp .libs/mod_auth_mysql.lai /space/apache/modules/mod_auth_mysql.la
cp .libs/mod_auth_mysql.a /space/apache/modules/mod_auth_mysql.a
: /space/apache/modules/mod_auth_mysql.a
chmod 644 /space/apache/modules/mod_auth_mysql.a
----------------------------------------------------------------------
Libraries have been installed in:
/space/apache/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
- use the `-RLIBDIR' linker flag
I have a problem adding the mod_auth_mysql DSO to apache 2.0.49 server. The
o/s is Solaris 9 on sparc.

bash-2.05# /space/apache/bin/apxs -c -D
APACHE2 -L/usr/local/mysql/lib -I/usr/local/mysql/include -lmysqlclient -lm 
-lz mod_auth_mysql.c
/space/apache/build/libtool --silent --mode=compile
cc -prefer-pic  -DAP_HAVE_DESIGNATED_INITIALIZER -DSOLARIS2=9 -D_POSIX_PTHRE
AD_SEMANTICS -D_REENTRANT -g -O2 -pthreads -I/space/apache/include  -I/space
/apache/include   -I/space/apache/include  -I/usr/local/mysql/include -DAPAC
HE2  -c -o mod_auth_mysql.lo mod_auth_mysql.c && touch mod_auth_mysql.slo
mod_auth_mysql.c: In function `mysql_authenticate_basic_user':
mod_auth_mysql.c:667: warning: passing arg 2 of `strcmp' makes pointer from
integer without a cast
mod_auth_mysql.c:672: warning: pointer/integer type mismatch in conditional
expression
/space/apache/build/libtool --silent --mode=link gcc -o
mod_auth_mysql.la -I/usr/local/mysql/include -DAPACHE2  -L/usr/local/mysql/l
ib -lmysqlclient -lm -lz -rpath /space/apache/modules -module -avoid-version
mod_auth_mysql.lo

bash-2.05# /space/apache/bin/apxs -i mod_auth_mysql.la
/space/apache/build/instdso.sh SH_LIBTOOL='/space/apache/build/libtool'
mod_auth_mysql.la /space/apache/modules
/space/apache/build/libtool --mode=install cp mod_auth_mysql.la
/space/apache/modules/
cp .libs/mod_auth_mysql.lai /space/apache/modules/mod_auth_mysql.la
cp .libs/mod_auth_mysql.a /space/apache/modules/mod_auth_mysql.a
: /space/apache/modules/mod_auth_mysql.a
chmod 644 /space/apache/modules/mod_auth_mysql.a
----------------------------------------------------------------------
Libraries have been installed in:
   /space/apache/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
   - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Warning!  dlname not found in /space/apache/modules/mod_auth_mysql.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /space/apache/modules/mod_auth_mysql.so
chmod: WARNING: can't access /space/apache/modules/mod_auth_mysql.so
apxs:Error: Command failed with rc=65536

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Warning! dlname not found in /space/apache/modules/mod_auth_mysql.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /space/apache/modules/mod_auth_mysql.so
chmod: WARNING: can't access /space/apache/modules/mod_auth_mysql.so
apxs:Error: Command failed with rc=65536


====
Contents of the mod_auth_mysql.la file
==========
# mod_auth_mysql.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4.3 (1.922.2.110 2002/10/23
01:39:54)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname=''

# Names of this library.
library_names=''

# The name of the static archive.
old_library='mod_auth_mysql.a'

# Libraries that this one depends upon.
dependency_libs=' -L/usr/local/mysql/lib -lmysqlclient -lm-lz'

# Version information for mod_auth_mysql.
current=0
age=0
revision=0

# Is this an already installed library?
installed=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/space/apache/modules'


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


Mime
View raw message