Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151996 - net-analyzer/sussen does not compile right with LDFLAGS="-Wl,--as-needed"
Summary: net-analyzer/sussen does not compile right with LDFLAGS="-Wl,--as-needed"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2006-10-19 12:20 UTC by Xake
Modified: 2006-10-22 04:35 UTC (History)
1 user (show)

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


Attachments
The file asked to be attached... (config.log,48.01 KB, text/plain)
2006-10-19 12:22 UTC, Xake
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xake 2006-10-19 12:20:50 UTC
checking for LIBPANELAPPLET... yes
checking for LIBTRAYICON... yes
checking for rpmdbOpen in -lrpm... no
configure: error: You must have librpm installed to compile sussen

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/net-analyzer/sussen-0.31/work/sussen-0.31/config.log

!!! ERROR: net-analyzer/sussen-0.31 failed.

Has happend on two very diffrent computers.

Portage 2.1.2_pre3-r5 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r1 i686)
=================================================================
System uname: 2.6.18-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.5
Last Sync: Thu, 19 Oct 2006 10:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.17.50.0.5
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -pipe -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium4 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="autoconfig ccache distlocks parallel-fetch sandbox sfperms splitdebug strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.csbnet.se/pub/linux/distributions/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://mirror.pudas.net/gentoo"
LANG="sv"
LC_ALL="sv_SE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both"
LINGUAS="sv_SE"
MAKEOPTS="-j5"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/portage /usr/portage/local/layman/portage-xgl /usr/portage/local/layman/musicbrainz /usr/portage/local/layman/liferea_overlay /usr/portage/local/layman/nxsty"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa asf audioscrobbler bash bash-completion beagle berkdb bitmap-fonts branding browserplugin bzip2 cairo cdr cli cracklib crypt cups dbus divx dlloader dpms dri dvd dvdr eds elibc_glibc emboss encode evolution fam fat firefox flac fortran freetype gd gdbm gif glitz gmp gnome gnutls gpm gstreamer gtk gtk2 gtkhtml hal howl-compat icu inotify input_devices_evdev ipv6 irmc isdnlog ithreads java jikes joystick jpeg kernel_linux lcms ldap libg++ libnotify libsexy linguas_sv_SE lm_sensors logrotate mad matroska mikmod mmx mng mono moznocompose moznoirc moznomail mp3 mpeg musepack musicbrainz nautilus ncurses network nls nptl nptlonly ntfs ntp numeric offensive ogg opengl pam pcre pdf perl pic png ppds pppd print python quicktime readline real reflection reiserfs rtc samba sdl sensord session smp sox spell spf spl sse sse2 ssh ssl startup-notification svg syslog tagwriting tcltk tcpd test theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales utf8 video_cards_none video_cards_nvidia vorbis win32codecs wma wmf wv wxwindows xcomposite xinerama xinetd xml xml2 xorg xosd xprint xv xvid zlib"
Unset:  CTARGET, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Xake 2006-10-19 12:22:07 UTC
Created attachment 100040 [details]
The file asked to be attached...
Comment 2 Thomas Tuttle 2006-10-19 13:04:18 UTC
(In reply to comment #0)
> checking for LIBPANELAPPLET... yes
> checking for LIBTRAYICON... yes
> checking for rpmdbOpen in -lrpm... no
> configure: error: You must have librpm installed to compile sussen
> 
> !!! Please attach the following file when filing a report to bugs.gentoo.org:
> !!! /var/tmp/portage/net-analyzer/sussen-0.31/work/sussen-0.31/config.log
> 
> !!! ERROR: net-analyzer/sussen-0.31 failed.
> 
> Has happend on two very diffrent computers.

Works for me, on x86.  Emerge properly pulls in app-arch/rpm for me when I emerge sussen.  If I ask it to emerge sussen with --nodeps, though, I get the error you got.  Have you tried re-emerging rpm?
Comment 3 Xake 2006-10-19 13:14:16 UTC
Yep, a lot of time.

I have all the deps, /usr/lib/librpm.so and everything, it seems to fail not becouse of it does not find the file but it can't finde a special call so maybe I miss a dependency for rpm?
Comment 4 Xake 2006-10-19 13:38:27 UTC
I found out what was wrong...
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2006-10-20 09:08:13 UTC
Peter. Do you share your knowledge with us? :) Well, I'm closing bug for now. Reopen if you have any other notes.
Comment 6 Xake 2006-10-21 01:53:14 UTC
Sorry but I thought the subject change and the blocker talked for itself....
Comment 7 Xake 2006-10-21 01:55:58 UTC
Ooops. Was going to tell that the problem was becouse of having rpm merged with LDFLAGS="-Wl, --as-needed", rebuild without it and it works as it should. Reassign as you see fit.
Comment 8 Peter Volkov (RETIRED) gentoo-dev 2006-10-22 03:07:02 UTC
Thank you for report, Peter.

I can reproduce this bug with rpm compiled with "--as-needed". But I can *also* reproduce bug with with rpm compiled *without* --as-needed (note I have --as-needed in LDFAGS during sussen emerge). Thus I suppose this is bug in sussen itself. Can you confirm this behaviour (emerge rpm without --as-needed and try to emerge sussen with LDFLAGS="-Wl,--as-needed")?

I've asked Diego (flameeyes) to comment the issue. As soon as I'll receive his answer I hope I'll fix this.
Comment 9 Peter Volkov (RETIRED) gentoo-dev 2006-10-22 04:35:20 UTC
Diego is really fast. :) So, thank you for report again... Bug is fixed. Wait for 1 hour, resync and try to emerge sussen-0.31 again.