Hello, When i try to emerge postfix, >emerge -pv postfix > >These are the packages that would be merged, in order: >Calculating dependencies... done! >[ebuild N ] mail-mta/postfix-2.2.10 USE="hardened ipv6 mysql pam sasl ssl -cdb -ldap -mailwrapper -mbox -nis -postgres (-selinux) -vda" 0 kB > it goes to failure with thoses messages: ranlib ../../lib/libmaster.a i686-pc-linux-gnu-gcc -DHAS_PCRE -DHAS_MYSQL -I/usr/include/mysql -DUSE_TLS -DUSE_SASL_AUTH -I/usr/include/sasl -DDEF_DAEMON_DIR=\"/usr/lib/postfix\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -DDEF_README_DIR=\"/usr/share/doc/postfix-2.2.10/readme\" -DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.2.10/html\" -g -Os -march=i686 -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 -lcrypt -lpthread -lpam -lmysqlclient -lm -lz -lssl -lcrypto -lsasl2 -ldb -lnsl -lresolv /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [master] Error 1 make: *** [update] Error 1 !!! ERROR: mail-mta/postfix-2.2.10 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile postfix-2.2.10.ebuild, line 231: Called die !!! compile problem Is postfix unable to compile with static library from mysql? Is there a way to improve the ebuild? regards, romary
postfix don't allow static build, so it's impossible to use static liked libraries sorry
*** Bug 160081 has been marked as a duplicate of this bug. ***
i have build mysql with -static and i still get this error? (sorry if this is a n00b thing)