Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78724 - mysql causing problems for postfix
Summary: mysql causing problems for postfix
Status: RESOLVED DUPLICATE of bug 78678
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-19 14:00 UTC by Andrew D. Arenson
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew D. Arenson 2005-01-19 14:00:54 UTC
I emerged the latest mysql this morning and postfix stopped working.
I attempted to re-emerge the latest postfix to see if a recompile would help,
and postfix wasn't able to compile.

Reproducible: Always
Steps to Reproduce:
1. emerge mysql
2. emerge -C postfix
3. emerge postfix

Actual Results:  
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld: 
cannot find -lmysqlclient


Expected Results:  
compiled

I emerged mysql today:

[miniscd:/usr/lib] bash> genlop mysql

 * dev-db/mysql

     Merged   at Thu Nov  6 20:29:08 2003    (mysql-4.0.14-r2)
     Merged   at Tue Dec 30 16:25:40 2003    (mysql-4.0.16)
     Merged   at Wed Feb 25 17:57:34 2004    (mysql-4.0.17)
     Merged   at Thu Mar 11 14:29:43 2004    (mysql-4.0.18)
     Merged   at Mon May 10 22:19:21 2004    (mysql-4.0.18-r1)
     Merged   at Fri May 28 13:35:24 2004    (mysql-4.0.18-r2)
     Merged   at Mon Jul 12 23:21:47 2004    (mysql-4.0.20)
     Merged   at Thu Sep  2 14:06:52 2004    (mysql-4.0.20-r1)
     Merged   at Fri Oct 29 22:22:41 2004    (mysql-4.0.21)
     Merged   at Wed Nov  3 14:23:25 2004    (mysql-4.0.22)
     Merged   at Wed Jan 19 15:36:16 2005    (mysql-4.0.23-r1)

And after that point when I atempted to send email, I got an error that
/usr/bin/sendmail could not find libmyclient.so.12. I use postfix, not 
sendmail.

Before I attempted to remove and recompile postfix, I did this check to see 
what modules it depended on. Notice the missing libmysqlclient.so.12

> ldd /usr/sbin/postfix
        libpcre.so.0 => /usr/lib/libpcre.so.0 (0x40038000)
        libdl.so.2 => /lib/libdl.so.2 (0x40051000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40054000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x40080000)
        libpam.so.0 => /lib/libpam.so.0 (0x400d1000)
        libmysqlclient.so.12 => not found
        libm.so.6 => /lib/libm.so.6 (0x400db000)
        libz.so.1 => /lib/libz.so.1 (0x400fc000)
        libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x40112000)
        libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x40141000)
        libdb-4.1.so => /usr/lib/libdb-4.1.so (0x40235000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x402f2000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x40307000)
        libc.so.6 => /lib/libc.so.6 (0x40318000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

When I attempted to remove and recompile postfix, I did:

emerge -C postfix
emerge -uv postfix

and got the following error:

i686-pc-linux-gnu-gcc -DHAS_PCRE -DHAS_MYSQL -I/usr/include/mysql -DUSE_SSL -
DDEF_CONFIG_DIR=\"/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/lib/postfix\" -
DDEF_PROGRAM_DIR=\"/usr/lib/postfix\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -
DDEF_README_DIR=\"/usr/share/doc/postfix-2.1.5-r1/readme\" -DINET6 -
D__ss_family=ss_family -g -O3 -march=pentium4 -funroll-loops -fprefetch-loop-
arrays -pipe -I. -I../../include -DLINUX2 -o master master.o master_conf.o 
master_ent.o master_sig.o master_avail.o master_spawn.o master_service.o 
master_status.o master_listen.o master_vars.o master_wakeup.o 
master_flow.o ../../lib/libglobal.a ../../lib/libutil.a -Wl,-z,now -L/usr/lib -
lpcre -ldl -lcrypt -lpthread -lpam -lmysqlclient -lm -lz -lssl -lcrypto -ldb -
lnsl -lresolv
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld: 
cannot find -lmysqlclient
collect2: ld returned 1 exit status
Comment 1 Andrew D. Arenson 2005-01-19 14:02:30 UTC
This seems similar to bug 16963.
Comment 2 Tuan Van (RETIRED) gentoo-dev 2005-01-19 14:27:08 UTC

*** This bug has been marked as a duplicate of 78678 ***