Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 315045 - net-im/qutecom libs in /usr/lib/qutecom/ are not found with --as-needed
Summary: net-im/qutecom libs in /usr/lib/qutecom/ are not found with --as-needed
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Chí-Thanh Christopher Nguyễn
Depends on:
Blocks: as-needed
  Show dependency tree
Reported: 2010-04-13 19:53 UTC by pjv
Modified: 2013-07-21 07:22 UTC (History)
3 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description pjv 2010-04-13 19:53:55 UTC
The libs of qutecom-2.2_p20090606 get installed into /usr/lib/qutecom/ instead of /usr/lib/. For qutecom to work this needs to be in your path or you need to move the files. Qutecom will complain about not finding

Reproducible: Always
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-04-13 20:18:06 UTC
This is in the path

# objdump -p /usr/bin/qutecom | grep qutecom
  RPATH       /usr/lib64/qutecom:/usr/lib64/qt4
  RUNPATH     /usr/lib64/qutecom:/usr/lib64/qt4

If not, then something went wrong with your build of qutecom.
Comment 2 pjv 2010-04-13 22:29:52 UTC
# objdump -p /usr/bin/qutecom | grep qutecom
/usr/bin/qutecom:     file format elf32-i386
  RPATH       /usr/lib/qutecom:/usr/lib/qt4
  RUNPATH     /usr/lib/qutecom:/usr/lib/qt4

That seems correct then. However when I delete the files in /usr/lib/ again (I copied them there), I get:

qutecom: error while loading shared libraries: cannot open shared object file: No such file or directory

I see this on two systems.

