Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 477792 - mail-mta/exim[mysql] - ld: cannot find -lmysqlclient
Summary: mail-mta/exim[mysql] - ld: cannot find -lmysqlclient
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords: PATCH
Depends on: 474952
Blocks:
  Show dependency tree
 
Reported: 2013-07-22 19:09 UTC by Alexander Tsoy
Modified: 2013-11-13 19:43 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,32.91 KB, text/plain)
2013-07-22 19:09 UTC, Alexander Tsoy
Details
exim-4.80.1.ebuild.patch (exim-4.80.1.ebuild.patch,892 bytes, patch)
2013-07-22 19:13 UTC, Alexander Tsoy
Details | Diff
exim-4.80.1.ebuild.patch (exim-4.80.1.ebuild.patch,468 bytes, patch)
2013-07-22 19:14 UTC, Alexander Tsoy
Details | Diff
exim-4.80.1.ebuild.patch (exim-4.80.1.ebuild.patch,853 bytes, patch)
2013-07-22 19:44 UTC, Alexander Tsoy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Tsoy 2013-07-22 19:09:46 UTC
Created attachment 353910 [details]
build.log

exim fails to compile with dev-db/mariadb-5.5.31-r1.
Comment 1 Alexander Tsoy 2013-07-22 19:10:59 UTC
$ emerge --info exim
Portage 2.1.12.2 (hardened/linux/amd64, gcc-4.7.3, glibc-2.15-r3, 3.9.9-hardened x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.9.9-hardened-x86_64-QEMU_Virtual_CPU_version_1.0-with-gentoo-2.2
KiB Mem:     1015952 total,     28404 free
KiB Swap:    2786296 total,   2421780 free
Timestamp of tree: Mon, 22 Jul 2013 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5, 3.2.5-r1
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-puleglot-overlay x-local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/r
evdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news par
allel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans use
rfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://de-mirror.org/gentoo/ ftp://de-mirror.org/gentoo/"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats
 --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/puleglot-overlay /usr/portage/local"
SYNC=""
USE="acl aio amd64 bash-completion berkdb bzip2 caps cli cracklib crypt cxx device-mapper dri gdbm gpm hardened iconv
 icu idn ipv6 justify logrotate lzma maildir mmx modules mudflap multilib mysql ncurses nls nptl openmp pam pax_kerne
l pcre perl postgres python readline sasl session sse sse2 ssl systemd tcpd tls udev unicode urandom vim-syntax xattr
 zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es19
38 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES
="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default a
uthn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_
fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem
_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_
FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df
 interface irq load memory rrdtool swap syslog" DRACUT_MODULES="lvm systemd" ELIBC="glibc" GPSD_PROTOCOLS="ashtech ai
vdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtc
m104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evde
v" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXT
ENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5
-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU"
 VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq 
steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA
_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

mail-mta/exim-4.80.1-r1 was built with the following:
USE="dkim dovecot-sasl exiscan-acl ipv6 lmtp maildir (multilib) mysql pam perl postgres sasl spf ssl tcpd -X -dcc -dn
sdb -doc -dsn -gnutls -ldap -mbx -nis -radius (-selinux) -sqlite -srs -syslog" ABI_X86="64"
Comment 2 Alexander Tsoy 2013-07-22 19:13:35 UTC
Created attachment 353914 [details, diff]
exim-4.80.1.ebuild.patch

This patch fixes compilation issues.
Comment 3 Alexander Tsoy 2013-07-22 19:14:44 UTC
Created attachment 353916 [details, diff]
exim-4.80.1.ebuild.patch
Comment 4 Alexander Tsoy 2013-07-22 19:21:30 UTC
$(mysql_config --libs) also could be used here, and then -lmysqlclient is not needed.
Comment 5 Alexander Tsoy 2013-07-22 19:44:55 UTC
Created attachment 353924 [details, diff]
exim-4.80.1.ebuild.patch

- use mysql_config to get includes and libs
- do the same for postgres (it may also stop creating symlinks in /usr/lib in the future)

Sorry for the noise in this bug. :)
Comment 6 Fabian Groffen gentoo-dev 2013-07-23 17:32:35 UTC
thanks, applied