Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334197 - net-dialup/rp-pppoe-3.10-r1 fails with linux-headers-2.6.35
Summary: net-dialup/rp-pppoe-3.10-r1 fails with linux-headers-2.6.35
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 05:27 UTC by fkhp
Modified: 2010-11-22 02:55 UTC (History)
4 users (show)

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


Attachments
paludis output log (1282627474-install-net-dialup_rp-pppoe-3.10-r1:0::gentoo.out,95.91 KB, text/plain)
2010-08-24 05:28 UTC, fkhp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fkhp 2010-08-24 05:27:09 UTC
x86_64-pc-linux-gnu-gcc -mtune=core2 -march=core2 -O2 -msse4.1 -pipe -ftracer -Wall -Wstrict-prototypes    '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DVERSION="3.10"' -c -o debug.o debug.c
In file included from pppoe.h:24:0,
                 from pppoe.c:19:
/usr/include/linux/if.h:173:19: error: field 'ifru_addr' has incomplete type
/usr/include/linux/if.h:174:19: error: field 'ifru_dstaddr' has incomplete type
/usr/include/linux/if.h:175:19: error: field 'ifru_broadaddr' has incomplete type
/usr/include/linux/if.h:176:19: error: field 'ifru_netmask' has incomplete type
/usr/include/linux/if.h:177:19: error: field 'ifru_hwaddr' has incomplete type
make: *** [pppoe.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from pppoe.h:24:0,
                 from if.c:21:
/usr/include/linux/if.h:173:19: error: field 'ifru_addr' has incomplete type
/usr/include/linux/if.h:174:19: error: field 'ifru_dstaddr' has incomplete type
/usr/include/linux/if.h:175:19: error: field 'ifru_broadaddr' has incomplete type
/usr/include/linux/if.h:176:19: error: field 'ifru_netmask' has incomplete type
/usr/include/linux/if.h:177:19: error: field 'ifru_hwaddr' has incomplete type
make: *** [if.o] Error 1
In file included from pppoe.h:24:0,
                 from debug.c:21:
/usr/include/linux/if.h:173:19: error: field 'ifru_addr' has incomplete type
/usr/include/linux/if.h:174:19: error: field 'ifru_dstaddr' has incomplete type
/usr/include/linux/if.h:175:19: error: field 'ifru_broadaddr' has incomplete type
/usr/include/linux/if.h:176:19: error: field 'ifru_netmask' has incomplete type
/usr/include/linux/if.h:177:19: error: field 'ifru_hwaddr' has incomplete type
make: *** [debug.o] Error 1
/usr/libexec/paludis/utils/emake: emake returned error 2

!!! ERROR in net-dialup/rp-pppoe-3.10-r1::gentoo:
!!! In src_compile at line 4648
!!! emake failed


Reproducible: Always
Comment 1 fkhp 2010-08-24 05:28:52 UTC
Created attachment 244337 [details]
paludis output log

# emerge --info rp-pppoe
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.5.1, glibc-2.12.1-r1, 2.6.35-ccs-r3 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.35-ccs-r3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 24 Aug 2010 00:00:14 +0000
ccache version 2.4 [disabled]
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.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1, 4.5.1
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
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=core2 -march=core2 -O2 -msse4.1 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-mtune=core2 -march=core2 -O2 -msse4.1 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.netnitco.net/ "
LANG="zh_CN.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="zh_CN en_US zh en"
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="/usr/local/portage /var/lib/layman/x11 /var/lib/layman/vmware /var/lib/layman/gentoo-china /var/lib/layman/gentoo-taiwan /var/lib/layman/sunrise /var/lib/layman/gnome /var/lib/layman/mozilla /var/lib/layman/init6"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi alsa amd64 ao apache2 avahi bash-completion berkdb branding bzip2 cairo caps cdr cjk cli consolekit cracklib crypt cups cxx dbus dga djvu dri dts dvd dvdr eds emboss encode evo examples exif fam ffmpeg firefox flac fortran gdbm gdu gif gimp gnome gnome-keyring gphoto2 gpm gstreamer gtk guile i18n iconv icu introspection ipv6 jadetex java jpeg jpeg2k latex lcms ldap libnotify mad midi mikmod mmap mmx mng modules mp3 mp4 mpeg mudflap multilib mysql nas nautilus ncurses networkmanager nfs nls nntp nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pch pcre pda pdf perl php png policykit ppds pppd pulseaudio python qt3support qt4 readline reflection samba scsi sdl session smp snmp spell spl sqlite sse sse2 sse3 ssl ssse3 startup-notification suid svg sysfs tcpd threads tiff tk truetype unicode usb v4l2 vim-syntax vorbis x264 xattr xcb xml xmp xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ens1370 hda-intel" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN en_US zh en" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vmwgfx vmwlegacy nouveau nvidia nv vmware vesa svga" XTABLES_ADDONS="cui gfw zhang ipset" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-dialup/rp-pppoe-3.10-r1 was built with the following:
USE="X (multilib)" 
CFLAGS="-mtune=core2 -march=core2 -O2 -msse4.1 -fomit-frame-pointer -pipe"
CXXFLAGS="-mtune=core2 -march=core2 -O2 -msse4.1 -fomit-frame-pointer -pipe"
LDFLAGS="-Wl,-O1"
Comment 2 SpanKY gentoo-dev 2010-08-24 06:45:03 UTC
iirc, one of the local files is missing a simple include
Comment 3 SpanKY gentoo-dev 2010-08-25 22:05:59 UTC
*** Bug 334497 has been marked as a duplicate of this bug. ***
Comment 4 fkhp 2010-09-09 15:12:08 UTC
(In reply to comment #2)
> iirc, one of the local files is missing a simple include
> 

cp /usr/src/linux/include/linux/if.h /usr/include/linux/if.h

resolved the problem.
Comment 5 Boris Petersen 2010-10-03 10:52:19 UTC
(In reply to comment #4)
> (In reply to comment #2)
> > iirc, one of the local files is missing a simple include
> > 
> 
> cp /usr/src/linux/include/linux/if.h /usr/include/linux/if.h
> 
> resolved the problem.
> 

this causes a lot of trouble with other packages like openssh for instance
Comment 6 SpanKY gentoo-dev 2010-11-22 02:55:44 UTC
removing ${P}-linux-headers.patch seemed to fix the issue, so i made that patch conditional upon <linux-2.6.35