Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 477782 - net-mail/cyrus-imapd-2.4.17 - ./configure --with-com_err=yes assumes -lyes
Summary: net-mail/cyrus-imapd-2.4.17 - ./configure --with-com_err=yes assumes -lyes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-22 18:23 UTC by Guido Winkelmann
Modified: 2013-10-18 19:28 UTC (History)
0 users

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


Attachments
config.log (config.log,63.91 KB, text/plain)
2013-07-22 18:23 UTC, Guido Winkelmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guido Winkelmann 2013-07-22 18:23:12 UTC
Created attachment 353902 [details]
config.log

When emerging net-mail/cyrus-imapd-2.4.17 with use flag mysql, configure fails because it cannot find MySQL:

=====
checking mysql.h usability... yes
checking mysql.h presence... yes
checking for mysql.h... yes
configure: error: MySQL was not found.  You may need to supply the
    --with-mysql-libdir or --with-mysql-incdir configure options.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-mail/cyrus-imapd-2.4.17/work/cyrus-imapd-2.4.17/config.log
 * ERROR: net-mail/cyrus-imapd-2.4.17 failed (configure phase):
=====

The interesting lines from config.log seem to be these:

=====
configure:6551: checking mysql.h usability
configure:6551: x86_64-pc-linux-gnu-gcc -c -march=corei7 -O2 -pipe -ggdb -I/usr/include/db4.8  -I/usr/include/mysql conftest.c >&5
configure:6551: $? = 0
configure:6551: result: yes
configure:6551: checking mysql.h presence
configure:6551: x86_64-pc-linux-gnu-gcc -E -I/usr/include/db4.8  -I/usr/include/mysql conftest.c
configure:6551: $? = 0
configure:6551: result: yes
configure:6551: checking for mysql.h
configure:6551: result: yes
configure:6593: x86_64-pc-linux-gnu-gcc -o conftest -march=corei7 -O2 -pipe -ggdb -I/usr/include/db4.8  -I/usr/include/mysql -Wl,-O1 -Wl,--as-needed conftest.c    -ldb-4.8 -lyes >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lyes
collect2: error: ld returned 1 exit status
configure:6593: $? = 1
configure: failed program was:
=====

Output from emerge --info '=net-mail/cyrus-imapd-2.4.17':

=====
Portage 2.1.12.2 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.15-r3, 3.8.13-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.8.13-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_W3530_@_2.80GHz-with-gentoo-2.2
KiB Mem:    24687636 total,  13495396 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Mon, 22 Jul 2013 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5, 3.2.5-r1, 3.3.2
dev-util/ccache:          3.1.9
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.11.6, 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-portage-local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 Oracle-BCLA-JavaSE AdobeFlash-10.3 AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://de-mirror.org/distro/gentoo/ http://gentoo.mneisen.org/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
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="/usr/local/portage-local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aiglx alsa amd64 apache2 apng arts berkdb bluetooth branding bzip2 cairo cdda cdr chipcard cli consolekit cracklib crypt ctype cups curl cvs cxx cycles dbus ddate declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig fortran ftp gd gdbm gif gnutls gpm graphviz gtk hash hbci iconv icu id3tag idn imlib ipv6 jabber java jpeg jpeg2k kde kdehiddenvisibility kdepim kipi kpathsea lastfm lcms ldap libkms libnotify mad matroska mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses nfs nls nptl nsplugin offensive ogg opengl openldap openmp pam pango pcap pcre pdf perl phonon php plasma png policykit postscript ppds pulseaudio python qemu qt qt3 qt3support qt4 rbd rdesktop readline samba sasl sdl semantic-desktop session spell spice sql sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification subversion suexec svg tcpd theora tiff truetype udev udisks unicode upower usb virt-network vorbis webkit wmf wxwidgets x264 xcb xcomposite xine xinerama xml xorg xscreensaver xterm xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 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 authn_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" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de nds jp" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="ati radeon vesa vga mga nv r600" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

net-mail/cyrus-imapd-2.4.17 was built with the following:
USE="berkdb (consolekit) (multilib) mysql pam (policykit) ssl tcpd -afs -kerberos -nntp -postgres -replication -sieve -snmp -sqlite" ABI_X86="64"
=====

Output from emerge -pqv '=net-mail/cyrus-imapd-2.4.17':

=====
[ebuild   R   ] net-mail/cyrus-imapd-2.4.17  USE="berkdb mysql pam ssl tcpd -afs -kerberos -nntp -postgres -replication -sieve -snmp -sqlite"
=====
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-07-23 13:26:48 UTC
Probably because of --with-com_err=yes:

  --with-com_err=PATH     use com_err from path -- includes in PATH/include,
                          libs in PATH/lib, and compile_et in PATH/bin
Comment 2 Stefan Briesenick (RETIRED) gentoo-dev 2013-09-05 09:21:31 UTC
please fix. rebuild (and first install) is impossible right now. thanks!
Comment 3 Stefan Briesenick (RETIRED) gentoo-dev 2013-09-23 08:29:23 UTC
any news?
Comment 4 Stefan Briesenick (RETIRED) gentoo-dev 2013-10-18 14:30:51 UTC
ok, I found the solution. It was NOT the "--with-com_err=yes".

But as soon you add this:

   myconf+=" --with-mysql-libdir=/usr/$(get_libdir)/mysql"

in the "if use mysql" section, it compiles fine. ;-)

So PLEASE fix it! thanks!
Comment 5 Stefan Briesenick (RETIRED) gentoo-dev 2013-10-18 18:43:22 UTC
ok, I took the time and fixed it myself. ;)

I furthermore added a patch for this problem:
> https://bugs.gentoo.org/show_bug.cgi?id=477782

rev-bumping to -r1.
Comment 6 Stefan Briesenick (RETIRED) gentoo-dev 2013-10-18 19:28:47 UTC
hmpf. copy & paste fail. ;)

just for the record:
> https://bugzilla.cyrusimap.org/show_bug.cgi?id=3757