# emerge --info
Portage (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6043 i686)
System uname: Linux-2.6.31-gentoo-r6043-i686-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-1.12.13
Timestamp of tree: Sat, 23 Jan 2010 22:30:18 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.9-r2
dev-lang/python:     2.6.4
dev-python/pycrypto: 2.1.0_beta1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
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.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -msse3"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /usr/share/cursors/xfree/default/index.theme,/sbin/halt,/sbin/shutdown,/sbin/reboot,/usr/bin/emerge,/usr/share/xmodmap/xmodmap.us_intl-be-deadkeys,/usr/X11R6/lib/X11/xkb/symbols/pc/us-dutch,/usr/X11R6/lib/X11/xkb/rules/xfree86,/usr/X11R6/lib/X11/xkb/symbols.dir,/usr/X11R6/lib/X11/locale/iso8859-15/Compose,/usr/lib/X11/xkb/symbols/pc/us-dutch,/usr/lib/X11/xkb/rules/xfree86,/usr/lib/X11/xkb/symbols.dir,/usr/lib/X11/locale/iso8859-15/Compose,/usr/X11R6/lib/X11/locale/iso8859-15/Compose.xorg,/usr/lib/X11/locale/iso8859-15/Compose.xorg,/usr/X11R6/lib/X11/xkb/rules/xorg,/usr/lib/X11/xkb/rules/xorg,/usr/share/X11/xkb/symbols/pc/us-dutch,/usr/share/X11/xkb/rules/xfree86,/usr/share/X11/xkb/rules/xorg,/usr/share/X11/xkb/symbols.dir,/usr/share/X11/xkb/symbols/us-dutch,/usr/share/X11/locale/iso8859-15/Compose,/usr/lib/hal/scripts/linux/hal-system-power-suspend-linux,/usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -msse3"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned psyco sandbox sfperms strict unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage/layman/bazaar /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/ikelos /usr/local/portage/layman/java-overlay /usr/local/portage/layman/liquidx /usr/local/portage/layman/secondlife /usr/local/portage/layman/suka /usr/local/portage/layman/sunrise /usr/local/portage/layman/voip /usr/local/portage/layman/vuze-bin /usr/local/portage/layman/wschlich-testing /usr/local/portage"
USE="X a52 aac acl acpi acpi4linux aiglx alsa applet asf avahi bash-completion be beagle berkdb binary-drivers bluetooth bonobo branding browserplugin bzip2 cairo calendar caps cardbus ccache cdaudio cdda cddax cddb cdr cdrkit cdrom cdrparanoia chipcard chm chroot cjk clamav clamd clanVoice cli codecs colordiff console consolekit cracklib crypt css cuda cups cursors custom-optimization cxx daap dbus dga dhcp dhcpcd dia dict dirac directfb disk-partition distribution divx divx4linux djvu dmi dnd dri dts dv dvd dvdnav dvdr dvdread dvi eap-sim edl eds enblend enca encode equalizer ethereal evo evolution exif faad faad2 fam fasttrack fat fbcon fbcondecor fbsplash ffmpeg firefox flac flash font-server fr freebox freetts freetype ftp fuse gaim galago gamin gammu gatos gb gd gdbm gdl gdm gedit gif gimp gimpprint glibc-omitfp glitz gmail gmailtimestamps gmedia gnokii gnome gnome-keyring gnome-print gnutella gnutls gocr gphoto2 gpm gsm gstreamer gtk gtk2 gui gzip h323 hal hddtemp hibernate-script hou howl hpn ical icons iconv icq id3 id3tag ieee1394 imap inotify insecure-savers ipv6 ipw4965 irc iris irmc java java5 java6 javascript jfs jpeg jpeg2k jrtplib jsapi kdgraphics kerberos keyring kpathsea krb4 lame lcd ldap libburn libnotify libsexy live lm_sensors lzo lzw-tiff mad maps matroska maya-shaderlibrary mbox mbrola mcal md5sum mdb mdnsresponder-compat mime ming mmap mmkeys mmx mmx2 mmxext mng modplug modules monkey mono mozbranding mozp3p mozsvg mp3 mp3rtp mp4 mp4live mpeg mpeg2 mpeg4 mplayer msn mudflap muine mule music musicbrainz mythtv nautilus ncurses net network networkmanager nl nl_wolf nls nntp no-seamonkey nocd nograss nptl nptlonly nsplugin ntfs ntlm nvidia nvtv oav obex ofa office ogg openal openct opendoc openft opengl openmp p2p pam pcmcia pcre pcsc-lite pdf perl php pidgin plugin plugin-file plugin-python plugins pmu png pnp policykit pop portaudio postscript ppds pppd prediction ps qt3support quicktime quotes rar rdesktop readline realmedia reflection regex reiser4 reiserfs remote resolvconf rhythmbox rss rtc samba scanner schroedinger serpentine session seti sftp sharedmem sift skype smp sms snmp sound soundtouch speex spell spl srt sse sse-filters sse2 ssl ssse3 startup-notification streamripper subtitles subversion suid svg sysfs taglib tagwriting tcpd tesseract theora thunar tiff timidity tools totem tpmtok tracker transcode trayicon truetype trusted unicode usagi usb userlocales utf8 v4l v4l2 vcd vditool videos visualization vorbis vorbis-psy wavpack webmin-minimal widescreen wifi win32codecs wma wmf wmp x264 x86 xanim xattr xchatdccserver xcomposite xen xext xfs xim xine xinerama xml xmp xorg xosd xpm xscreensaver xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="hda-intel" 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" CAMERAS="canon directory ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="nl" NETBEANS_MODULES="groovy gsf j2ee ide java harness websvccommon nb profiler" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vga vesa fbdev nv"
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-04-13 22:38:54 UTC
please attach "ldd /usr/bin/qutecom" output.

