Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149148 - mail-mta/postfix-2.2.10 failed to build with mysql use flag and mysql statically compiled
Summary: mail-mta/postfix-2.2.10 failed to build with mysql use flag and mysql statica...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tuan Van (RETIRED)
URL:
Whiteboard:
Keywords:
: 160081 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-26 01:46 UTC by Romary Sonrier
Modified: 2007-01-04 14:15 UTC (History)
2 users (show)

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 Romary Sonrier 2006-09-26 01:46:43 UTC
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
Comment 1 Francesco R. (RETIRED) gentoo-dev 2006-11-06 15:19:15 UTC
postfix don't allow static build, so it's impossible to use static liked libraries
sorry
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-01-04 13:43:33 UTC
*** Bug 160081 has been marked as a duplicate of this bug. ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-01-04 14:09:35 UTC
*** Bug 160081 has been marked as a duplicate of this bug. ***
Comment 4 Paul 2007-01-04 14:15:56 UTC
i have build mysql with -static and i still get this error? (sorry if this is a n00b thing)