Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 468490 - net-analyzer/wireshark-1.10.0_rc1 USE="-ssl netlink" - configure:17437: error: "I couldn't find libnl even though you manually enabled it."
Summary: net-analyzer/wireshark-1.10.0_rc1 USE="-ssl netlink" - configure:17437: error...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL: http://anonsvn.wireshark.org/viewvc?v...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2013-05-03 17:50 UTC by Chris Smith
Modified: 2013-05-09 15:03 UTC (History)
2 users (show)

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


Attachments
config log (wireshark-1.10.0rc1.config.log,99.02 KB, text/plain)
2013-05-03 17:50 UTC, Chris Smith
Details
emerge --info (emerge.info,6.17 KB, text/plain)
2013-05-06 06:51 UTC, Guillaume Castagnino
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Smith 2013-05-03 17:50:05 UTC
net-analyzer/wireshark-1.10.0_rc1 fails to configure - can't find libnl

libnl is installed

Reproducible: Always

Actual Results:  
...
checking for LIBGCRYPT - version >= 1.1.92... yes
libgcrypt found, enabling ipsec decryption
checking whether to use libnl for various network interface purposes... yes
checking for LIBNL3... no
checking for LIBNL2... no
checking for LIBNL1... no
configure: error: "I couldn't find libnl even though you manually enabled it."
Comment 1 Chris Smith 2013-05-03 17:50:37 UTC
Created attachment 347298 [details]
config log
Comment 2 Guillaume Castagnino 2013-05-04 05:41:41 UTC
Confirmed.
Seems that there is a version mismatch in libnl. Don't know which of the 2 is good

Look at this, libnl-3 reports version 0.28:
$ pkg-config libnl-3 --version
0.28

But in wireshark configure.ac there is this, checking for libnl-3 3.0:
PKG_CHECK_MODULES(LIBNL3, [libnl-route-3.0 >= 3.0 libnl-genl-3.0] >= 3.0, [have_libnl3=yes], [have_libnl3=no])




This fixes this issue (followed by an autoconf call):
# diff -u configure.ac.old  configure.ac
--- configure.ac.old    2013-05-04 07:37:32.805362134 +0200
+++ configure.ac        2013-05-04 07:37:46.325644052 +0200
@@ -300,7 +300,7 @@
                # was requested by the user.
                #
                if test x$libnl_version = "xany" -o x$libnl_version = "x3"; then
-                       PKG_CHECK_MODULES(LIBNL3, [libnl-route-3.0 >= 3.0 libnl-genl-3.0] >= 3.0, [have_libnl3=yes], [have_libnl3=no])
+                       PKG_CHECK_MODULES(LIBNL3, [libnl-route-3.0 >= 3.0 libnl-genl-3.0] >= 0.28, [have_libnl3=yes], [have_libnl3=no])
                fi
                if test x$libnl_version = "xany" -o x$libnl_version = "x2"; then
                        PKG_CHECK_MODULES(LIBNL2, libnl-2.0 >= 2.0, [have_libnl2=yes], [have_libnl2=no])
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-06 06:42:21 UTC
(In reply to comment #2)
> Look at this, libnl-3 reports version 0.28:
> $ pkg-config libnl-3 --version
> 0.28

This tells you the version of pkg-config. :)
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-06 06:45:07 UTC
1) Please post your `emerge --info' output in a comment.
2) Please post your `emerge -vpq dev-libs/libnl' output in a comment.
Comment 5 Guillaume Castagnino 2013-05-06 06:51:51 UTC
Created attachment 347488 [details]
emerge --info

Here are mine

