Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318385 - net-analyzer/wireshark-1.2.7-r1 configure: error: GTK+ 2.4 or later isn't available
Summary: net-analyzer/wireshark-1.2.7-r1 configure: error: GTK+ 2.4 or later isn't ava...
Status: RESOLVED DUPLICATE of bug 215806
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-04 08:59 UTC by Bas van Dijk
Modified: 2010-05-05 15:55 UTC (History)
1 user (show)

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


Attachments
configure log (config.log,97.71 KB, text/plain)
2010-05-04 09:00 UTC, Bas van Dijk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bas van Dijk 2010-05-04 08:59:27 UTC
$ emerge wireshark
>>> Emerging (3 of 3) net-analyzer/wireshark-1.2.7-r1
...
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


According to the configure.log the test program fails to compile due to unrecognized and incompatible command line arguments:

configure:14133: i686-pc-linux-gnu-gcc -o conftest  -pg -D_U_="__attribute__((unused))" -O2 -march=native -pipe -fomit-frame-pointer -nopie -Wall -W -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security -I/usr/include -I/usr/local/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12    -I/usr/include -I/usr/local/include -Wl,-O1 -L/usr/lib -L/usr/local/lib conftest.c  -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   >&5
i686-pc-linux-gnu-gcc: unrecognized option '-nopie'
i686-pc-linux-gnu-gcc: -pg and -fomit-frame-pointer are incompatible


BTW Note that do have gtk+ > 2.4 installed:

$ emerge gtk+ -p

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-libs/gtk+-2.18.9 


$ emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.11.1-r0, 2.6.32-gentoo-r7 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-i686-Intel-R-_Pentium-R-_Dual_CPU_E2200_@_2.20GHz-with-gentoo-1.12.13
Timestamp of tree: Tue, 04 May 2010 07:15:02 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.5.4-r3, 2.6.4-r1
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.65
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
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://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/ http://mirror.muntinternet.net/pub/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://mirror.leaseweb.com/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US en_GB nl"
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="/var/lib/layman/kde-testing /var/lib/layman/haskell"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dirac doc dri dts dvd dvdr emacs emboss encode exif faac faad fam ffmpeg firefox flac fortran gdbm gif glade gpm graphviz gs gtk hal hscolour iconv ipv6 java jpeg lapack lcms ldap libnotify lightning mad mikmod mmx mng modules mozdevelop mozdom mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl png ppds pppd profile python qt3support qt4 readline reflection samba sdl semantic-desktop session spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora threads tiff tk toolkit-scroll-bars truetype unicode usb vorbis win32codecs wmf x264 x86 xcb xft xml xorg xulrunner xv xvid zeroconf 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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB nl" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always
Comment 1 Bas van Dijk 2010-05-04 09:00:46 UTC
Created attachment 230237 [details]
configure log
Comment 2 Bas van Dijk 2010-05-04 09:29:24 UTC
Note that when I remove -fomit-remove-frame-pointer from my CFLAGS the package emerges just fine.

I guess I had to read this warning more carefully:

 * 
 * USE=profile and -fomit-frame-pointer make no sense
 * Fix your build settings to avoid build failures
 * 

But why do these settings not make sense?

And is it possible to selectively enable or disable CFLAGS for packages similar to selectively enabling or disabling USE flags via /etc/portage/package.use
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2010-05-05 07:24:55 UTC
(In reply to comment #2)
> Note that when I remove -fomit-remove-frame-pointer from my CFLAGS the package
> emerges just fine.

> But why do these settings not make sense?

Because it's impossible to profile application if it was built with -fomit-frame-pointer. Why do you need profiling in case you ask such questions?
 
> And is it possible to selectively enable or disable CFLAGS for packages
> similar to selectively enabling or disabling USE flags via 
> /etc/portage/package.use

Better disable profile USE flag. You really don't need it. And yes, it is possible, in /etc/portage/env/${CATEGORY}/${PN}. Ask google to find specifics.

*** This bug has been marked as a duplicate of bug 215806 ***
Comment 4 Bas van Dijk 2010-05-05 15:55:59 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Note that when I remove -fomit-remove-frame-pointer from my CFLAGS the package
> > emerges just fine.
> 
> > But why do these settings not make sense?
> 
> Because it's impossible to profile application if it was built with
> -fomit-frame-pointer. Why do you need profiling in case you ask such questions?

Oh yes of course! Thanks for clearing that up.

> 
> > And is it possible to selectively enable or disable CFLAGS for packages
> > similar to selectively enabling or disabling USE flags via 
> > /etc/portage/package.use
> 
> Better disable profile USE flag. You really don't need it. 

Ok will do.

> And yes, it is possible, in 
> /etc/portage/env/${CATEGORY}/${PN}. Ask google to find specifics.
 
Ok it would be nice if this was mentioned in 'man portage'.

> *** This bug has been marked as a duplicate of bug 215806 ***

Thanks for adding me to the CC of that bug.