Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215806 - net-analyzer/wireshark-1.0.0: configuration fails (-pg and -fomit-frame-pointer are incompatible)
Summary: net-analyzer/wireshark-1.0.0: configuration fails (-pg and -fomit-frame-point...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 318385 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-02 00:22 UTC by Joel Thompson
Modified: 2010-05-05 07:24 UTC (History)
3 users (show)

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


Attachments
build.log file (build.log,11.56 KB, text/plain)
2008-04-02 00:23 UTC, Joel Thompson
Details
config.log (config.log,101.35 KB, text/plain)
2008-04-02 00:23 UTC, Joel Thompson
Details
environment file (environment,110.73 KB, text/plain)
2008-04-02 00:24 UTC, Joel Thompson
Details
config.log as requested (config.log,98.14 KB, text/plain)
2009-11-12 20:20 UTC, Radoslaw Madej (radegand)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Thompson 2008-04-02 00:22:51 UTC
When I try to emerge wireshark, it fails to compile. This happens with both 0.99.8 and 1.0.0.

checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error: GTK+ isn't available, so Wireshark can't be compiled

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-analyzer/wireshark-1.0.0/work/wireshark-1.0.0/config.log
 * 
 * ERROR: net-analyzer/wireshark-1.0.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2829:  Called econf 'src_compile' 'src_compile' '--enable-gtk2' '--enable-profile-build' '--with-gnutls' '--without-gcrypt' '--enable-wireshark' '--enable-ipv6' '--enable-threads' '--with-lua' '--wi
thout-adns' '--with-krb5' '--without-libsmi' '--with-pcap' '--with-zlib' '--with-pcre' '--without-portaudio' '--with-libcap'
 *               ebuild.sh, line  513:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *  The die message:
 *   econf failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-analyzer/wireshark-1.0.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/wireshark-1.0.0/temp/environment'.



I have tried re-emerging GTK+, and that still doesn't work.

Reproducible: Always

Steps to Reproduce:
1. emerge wireshark
Actual Results:  
The error noted above

Expected Results:  
wireshark to build

$ emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r4 i686)
=================================================================
System uname: 2.6.24-gentoo-r4 i686 Mobile Intel(R) Pentium(R) 4 CPU 3.06GHz
Timestamp of tree: Tue, 01 Apr 2008 22:45:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.3.5-r3, 2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-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
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/ ftp://ftp.ndlug.nd.edu/pub/gentoo/ http://mirror.clarkson.edu/pub/distributions/gentoo/ "
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/ion-overlay /usr/local/portage"
SYNC="rsync://128.104.70.17/gentoo-portage"
USE="X a52 aac acl acpi aim alsa apache2 arts avi bash-completion berkdb bzip2 bzlib cairo calendar caps cdb cddb cdparanoia cdr cli cracklib crypt css ctype cups daap dbus divx4linux doc dri dvd dvdr dvdread emacs emboss encode evo fam ffmpeg firefox flac fortran ftp gdbm gif ginac gnutls gpm gtk gtk2 hal i8x0 iconv ieee1394 imagemagick imap ipod ipv6 isdnlog java javascript jpeg kde kerberos ldap libwww lm_sensors lua mad midi mikmod mime mjpeg mmx mmxext mono mp3 mpeg mplayer msn mudflap mysql ncurses nls nptl nptlonly nsplugin nvidia odbc offensive ogg oggvorbis openal opengl openmp pam pcmcia pcre pdf perl php png pppd profile python qt qt3 qt3support qt4 quicktime readline real reflection rtsp samba sdl session sockets spell spl sse sse2 ssl svg svga tcltk tcpd tetex theora threads tiff truetype unicode usb vcd vorbis wifi win32codecs wxwindows x86 xml xml2 xorg xscreensaver xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Joel Thompson 2008-04-02 00:23:39 UTC
Created attachment 148031 [details]
build.log file
Comment 2 Joel Thompson 2008-04-02 00:23:58 UTC
Created attachment 148035 [details]
config.log
Comment 3 Joel Thompson 2008-04-02 00:24:28 UTC
Created attachment 148039 [details]
environment file
Comment 4 Joel Thompson 2008-04-02 00:32:32 UTC
Just a little more info on the version of gtk+ I have:

 $ equery l gtk+
[ Searching for package 'gtk+' in all categories among: ]
 * installed packages
[I--] [  ] x11-libs/gtk+-1.2.10-r12 (1)
[I--] [  ] x11-libs/gtk+-2.12.8 (2)

I also just emerged pidgin-2.4.1 with no problem, so it's likely not a problem with gtk+.
Comment 5 Daniel Tourde 2008-04-02 11:12:45 UTC
Same thing here.
I had this issue with 0.99.8 as well.

