Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37152 - net-analyzer/cnet-2.0.5 depends on dev-libs/libelf
Summary: net-analyzer/cnet-2.0.5 depends on dev-libs/libelf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Don Seiler (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-03 17:48 UTC by Piotr Piasny
Modified: 2004-10-08 10:09 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 Piotr Piasny 2004-01-03 17:48:30 UTC
net-analyzer/cnet-2.0.5 fail to compile because libelf.h is missing.
this file can be found in dev-libs/libelf.
so (IMHO) libelf dependency for cnet is missing.

Reproducible: Always
Steps to Reproduce:
1. emerge -C libelf
2. emerge cnet
3. redo 1 and 2 with libelf installed

Actual Results:  
No such file or directory
Comment 1 Don Seiler (RETIRED) gentoo-dev 2004-01-04 16:57:46 UTC
elfutils also provides /usr/lib/libelf.h.  elfutils and libelf mutally exclude each other in the depends and don't provide anything like a virtual/libelf.

One definitely will be a dependency so I'll have to look into how to better handle it.
Comment 2 Don Seiler (RETIRED) gentoo-dev 2004-01-05 19:22:09 UTC
Note to self: Look at ntp ebuild for how to handle elfutils vs. libelf situation.
Comment 3 FieldySnuts 2004-01-25 17:25:51 UTC
I'm also seeing this problem.

Portage 2.0.49-r18 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.1)
=================================================================
System uname: 2.6.1 i686 AMD Athlon(TM) XP 1800+
Gentoo Base System version 1.4.3.10p1
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-fstack-protector -O2 -march=athlon-xp -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pipe -mmmx -msse -m3dnow -mfpmath=sse,387"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-fstack-protector -O2 -march=athlon-xp -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pipe -mmmx -msse -m3dnow -mfpmath=sse,387"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache notitles sandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://gentoo.noved.org/ http://mirror.tucdemonic.org/gentoo/ http://mirror.clarkson.edu/pub/distributions/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apm avi berkdb cdr crypt cups dv encode foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd tiff truetype x86 xml2 xmms xv zlib"
Comment 4 Don Seiler (RETIRED) gentoo-dev 2004-02-12 14:29:31 UTC
OK I've added the "OR" dependency on elfutils and libelf.  If either one of those is installed, the DEPEND is satisfied, otherwise it will install elfutils.

I've just checked it in, give it 20 minutes or so, emerge sync, and try again.
Comment 5 Thomas Saxby 2004-09-18 05:46:48 UTC
If built with elfutils 0.94-r1, cnet will not simulate correctly. Was tested with STOPANDWAIT example, (as well as others) which gave error message 'cannot read ELFinfo'. This was resolved by using libelf instead. Perhaps libelf dep was correct?
Comment 6 Writser Cleveringa 2004-10-08 10:09:56 UTC
Same problem here. cnet emerged fine but when I try to run some of the provided
tests cnet fails:

writser@writser EXAMPLES $ cnet STOPANDWAIT
cannot get ELFinfo

The FAQ of cnet said the following about this: 

"If running a Linux(ELF) system and your system doesn't provide the libelf package, you'll need the libelf package provided in the distribution. The libelf archive library and header files should already be in their correct locations for successful compilation and linking, but you may with to uncompress, untar and build the libelf-0.6.4 package yourself (as a last resort!)."

I tried to install libelf but it conflicted with elfutils. So I did the following:

emerge unmerge elfutils
emerge -v libelf elfutils
emerge unmerge cnet
emerge cnet

Result: two blocking packages installed (elfutils and libelf) and cnet still doesn't work.
Manually installing cnet-2.0.9 from http://www.csse.uwa.edu.au/cnet/install.html fixed the problem, though I still have two conflicting packages on my computer. (Not sure what one to unmerge). I think someone should look after this.

Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 AMD Athlon(TM) XP 2000+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aalib alsa apm arts avi berkdb bitmap-fonts cdr crypt cups encode esd foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xprint xv zlib"

Linux writser 2.6.8-gentoo-r3 #4 Tue Sep 28 15:46:37 Local time zone must be set--see zic manu i686 AMD Athlon(TM) XP 2000+ AuthenticAMD GNU/Linux