W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2005

Re: Problems with SQL Logging

From: Víctor Pascual Cid <victor.pascual@upf.edu>
Date: Mon, 18 Jul 2005 10:55:36 +0200
Message-ID: <42DB6E88.8070509@upf.edu>
To: Vic Bancroft <bancroft@dlogic.org>
CC: bancroft@america.net, www-lib@w3.org

Thanks for your help Vic.
Well, I'm running mysql 4.1.12 in a Red Hat 9.

I can see the "checking ... mysql access", but it still does not 
compiles. While running ./configure --with-mysql=[PATH], which PATH 
should I use? The Mysql home? The $MYSQL_HOME/lib? Or maybe the mysql 
sources?
I'm really lost with that!!

Thanks a lot.

    Víctor

Vic Bancroft wrote:

> Víctor Pascual Cid wrote:
>
>>
>> I've compiled using |--with-mysql[=PATH], but it still doesn't work.
>
>
> In the output from the ./configure script, do you see the following text,
>
>  "checking whether to support mysql access.... yes"
>
> Another way to verify which particular version of the link library is 
> detected by the configure script would be to look in the generated 
> Makefile for a line that looks like,
>
>  LIBS = -ldl  /usr/local/lib/mysql/libmysqlclient.a
>
> Unfortunately, on my system, the link fails with the following,
>
>    ../../Library/src/.libs/libwwwsql.a(HTSQL.o)(.text+0x386): In
>    function `HTSQL_connect':
>    /home/bancroft/src/libwww/Library/src/HTSQL.c:185: undefined
>    reference to `mysql_connect'
>    ../../Library/src/.libs/libwwwsql.a(HTSQL.o)(.text+0x636): In
>    function `HTSQL_selectDB':
>    /home/bancroft/src/libwww/Library/src/HTSQL.c:243: undefined
>    reference to `mysql_create_db'
>    /usr/local/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x65): In
>    function `my_compress':
>    my_compress.c: undefined reference to `compress'
>    /usr/local/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x116):
>    In function `my_compress_alloc':
>    my_compress.c: undefined reference to `compress'
>    /usr/local/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x18d):
>    In function `my_uncompress':
>    my_compress.c: undefined reference to `uncompress'
>    collect2: ld returned 1 exit status
>    make[3]: *** [cvs2sql] Error 1
>    make[3]: Leaving directory `/home/bancroft/src/libwww/Library/cvs2sql'
>
> This is the same difficulty referred to in the post,
>
>   http://lists.w3.org/Archives/Public/www-lib/2004OctDec/0019
>
> Of course, it is a little worse now under, Fedora Core 4 . . . perhaps 
> we need to investigate what code changes are require to move from a 
> mysql 3.* world to a "mysql 4.* world" . . .
>
> BTW, which version of the m,ysqlclient library are you using ?
>
> more,
> l8r,
> v
>
Received on Monday, 18 July 2005 09:08:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:45 GMT