merge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-3.4.6, glibc-2.6.1-r0, 2.6.24-gentoo-r3 i686)
=================================================================
System uname: 2.6.24-gentoo-r3 i686 Intel(R) Xeon(TM) CPU 2.80GHz
Timestamp of tree: Wed, 02 Apr 2008 09:16:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.3.6-r4, 2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-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
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/spool/PBS /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/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/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc distlocks metadata-transfer sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en sv fr si"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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.europe.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d aac aalib accessibility acl acpi ada adns aiglx aim akode alsa amarok ansi apache2 apm arts asf auctex audiofile automount bash-completion bcmath beagle berkdb bidi blas bonobo boost boundchecking bzip2 bzlib c++ cairo calendar caps cdb cdr cgi cjk clearcase cli cmucl cpdflib cpudetection cracklib crypt cscope ctype cups curl curlwrappers cvs d dba dbase dbm dbus dbx deprecated dga dio directfb discouraged divx4linux doc dri dvb dvd dvdr dvdread eds emacs emacs-w3 emboss encode esd ethereal evo exif expat fam fastcgi fbcon fbcondecor ffcall ffmpeg fftw filepro firebird firefox flac flatfile foomaticdb fortran freetds ftp gcc-libffi gcj gd gdbm ggi gif ginac glut gmp gnome gnustep gnutls gphoto2 gpm gsnd gstreamer gtk gtkhtml guile hal haskell hdf5 iconv icq icu idn imagemagick imap imlib innodb iodbc ipv6 isdnlog jabber jack java javascript joystick jpeg junit kde kdeenablefinal kerberos krb4 ladcca lapack lcms ldap leim libgda lzo mad maildir mailwrapper mbox mhash midi mikmod milter mime ming mjpeg mmap mmx mng mono motif mozbranding mp3 mpeg mplayer msession msn mudflap mule mysql mysqli nas ncurses netcdf networking new-login nis nls nptl nptlonly nsplugin nvidia objc objc++ odbc offensive ofx ogg openal opengl openmp oscar oss pam pascal pcntl pcre pda pdf perforce perl php pic pie plotutils plugin png portaudio posix postgres povray ppds pppd prelude profile python qhull qt3 qt3support qt4 quicktime readline reflection regex ruby samba sasl scanner sdl seamonkey session simplexml slang slp sndfile snmp soap sockets socks5 sox speex spell spl sql sqlite sqlite3 sse sse2 ssl stlport subversion svg svga svnserve sysvipc szip tcl tcltk tcpd tetex theora threads tidy tiff tk tokenizer truetype unicode usb vhosts vorbis wddx win32codecs winbind wmf wxwindows x86 xcomposite xface xft xine xinerama xml xml2 xmlrpc xorg xosd xpm xprint xsl xv xvid yahoo yaz zeo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en sv fr si" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 6 Mikael Magnusson 2008-04-02 14:35:49 UTC
The problem is you're using -fomit-frame-pointer and have the profile USE-flag set. Unset either of them and it should be fine...
Comment 7 Daniel Tourde 2008-04-02 14:43:03 UTC
(In reply to comment #6)
> The problem is you're using -fomit-frame-pointer and have the profile USE-flag
> set. Unset either of them and it should be fine...


Hi!

Thanks for your message
'USE="-profile" emerge wireshark' did the trick. It does not complain anymore about GTK+

What you mentionned should be put as an ewarn in the ebuild, or even better, should be taken care of by the ebuild...

Daniel 

Comment 8 Joel Thompson 2008-04-02 20:47:42 UTC
(In reply to comment #6)
> The problem is you're using -fomit-frame-pointer and have the profile USE-flag
> set. Unset either of them and it should be fine...
> 

OK, that fixes it for me too. However, I think it's still a bug that the emerge can fail without some kind of warning about this known-bad combination.
Comment 9 Peter Volkov (RETIRED) gentoo-dev 2008-04-03 04:06:07 UTC
Thank you all, for report and proposed fix:

+       # profile and -fomit-frame-pointer are incompatible, bug #215806
+       use profile && filter-flags -fomit-frame-pointer

FIXED.
Comment 10 Radoslaw Madej (radegand) 2009-10-29 22:12:54 UTC
I've hit the same issue with wireshark-1.2.2 on hardened profile. Should it be reopened? 

Disabling 'profile' flag did the trick, anyway. Error below:
checking for GTK+ - version >= 2.4.0... no                                                                                                                                        
*** Could not run GTK+ test program, checking why...                                                                                                                                
*** The test program failed to compile or link. See the file config.log for the                                                                                                     
*** exact error that occured. This usually means GTK+ is incorrectly installed.                                                                                                     
configure: error: GTK+ 2.4 or later isn't available, so Wireshark can't be compiled                                                                                                 

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-analyzer/wireshark-1.2.2/work/wireshark-1.2.2/config.log
 * ERROR: net-analyzer/wireshark-1.2.2 failed:                                   
 *   econf failed  


# emerge --info
Portage 2.2_rc46 (hardened/linux/amd64/10.0/no-multilib, gcc-4.4.2, glibc-2.10.1-r0, 2.6.31.1-grsec x86_64)
=================================================================
System uname: Linux-2.6.31.1-grsec-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 27 Oct 2009 19:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
Comment 11 Peter Volkov (RETIRED) gentoo-dev 2009-11-12 18:54:08 UTC
Radoslaw, please attach the following file when seeking support:
/var/tmp/portage/net-analyzer/wireshark-1.2.2/work/wireshark-1.2.2/config.log
Comment 12 Radoslaw Madej (radegand) 2009-11-12 20:20:43 UTC
Created attachment 210058 [details]
config.log as requested

config.log for wireshark-1.2.3 . Same error applies, compiles fine without the 'profile' flag. Thanks.
Comment 13 Radoslaw Madej (radegand) 2009-11-12 20:35:55 UTC
Ah, I think I've found the error (from the log file):
x86_64-pc-linux-gnu-gcc: -pie and -pg|p|profile are incompatible

Is it PIE causing the problem?
Comment 14 Peter Volkov (RETIRED) gentoo-dev 2009-11-13 08:27:36 UTC
(In reply to comment #13)
> Ah, I think I've found the error (from the log file):
> x86_64-pc-linux-gnu-gcc: -pie and -pg|p|profile are incompatible
> 
> Is it PIE causing the problem?

Yes. I've opened bug 292991 for this issue. We'll fix it somehow.

Comment 15 Peter Volkov (RETIRED) gentoo-dev 2010-05-05 07:24:55 UTC
*** Bug 318385 has been marked as a duplicate of this bug. ***