Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210208 - dev-libs/libnl-1.1 fails to build
Summary: dev-libs/libnl-1.1 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Marcelo Goes (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-15 02:18 UTC by Andrew Cowie
Modified: 2008-02-25 10:50 UTC (History)
2 users (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 Andrew Cowie 2008-02-15 02:18:14 UTC
Trying to upgrade nm-applet and networkmanager,  dev-libs/libnl-1.1 fails to build with:

  CC route/link/vlan.c
route/link/vlan.c:51: error: ‘VLAN_FLAG_REORDER_HDR’ undeclared here (not in a function)

and boom.

These three links might be relevant:

This is a distro (?) patching 1.0 to this effect:
http://recipes.gobolinux.org/r/?list=LibNL&ver=1.0-r2&file=01-missing_declaration.patch

This seems to be someone diagnosing the problem... in Czech, though:
http://www.abclinuxu.cz/forum/show/208089

And this seems to indicate a changeset to deal with a header file versioning problem:
http://article.gmane.org/gmane.comp.security.firewalls.netfilter.devel/22300

Which all leaves me wondering if this doesn't imply a dependency on a newer linux-headers?

AfC
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-15 02:23:09 UTC
emerge --info please.
Comment 2 Andrew Cowie 2008-02-15 05:26:42 UTC
Why would you RESOLVE a bug rather than just marking it NEEDINFO? Weird.

Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.2.2, glibc-2.6.1-r0, 2.6.23-gentoo-r6 i686)
=================================================================
System uname: 2.6.23-gentoo-r6 i686 Intel(R) Core(TM)2 Duo CPU T7100 @ 1.80GHz
Timestamp of tree: Fri, 15 Feb 2008 00:47:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 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.24
virtual/os-headers:  2.6.22-r1
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-ggdb -O2 -march=nocona -pipe"
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/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-ggdb -O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.internode.on.net/pub/gentoo/"
LANG="en_CA.UTF-8"
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/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X acl acpi alsa apache2 arts avahi berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam fbsplash firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv isdnlog java jpeg kerberos mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3support quicktime readline reflection sdl session spell spl ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis win32codecs x86 xml xorg xulrunner xv 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="synaptics evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


AfC
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2008-02-20 08:59:23 UTC
Thank you for report, Andrew.

I'm CC'ing you, Steev, as you could be interested in this changes.

I've backported two patches from upstream:
1. To fix this issue:
http://git.kernel.org/?p=libs/netlink/libnl.git;a=commit;h=e91bb2ffb090955d443e643a25b250bf3d33534a
2. To fix minor memleaks:
http://git.kernel.org/?p=libs/netlink/libnl.git;a=commit;h=b64f15d6f947839236fa276d473d238f8c9b9d57

FIXED in libnl-1.1-r1.
Comment 4 Krzysztof Derecki 2008-02-22 09:53:58 UTC
CC genl/ctrl.c
route/link/vlan.c:51: error: ‘VLAN_FLAG_REORDER_HDR’ undeclared here (not in a function)
Comment 5 Andrew Cowie 2008-02-22 11:51:48 UTC
I just updated and got the same problem as Krzysztof in comment #4 so re-opening.

AfC
Comment 6 Andrew Cowie 2008-02-22 11:54:23 UTC
That was a stupid thing to say; it's the original error report. Anyway, with dev-libs/libnl-1.1-r1 I appear to have the same problem. I'm not saying that the patch had no effect, but...

AfC
Comment 7 Andrew Cowie 2008-02-22 12:16:39 UTC
So steev just mentioned to me on IRC that my linux-headers were a bit old. This led me to discover that I had linux-headers in my /etc/portage/package.mask. God knows why. Anyway, upgrading linux-headers to something stable (2.6.23-r3) allowed libnl to build.

(Sorry, not sure whether that was the problem all along or whether the backported patches were also required)

Anyway, I'm good. Close?

AfC
Comment 8 Krzysztof Derecki 2008-02-22 21:05:25 UTC
(In reply to comment #7)
>[...] upgrading linux-headers to something stable (2.6.23-r3)
> allowed libnl to build.

if that helps, im using 2.6.23-gentoo-r8 version of kernel.
Comment 9 Steev Klimaszewski (RETIRED) gentoo-dev 2008-02-23 23:05:11 UTC
(In reply to comment #8)
> (In reply to comment #7)
> >[...] upgrading linux-headers to something stable (2.6.23-r3)
> > allowed libnl to build.
> 
> if that helps, im using 2.6.23-gentoo-r8 version of kernel.
> 

Kernel version isn't the linux-headers version.  The kernel itself doesn't control which version of the headers you have installed.
Comment #2 says "virtual/os-headers:  2.6.22-r1" - which was what I pointed out to AfC - so I would suggest looking at the output of your emerge --info and seeing (or you can emerge --search linux-headers ) and see which version you have installed.  
Comment 10 Peter Volkov (RETIRED) gentoo-dev 2008-02-25 07:18:06 UTC
Well, I've reproduced the bug and finally fixed in CVS. Thank you all!
Comment 11 Krzysztof Derecki 2008-02-25 10:50:00 UTC
(In reply to comment #9)

> see which version you
> have installed.  

i had 2.6.17-r2 linux headers. Upgraded, and now libnl successfully compiled. Thanks!