LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   postfix + mysql (http://www.linuxquestions.org/questions/linux-general-1/postfix-mysql-208721/)

cb9fl 07-23-2004 10:02 AM

postfix + mysql
 
I installed MySQL, SASL and Berkeley DB.

MySQL installed with the following option :
./configure --prefix=/usr/local/mysql

Now when I try to install postfix using :

$make makefiles 'CCARGS=-DHAS_MYSQL \
-I/usr/local/mysql/include/mysql -DUSE_SASL_AUTH \
-I/usr/local/include/sasl -I/usr/local/bdb/include' \
'AUXLIBS=-L/usr/local/mysql/lib/mysql -lmysqlclient \
-lz -lm -L/usr/local/lib -lsasl2 -L/usr/local/bdb/lib'

#make install


I get :
bin/postconf: error while loading shared libraries: libmysqlclient.so.12: cannot open shared object file: No such file or directory

However the file libmysqlclient.so.12 does exist. make install finishes and allows configuration I just need to know if this error will be a problem and if so how to fix it.

Thanks.

gaslq 09-01-2004 12:19 AM

Postfix+Courier+MySQL - Compile Problem
 
Hi cb9fl!

Did you ever get this issue resolved? I'm having a similar problem when I try to 'compile in' mysql-support into Postfix 2.1.4.

The Postfix docs clearly show the steps:

1. goes through without fail!
make makefiles 'CCARGS=-DHAS_MYSQL \
-I/usr/local/mysql/include/mysql -DUSE_SASL_AUTH \
-I/usr/local/include/sasl -I/usr/local/bdb/include' 'AUXLIBS=-L/usr/local/mysql/lib/mysql \
-lmysqlclient -lz -lm -L/usr/local/lib -lsasl2 -L/usr/local/bdb/lib'

2.
make
... and several lines later

gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/local/mysql/include -DHAS_PCRE -g -O -I. -I../../include -DLINUX2 -c error.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/local/mysql/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 -lmysqlclient -lz -lm -L/usr/lib -lpcre -ldb -lnsl -lresolv
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)(.text+0xe60): In function `read_rows':
: undefined reference to `_intel_fast_memcpy'
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)(.text+0x3044): In function `mysql_real_connect.':
: undefined reference to `_intel_fast_memcpy'
/usr/local/mysql/lib/libmysqlclient.a(my_malloc.o)(.text+0x31): In function `my_memdup':
: undefined reference to `_intel_fast_memcpy'
/usr/local/mysql/lib/libmysqlclient.a(my_malloc.o)(.text+0x100): In function `my_strdup':
: undefined reference to `_intel_fast_memcpy'
/usr/local/mysql/lib/libmysqlclient.a(my_malloc.o)(.text+0x132): In function `my_strdup_with_length':
: undefined reference to `_intel_fast_memcpy'
/usr/local/mysql/lib/libmysqlclient.a(my_alloc.o)(.text+0x327): more undefined references to `_intel_fast_memcpy' follow
collect2: ld returned 1 exit status
make: *** [error] Error 1
make: *** [update] Error 1

What am I missing? I've read the Postfix+Courier+MySQL docs in-and-out!


Thanks!

gaslq


All times are GMT -5. The time now is 01:00 PM.