Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170754 - mail-mta/courier-0.53.2 fails with --as-needed
Summary: mail-mta/courier-0.53.2 fails with --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2007-03-13 16:58 UTC by Bernd Wurst
Modified: 2008-05-06 11:22 UTC (History)
2 users (show)

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


Attachments
courier-0.59.0-asneeded.patch (courier-0.59.0-asneeded.patch,534 bytes, patch)
2008-05-04 19:10 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Wurst 2007-03-13 16:58:59 UTC
I got a configure error from courier that could be fixed by recompiling courier-authlib with the gdbm use-flag enabled.

The courier ebuild should check this.
Comment 1 Bernd Wurst 2007-03-13 17:00:55 UTC
Sorry, wrote too fast, it is not fixed by this action, will investigate this further.

I get: 
Linking couriertls
../gdbmobj/.libs/libgdbmobj.a(gdbmobj.o): In function `gdbm_dofetch':
gdbmobj.c:(.text+0x4c): undefined reference to `gdbm_fetch'
../gdbmobj/.libs/libgdbmobj.a(gdbmobj.o): In function `gdbmobj_exists':
gdbmobj.c:(.text+0x1be): undefined reference to `gdbm_exists'
../gdbmobj/.libs/libgdbmobj.a(gdbmobj.o): In function `gdbmobj_close':
gdbmobj.c:(.text+0x260): undefined reference to `gdbm_close'
../gdbmobj/.libs/libgdbmobj.a(gdbmobj.o): In function `gdbmobj_open':
gdbmobj.c:(.text+0x308): undefined reference to `gdbm_open'
gdbmobj.c:(.text+0x31d): undefined reference to `gdbm_fdesc'
../gdbmobj/.libs/libgdbmobj.a(gdbmobj.o): In function `gdbmobj_store':
gdbmobj.c:(.text+0x21d): undefined reference to `gdbm_store'
collect2: ld returned 1 exit status


while compiling mail-mta/courier-0.53.2

sys-libs/gdbm-1.8.3-r3 is installed
Comment 2 Hanno Böck gentoo-dev 2007-03-13 18:13:45 UTC
This is an issue with LDFLAGS --as-needed.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-03-13 19:06:53 UTC
emerge --info please.
Comment 4 Hanno Böck gentoo-dev 2007-03-14 11:33:27 UTC
emerge --info:

neu2 ~ # emerge --info
Portage 2.1.2.2 (default-linux/amd64/2006.1/no-multilib, gcc-4.1.1, glibc-2.5-r0, 2.6.19.7-grsec x86_64)
=================================================================
System uname: 2.6.19.7-grsec x86_64 AMD Athlon(tm) 64 Processor 3700+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 14 Mar 2007 00:29:01 +0000
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -fstack-protector -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon64 -fstack-protector -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict suidctl userpriv usersandbox"
GENTOO_MIRRORS="ftp://mirror.q-mex.net/gentoo"
LANG="de_DE.UTF8"
LC_ALL="de_DE.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/keks"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 bash-completion bzip2 cgi cli cracklib crypt exif fastcgi gif gmp hardened idn imagemagick imap ipv6 jpeg leim logrotate mailwrapper memcache mysql ncurses nls no-old-linux nptl nptlonly pam pcre perl php png python qdbm readline ruby sensord session spell sqlite ssl suhosin tiff truetype unicode userlocales vhosts webdav xattr xml xmlrpc zip zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i810 mga neomagic nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


As said before, disabling LDFLAGS="-Wl,--as-needed" is a workaround. Will report upstream later today.
Comment 5 MT 2007-04-07 12:38:35 UTC
this bugreport is also related to this one: https://bugs.gentoo.org/show_bug.cgi?id=113975
Comment 6 Hanno Böck gentoo-dev 2007-11-23 14:24:06 UTC
Just FYI, a workaround is

LDFLAGS="" emerge courier

(Bernd noted me that I should comment this workaround into the bug)
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-05-04 19:10:09 UTC
Created attachment 151847 [details, diff]
courier-0.59.0-asneeded.patch

There you go, this patch should fix it. Good look with the eautoreconf call though :/
Comment 8 Bernd Wurst 2008-05-06 05:37:14 UTC
Thanks a lot, Diego.

Submitted to the courier mailing list today after Hanno confirmed that this one works.
Comment 9 Hanno Böck gentoo-dev 2008-05-06 11:22:13 UTC
done, thanks everyone