What appears different on your system is the use of --as-needed.
Comment 4 pjv 2010-04-13 22:47:52 UTC
# ldd /usr/bin/qutecom =>  (0xb77c9000) (0xb77b5000) (0x44182000) => /usr/lib/qutecom/ (0xb7789000) => /usr/lib/qutecom/ (0xb7762000) => /usr/lib/qutecom/ (0xb7751000) => /usr/lib/qt4/ (0x44397000) => /usr/lib/qt4/ (0x4463e000) => /usr/lib/qt4/ (0x44565000) => /usr/lib/qt4/ (0xb771f000) => /usr/lib/qt4/ (0x44295000) => /usr/lib/qt4/ (0x441bc000) => /usr/lib/qutecom/ (0xb7719000) => /usr/lib/qutecom/ (0xb7709000) (0xb76a4000) => /usr/lib/qutecom/ (0xb75b9000) => /lib/ (0x45263000) (0xb74df000) => /usr/lib/qutecom/ (0xb74da000) (0x453e8000) (0x4570c000) (0x472ca000) (0xb74c7000) (0xb7495000) (0xb73a6000) (0x452be000) (0xb7363000) (0xb7330000) (0xb72bc000) => /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/ (0x455bd000) => /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/ (0x45501000) => /lib/ (0x450c6000) => /lib/ (0x4525d000) => /lib/ (0x454ba000) => /lib/ (0x45713000) => not found (0xb7179000) (0xb7130000) => /lib/ (0x4527e000) => /lib/ (0x45234000) (0x45511000) (0x45537000) (0x454c5000) (0x45a2c000) (0x45982000) (0x45700000) (0x45720000) (0x4571a000) (0x456d4000) (0x453d7000) (0x45ff6000) (0x44339000) (0xb70f4000) (0xb6ffa000) (0xb6fcf000) (0xb6fc9000) (0x456cd000) => not found (0x44ec6000)
	/lib/ (0x4415a000) (0xb6f34000) (0xb6ef4000) (0xb6ee8000) (0xb6e73000) (0xb6e56000) (0xb6dd0000) (0xb6dba000) (0xb6d8a000) (0xb6cf6000) (0xb6bdd000) (0x47292000) (0x441a4000) (0xb6ba1000) (0xb6b92000) (0xb6ad6000) (0x45e3e000) => /lib/ (0x44333000) => /lib/ (0x47240000) => /lib/ (0xb6abe000) (0x4529b000) (0xb6a83000) (0xb6a76000) (0xb6a4c000) (0xb69be000) (0x4435d000) => /lib/ (0x4424e000) (0x471aa000) (0x47143000) (0x470c9000) (0x470c2000) (0x456a6000) (0xb6950000) (0x452b8000) (0x45293000) (0x44254000)
Comment 5 pjv 2010-04-13 22:55:50 UTC
Something else I am seeing (not sure if this is related) is messages like:

(warn) 00:50:35 [PhApi] : osip: /var/tmp/portage/net-im/qutecom-2.2_p20090606/work/qutecom-2.2_p20090606/wifo/libosip2/src/osip2/osip_dialog.c:355: Remote UA is not compliant: missing a tag in response!

when qutecom is running. Strangely, this mentions portage's temporary build directory. How about messages like this and crash reports, can I post them as bugs upstream without the ebuild process interfering? I mean, when the emerge runs, there are quite some notices that this is "badly written software" with an atypical make process. Should that be addressed first?

Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-04-13 23:21:04 UTC
ldd output finds all libraries correctly, so no qutecom bug. I presume the problem is in your toolchain, most likely glibc.
Comment 7 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-04-13 23:24:34 UTC
Ah, I spoke too early, it finds only some libraries in /usr/lib/qutecom and others not. => /usr/lib/qutecom/ (0xb7709000) => not found

Could still be --as-needed problem.
Bugging upstream is also possible but you would need to build hg tip.
Comment 8 pjv 2010-04-14 21:00:39 UTC
So I should build without --as-needed to verify? Let me try that soon.
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-06-22 09:32:58 UTC
Does this still happen with the most current snapshot?
Comment 10 pjv 2010-06-22 16:51:13 UTC
Hi, sorry. I haven't found time yet to provide you the needed info. Please standby.
Comment 11 Joe Kowalski 2010-07-03 07:01:02 UTC
I am experiencing this bug with 2.2_p20100620. Taking --as-needed out of my paludis bashrc allows qutecom to run properly.
Comment 12 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-08-14 16:49:17 UTC
The ebuild now filters --as-needed from LDFLAGS. Keeping this bug open for a proper fix.
Comment 13 Samuli Suominen (RETIRED) gentoo-dev 2011-09-30 19:41:24 UTC
qutecom was removed from tree because it failed to compile with linux-headers-2.6.38 and above, closing as WONTFIX
Comment 14 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-10-01 17:07:22 UTC
Comment 15 Samuli Suominen (RETIRED) gentoo-dev 2011-10-02 08:25:41 UTC
Closing again as per bug 361181
Comment 16 Pacho Ramos gentoo-dev 2013-07-21 07:22:50 UTC