Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306457 - media-libs/libcanberra-0.23 fails w/ --as-needed
Summary: media-libs/libcanberra-0.23 fails w/ --as-needed
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2010-02-22 22:31 UTC by Yuri Vasilevski (RETIRED)
Modified: 2010-02-22 23:48 UTC (History)
1 user (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 Yuri Vasilevski (RETIRED) gentoo-dev 2010-02-22 22:31:02 UTC
media-libs/libcanberra-0.23 fails during ./configure while testing for lt_dladvise_init in -lltdl. But the actual problem is that functions from libdl.so are not made available due to --as-needed.

Reproducible: Always

Actual Results:  
>>> Emerging (1 of 1) media-libs/libcanberra-0.23
 * libcanberra-0.23.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                  [ ok ]
 * checking ebuild checksums ;-) ...                                                        [ ok ]
 * checking auxfile checksums ;-) ...                                                       [ ok ]
 * checking miscfile checksums ;-) ...                                                      [ ok ]
 * CPV:  media-libs/libcanberra-0.23
 * REPO: gentoo
 * USE:  alsa amd64 elibc_glibc gstreamer gtk kernel_linux multilib pulseaudio userland_GNU
>>> Unpacking source...

...

checking for ltdl.h... yes
checking for lt_dladvise_init in -lltdl... no
configure: error: Unable to find libltdl.



From config.log:
configure:15298: checking for lt_dladvise_init in -lltdl
configure:15323: x86_64-pc-linux-gnu-gcc -std=gnu99 -o conftest -march=nocona -Os -fomit-frame-pointer -pipe -static -Wall -W -Wextra -pedantic -pipe -Wno-long-long -Winline -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wpacked -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wcast-align -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option  -Wl,-O1 conftest.c -lltdl   >&5
conftest.c:36: warning: function declaration isn't a prototype [-Wstrict-prototypes]
conftest.c:39: warning: function declaration isn't a prototype [-Wstrict-prototypes]
conftest.c: In function 'main':
conftest.c:39: warning: old-style function definition [-Wold-style-definition]
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../lib64/libltdl.a(dlopen.o): In function `vm_sym':
(.text+0xc8): undefined reference to `dlsym'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../lib64/libltdl.a(dlopen.o): In function `vm_sym':
(.text+0xe1): undefined reference to `dlerror'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../lib64/libltdl.a(dlopen.o): In function `vm_close':
(.text+0x108): undefined reference to `dlclose'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../lib64/libltdl.a(dlopen.o): In function `vm_close':
(.text+0x113): undefined reference to `dlerror'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../lib64/libltdl.a(dlopen.o): In function `vm_open':
(.text+0x144): undefined reference to `dlopen'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../lib64/libltdl.a(dlopen.o): In function `vm_open':
(.text+0x169): undefined reference to `dlerror'
collect2: ld returned 1 exit status



# emerge --info
Portage 2.1.7.17 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.11-r1, 2.6.32-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r5-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 22 Feb 2010 21:35:01 +0000
app-shells/bash:     4.1_p2
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc:       4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -Os -fomit-frame-pointer -pipe -static"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=nocona -Os -fomit-frame-pointer -pipe -static"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 avahi bash-completion berkdb bzip2 cairo cleartype cli consolekit cracklib crypt cups cxx dbus djvu dri fam fortran fuse gdbm glitz gnome gnome-keyring gnutls gpm gstreamer gtk hal iconv ipv6 jpeg libnotify lzma mmx modules mudflap multilib nautilus ncurses nls nptl nptlonly opengl openmp pam pcre perl png policykit pppd pulseaudio python readline reflection secure-delete session snmp spl sse sse2 ssl startup-notification svg sysfs tcpd threads tiff truetype unicode webdav webkit xattr xcb xorg 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Yuri Vasilevski (RETIRED) gentoo-dev 2010-02-22 23:48:40 UTC
Sorry for the trouble, but I'm stupid

I forgot to remove -static from CFLAGS after playing with zabbix.