# emerge -vpq dev-libs/libnl
[ebuild   R   ] dev-libs/libnl-3.2.22_rc1  USE="-static-libs -utils"
Comment 6 Chris Smith 2013-05-06 14:04:04 UTC
$ emerge --info
Portage 2.2.0_alpha174 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.2, glibc-2.17, 3.9.0-gentoo x86_64)
=================================================================
System uname: Linux-3.9.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:    32899908 total,  17394856 free
KiB Swap:    6291452 total,   6291452 free
Timestamp of tree: Sun, 05 May 2013 22:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.4, 3.2.4
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo desktop server
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"                                                                                                              
FFLAGS="-O2 -pipe"                                                                                                     
GENTOO_MIRRORS="http://distfiles.gentoo.org"                                                                           
LANG="en_US.utf8"                                                                                                      
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                      
MAKEOPTS="-j5"                                                                                                         
PKGDIR="/usr/portage/packages"                                                                                         
PORTAGE_CONFIGROOT="/"                                                                                                 
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                               
PORTAGE_TMPDIR="/var/tmp"                                                                                              
PORTDIR="/usr/portage"                                                                                                 
PORTDIR_OVERLAY="/usr/local/portage/desktop /usr/local/portage/server"                                                 
SYNC="rsync://rsync11.us.gentoo.org/gentoo-portage"                                                                    
USE="X a52 aac aalib acl acpi alsa amd64 amr apache2 audiofile bash-completion berkdb bluray branding bzip2 cairo caps cdaudio cdda cddb cdparanoia cdr cdrdao chm cli consolekit cracklib crypt cups curl cxx dbus declarative designer-plugin djvu dri dts dv dvb dvd dvdr ebook emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gmp gnome gphoto2 gpm graphite gstreamer gtk gtk3 iconv icu ieee1394 imagemagick imap imlib introspection ipv6 jack java jpeg jpeg2k kde kipi kpathsea lame lcms libffi libnotify mad marble midi mmap mmx mng modules mozilla mp3 mp4 mpeg mtp mudflap multilib musicbrainz mythtv ncurses network nls nodrm nptl nsplugin nvidia ofx ogg opencl openexr opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 quicktime readline rtmp samba sasl scanner sdl semantic-desktop session slp smp sndfile spell sse sse2 ssl startup-notification subversion svg theora threads tiff tk transparency truetype udev udisks unicode upower usb v4l vaapi vcd vdpau vim-syntax vorbis vpx wav wavpack wmf wxwidgets x264 xattr xcomposite xine xinerama xml xscreensaver xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel hdsp hpet hrtimer rtctimer seqdummy virmidi" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LINGUAS="en_US en" NGINX_MODULES_HTTP="autoindex fancyindex fastcgi gzip" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 7 Chris Smith 2013-05-06 14:04:57 UTC
$ emerge -vpq dev-libs/libnl
[ebuild   R   ] dev-libs/libnl-3.2.22_rc1  USE="utils -static-libs"
Comment 8 Ben Kohler gentoo-dev 2013-05-07 02:42:50 UTC
I believe this is only happening with USE="-ssl" on wireshark, can you guys confirm that?
Comment 9 Chris Smith 2013-05-07 02:59:50 UTC
(In reply to comment #8)
> I believe this is only happening with USE="-ssl" on wireshark, can you guys
> confirm that?

Confirmed.
Comment 10 Ben Kohler gentoo-dev 2013-05-07 13:46:21 UTC
I think there is a bug in configure.ac somewhere.  The tests being run by ./configure for libnl do not report any errors, but still come out with a "failed" status.  If I try to manually run the same pkg-config commands, it finds libnl perfectly.


FYI to simplify troubleshooting, this can be triggered outside emerge with "./configure --with-libnl --without-gnutls".
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-07 14:45:23 UTC
(In reply to comment #10)
> I think there is a bug in configure.ac somewhere.

Yes.
Comment 12 Ben Kohler gentoo-dev 2013-05-07 15:31:48 UTC
This bug seems to have existed since libnl was very first given a ./configure option in this commit:
http://anonsvn.wireshark.org/viewvc/trunk/configure.ac?r1=48307&r2=48395

At that point it was given a --enable-libnl option (versus --with-libnl it has now), and I get the following results:

# ./configure --enable-libnl
...
                     Use nl library : yes (v3)


# ./configure --enable-libnl --without-gnutls
...
                     Use nl library : no
Comment 13 Ben Kohler gentoo-dev 2013-05-07 16:04:21 UTC
Actually, it's been broken in this way since libnl support (configure autodetection) was first added in r43375 in June 2012, so not quite a brand new regression.
Comment 14 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-07 21:47:00 UTC
(In reply to comment #12)
> At that point it was given a --enable-libnl option (versus --with-libnl it
> has now), and I get the following results:
> 
> # ./configure --enable-libnl
> ...
>                      Use nl library : yes (v3)
You're on the wrong track because you missed something:

$ ./configure --enable-libnl --with-gnutls
configure: WARNING: unrecognized options: --enable-libnl
[...]

Without --with-libnl, it does some auto-detection and of course succeeds.

Something is wrong in configure.ac, but this isn't it. It probably comes down to a namespace collision between different tests' variables.
Comment 15 Ben Kohler gentoo-dev 2013-05-07 21:59:29 UTC
Well --enable-libnl was only valid for r48395, the first commit with non-autodetect libnl usage.  It does work as I used it there. BUT you're right that this isn't relevant.

If you go back to r43375 where libnl support was added, still using only autodetection, the autodetection fails when gnutls is disabled.  So --without-gnutls has broken libnl use since the beginning.

r43375 tests:

# ./configure
...
Use nl library : yes (v3)


# ./configure --without-gnutls
...
Use nl library : no
Comment 16 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-08 01:00:43 UTC
The problem is that PKG_PROG_PKG_CONFIG is only expanded once, so if you call it PKG_CHECK_MODULES conditionally the first time, as pkg.m4 helpfully explains, you have to explicitly invoke PKG_PROG_PKG_CONFIG before using PKG_CHECK_MODULES.
Comment 17 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-09 15:03:13 UTC
Accepted upstream.