From: Andreas Winkelmann (no email)
Date: Tue Jun 01 2004 - 01:08:30 EDT
Am Dienstag, 1. Juni 2004 02:38 schrieb Michael Heath:
> I was trying to compile postfix with MySQL and SASL support. I'm
> running....
>
> elimist at www:/usr/local/mysql/bin$ mysql --version
> mysql Ver 12.22 Distrib 4.0.18, for pc-linux (i686)
>
> thats been working fine (We've been using it with php on our apache
> server). However, I went to compile postfix, starting with the command
>
> make -f Makefile.init makefiles 'CCARGS=-DHAS_MYSQL
> -I/usr/local/mysql/include -DUSE_SASL_AUTH -I/usr/local/include/sasl
> -I/usr/local/BerkeleyDB.4.2/include' 'AUXLIBS=-L/usr/local/mysql/lib
> -Imysqlclient -Iz -Im -L/usr/local/lib -Isasl2
> -L/usr/local/BerkeleyDB.4.2/lib'
>
> This runs through fine, no warnings, no errors. /usr/local/mysql is the
> directory of the mysql install (I just did a default install, following the
> instructions on the mysql website). includes and lib in that directory are
> valid, and contain mysql's headers and libs, respectively.
> /usr/local/BerkelyDB.4.2 is the location of the standard Berkeley DB4
> install, which I built from source just recently. I go and do
>
> make
>
> and it runs fine for a moment but then I get:
>
> [src/error]
> gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/local/mysql/include
> -DUSE_SASL_AUTH -I/usr/local/include/sasl
> -I/usr/local/BerkeleyDB.4.2/include -DHAS_PCRE -g -O -I. -I../../include
> -DLINUX2 -o error error.o ../../lib/libmaster.a ../../lib/libglobal.a
> ../../lib/libutil.a -L/usr/local/mysql/lib -Imysqlclient -Iz -Im
> -L/usr/local/lib -Isasl2 -L/usr/local/BerkeleyDB.4.2/lib -L/usr/lib -lpcre
> -ldb -lnsl -lresolv
...
> /root/pkgs/mail/postfix-2.1.1/src/global/dict_mysql.c:422: undefined
> reference to `mysql_init'
> /root/pkgs/mail/postfix-2.1.1/src/global/dict_mysql.c:656: undefined
> reference to `mysql_close'
> collect2: ld returned 1 exit status
> make: *** [error] Error 1
> make: *** [update] Error 1
The Linker doesn't find "libmysqlclient.*". Where is it? Really in /usr/local/
mysql/lib?
-- Andreas
|
|
|