Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334257 - sys-kernel/linux-headers-2.6.35 regressions
Summary: sys-kernel/linux-headers-2.6.35 regressions
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 10:12 UTC by Priit Laes (IRC: plaes)
Modified: 2010-08-24 18:54 UTC (History)
0 users

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 Priit Laes (IRC: plaes) 2010-08-24 10:12:25 UTC
After bumping sys-kernel/linux-headers from 2.6.34 to 2.6.35 following simple program using net-libs/libnet does not compile anymore:
[snip]
#include <linux/ipv6.h>
#include <libnet.h>
void main() {
}
[/snip]

plaes@chi ~/code/test $ gcc test.c 
In file included from /usr/include/libnet.h:80,
                 from test.c:2:
/usr/include/netinet/in.h:36: error: expected identifier before numeric constant
/usr/include/netinet/in.h:199: error: redefinition of ‘struct in6_addr’
/usr/include/netinet/in.h:240: error: redefinition of ‘struct sockaddr_in6’
/usr/include/netinet/in.h:276: error: redefinition of ‘struct ipv6_mreq’
In file included from /usr/include/libnet.h:80,
                 from test.c:2:
/usr/include/netinet/in.h:472: error: redefinition of ‘struct in6_pktinfo’
/usr/include/netinet/in.h:479: error: redefinition of ‘struct ip6_mtuinfo’



plaes@chi ~/code/test $ emerge --info
Portage 2.2_rc68 (default/linux/amd64/10.0/no-multilib, gcc-4.4.4, glibc-2.12.1-r1, 2.6.36-rc1-00159-g36423a5 x86_64)
=================================================================
System uname: Linux-2.6.36-rc1-00159-g36423a5-x86_64-Intel-R-_Core-TM-2_CPU_L7400_@_1.50GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 24 Aug 2010 08:30:17 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.2
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.4_p6, 1.5, 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-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -ggdb -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /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/portage /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="-march=native -ggdb -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache collision-protect distlocks fixlafiles fixpackages multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="et_EE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en et"
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/tryton /var/lib/layman/esteid /home/plaes/code/gentoo/gnome /home/plaes/code/gentoo/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi adns alsa amd64 amr apache2 ares autoipd avahi berkdb blas bluetooth bogofilter branding bzip2 cairo cdr cjk cli consolekit cracklib crypt cups curl cxx daap dbus device-mapper dga dirac djvu dri dvd dvdr dvi eds empathy encode exif faac faad fam fat ffmpeg fftw flac fortran fuse galago gcj gd gdbm gif gimp git glib glitz gmp gnome gnome-keyring gnuplot gnutls gphoto2 gs gsl gstreamer gtk h323 hal hdri iconv idn imap introspection ipv6 jingle jpeg jpeg2k kdrive kpathsea lapack laptop latex lcms libffi libnotify lzma lzo mad mercurial mikmod mmx mng moonlight mozdevelop mp3 mpeg msn mtp mudflap music musicbrainz nautilus ncurses network network-cron networkmanager nls nptl nptlonly nsplugin numpy offensive ogg openexr opengl openmp pam pch pcmcia pcre pcsc-lite pdf perl png policykit pppd pygments python qt3support raw readline reflection resolvconf rtmp sasl schroedinger sdl session sip smartcard smp sound speex spl sse sse2 ssl ssse3 startup-notification subversion svg sysfs tcpd theora tiff truetype udev unicode upnp usb v4l v4l2 vaapi vdpau vim-syntax vorbis vpx webkit wifi wps x264 xcb xinerama xml xmp xorg xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template topfield toshiba_pdrm11" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en et" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2010-08-24 18:54:08 UTC
this is as upstream designed.  dont mix kernel and C library headers.