Re: trouble configuring libwww with openssl

Tony Alexander wrote:

> here's another curious note.  if i don't  include the option 
> --with-mysql=/usr/local/mysql libwww-5.4.0 will configure with ssl, 
> however, it won't compile.

Interesting, since on hilbert, I get all the way through configure and 
compile (though untested), with,

[bancroft@hilbert w3c-libwww-5.4.0]$ ./configure --with-ssl --with-mysql
[bancroft@hilbert w3c-libwww-5.4.0]$ rpm -qi mysql-devel
Name        : mysql-devel                  Relocations: (not relocateable)
Version     : 3.23.58                           Vendor: Red Hat, Inc.
Release     : 1                             Build Date: Tue 16 Sep 2003 12:16:22 PM EDT
Install Date: Sat 17 Jan 2004 01:30:01 PM EST      Build Host: bugs.devel.redhat.com
Group       : Applications/Databases        Source RPM: mysql-3.23.58-1.src.rpm
Size        : 1552661                          License: LGPL
Signature   : DSA/SHA1, Wed 24 Sep 2003 01:43:00 PM EDT, Key ID 219180cddb42a60e
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://www.mysql.com
Summary     : Files for development of MySQL applications.
Description :
MySQL is a true multi-user, multi-threaded SQL database server. This
package contains the libraries and header files that are needed for
developing MySQL applications.
[bancroft@hilbert w3c-libwww-5.4.0]$  nm /usr/lib/mysql/libmysqlclient.a | grep mysql_create_db
...
00003060 T mysql_create_db

However, under Fedora with a /usr/local installed mysql-4.0.21 the same 
configure goes through, but the compile fails with and undefined 
reference at link time,

gcc -g -O2 -Wall -o cvs2sql cvs2sql.o  ../src/.libs/libwwwinit.a -L/usr/lib ../src/.libs/libwwwapp.a ../../Library/src/.libs/libwwwxml.a ../../modules/expat/.libs/libexpat.so ../src/.libs/libwwwhtml.a ../src/.libs/libwwwtelnet.a ../src/.libs/libwwwnews.a ../src/.libs/libwwwhttp.a ../src/.libs/libwwwmime.a ../src/.libs/libwwwgopher.a ../src/.libs/libwwwftp.a ../src/.libs/libwwwfile.a ../src/.libs/libwwwdir.a ../src/.libs/libwwwcache.a ../src/.libs/libwwwstream.a ../src/.libs/libwwwmux.a ../src/.libs/libwwwtrans.a ../src/.libs/libwwwcore.a ../src/.libs/libwwwutils.a -lm ../../Library/src/.libs/libwwwsql.a ../../modules/md5/.libs/libmd5.a -ldl /usr/local/lib/mysql/libmysqlclient.a -lssl -lcrypto -Wl,--rpath -Wl,/usr/local/src/libwww/modules/expat/.libs -Wl,--rpath -Wl,/usr/local/lib
../src/.libs/libwwwcore.a(HTWWWStr.o)(.text+0x6d0): In function `HTMessageIdStr':
/usr/local/src/libwww/Library/src/HTWWWStr.c:363: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
../src/.libs/libwwwcore.a(HTInet.o)(.text+0x773): In function `HTGetTmpFileName':
/usr/local/src/libwww/Library/src/HTInet.c:621: warning: the use of `tempnam' is dangerous, better use `mkstemp'
../../Library/src/.libs/libwwwsql.a(HTSQL.o)(.text+0x3e8): In function `HTSQL_connect':
/usr/local/src/libwww/Library/src/HTSQL.c:185: undefined reference to `mysql_connect'
../../Library/src/.libs/libwwwsql.a(HTSQL.o)(.text+0x606): In function `HTSQL_selectDB':
/usr/local/src/libwww/Library/src/HTSQL.c:243: undefined reference to `mysql_create_db'
collect2: ld returned 1 exit status
make[3]: *** [cvs2sql] Error 1
make[3]: Leaving directory `/usr/local/src/libwww/Library/cvs2sql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/libwww/Library'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/libwww'
make: *** [all] Error 2

Wow, the missing entry point is in fact missing ! 

[vic@pc72:/usr/local/src/libwww] nm /usr/local/lib/mysql/libmysqlclient.a | grep create_db

Does anyone know what one would use in the mysql 4.* world instead of  
mysql_create_db . ? !

more,
l8r,
v

Received on Thursday, 9 December 2004 06:10:13 UTC