Re: [Exim] Exim 4.20 + MySQL 4.0.12

Top Page
Delete this message
Reply to this message
Author: Dougal McWhinney
Date:  
To: Exim List
Subject: Re: [Exim] Exim 4.20 + MySQL 4.0.12
Hi All,

After fixing the initial problem and returning the linker option to
"-lmysqlclient" I now get the following error:

/usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_uncompress':
my_compress.o(.text+0xaa): undefined reference to `uncompress'
/usr/lib/mysql/libmysqlclient.a(my_compress.o): In function
`my_compress_alloc':
my_compress.o(.text+0x13c): undefined reference to `compress'
collect2: ld returned 1 exit status
make[1]: *** [exim] Error 1
make[1]: Leaving directory `/root/exim-4.20/build-Linux-i386'
make: *** [go] Error 2

I have done a few searches and I think it may not be able to use version 4
of the MySQL client.
I got it to compile if I pointed the linker to "/usr/lib" instead
of "/usr/lib/mysql". In the /usr/lib directory there is
a "libmysqlclient.so" library and exim compiles useing this. I am yet to
test this but it maybe the fix.

Regards,
Dougal.

---------- Original Message -----------
From: Andreas J Mueller <andy@???>
To: Dougal McWhinney <exim-users@???>
Sent: Mon, 19 May 2003 01:19:39 +0200
Subject: Re: [Exim] Exim 4.20 + MySQL 4.0.12

> Hi Dougal!
>
> > If I put in "mysqlclient" I get the error "mysqlclient" not found.
> > The only archive that is there is "libmysqlclient"
>
> If you use -lmysqlclient, the linker will look for a file named
> libmysqlclient.a (it prepends "lib" and appends ".a"). You might
> have to specify the path to libmysqlclient.a, though: Just put a -
> L/path/to/mysql *before* the -lmysqlclient:
>
> LOOKUP_LIBS=-L/usr/lib/mysql -lmysqlclient
>
> Sorry that I cannot help you much further.
>
> Andy
>
> --
> Andreas J. Mueller                            email: <andy@???>

>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim

details at http://www.exim.org/ ##
------- End of Original Message -------