Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159877 - net-dialup/ppp-2.4.4-r4 doesn't compile with linux-headers 2.6.19
Summary: net-dialup/ppp-2.4.4-r4 doesn't compile with linux-headers 2.6.19
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
: 159878 159879 (view as bug list)
Depends on:
Blocks: sane-linux-headers
  Show dependency tree
 
Reported: 2007-01-03 10:30 UTC by Emanuele Tamponi
Modified: 2007-01-05 12:31 UTC (History)
6 users (show)

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


Attachments
Define _GNU_SOURCE in if.c (ppp-linux-headers-2.6.19.patch,417 bytes, patch)
2007-01-04 05:06 UTC, Arun Raghavan (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Emanuele Tamponi 2007-01-03 10:30:45 UTC
That's the error when compiling ppp:

i686-pc-linux-gnu-gcc -Os -march=i686 -pipe -I../../../include/linux
'-DVERSION="3.3"' -c -o if.o -fPIC if.c
if.c: In function ‘openInterface’:
if.c:423: error: storage size of ‘ifr’ isn’t known
make[2]: *** [if.o] Error 1

Strangely, this error doesn't stop the compilation, that goes "well", but
suddently an error occours at the beginning of the installation because
rp-pppoe.so doesn't exist! The error on installation is:

>>> Source compiled.
>>> Test phase [not enabled]: net-dialup/ppp-2.4.4-r4

>>> Install ppp-2.4.4-r4 into /var/tmp/portage/net-dialup/ppp-2.4.4-r4/image/ category net-dialup
!!! dosbin: pppd/plugins/rp-pppoe/pppoe-discovery does not exist
install: cannot stats `pppd/plugins/rp-pppoe/rp-pppoe.so': No such file or
directory


ppp used to compile&install fine with older kernels and headers...

My emerge --info:

Portage 2.1.2_rc4-r4 (default-linux/x86/2006.1/desktop, gcc-4.1.1,
glibc-2.5-r0, 2.6.18-gentoo-r1 i686)
=================================================================
System uname: 2.6.18-gentoo-r1 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.12.8
Last Sync: Tue, 02 Jan 2007 16:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-Os -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.inode.at"
LANG="it_IT.UTF8"
LDFLAGS="-Wl,-O1,--sort-common,--no-keep-memory -s"
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acpi apache2 bash-completion berkdb bzip2 clamav clamd cli courier
cracklib crypt cups dio fam foomaticdb ftp gd gdbm gif gimpprint gpm gs iconv
jpeg ldap mmx mmxext mysql ncurses nls nptl nptlonly pam pcre pdf php png ppds
readline reflection reiserfs rtc samba session spl ssl tcpd truetype udev
unicode usb userlocales utf8 vhosts x86 xml zip 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 mulaw multi
null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard
mouse evdev" KERNEL="linux" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="apm ark
ati chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mga neomagic nsc
nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng
v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL,
PORTAGE_RSYNC_EXTRA_OPTS

Thanks in advance,
Emanuele Tamponi
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-03 10:37:56 UTC
*** Bug 159878 has been marked as a duplicate of this bug. ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-01-03 10:39:09 UTC
*** Bug 159879 has been marked as a duplicate of this bug. ***
Comment 3 Kristopher Baker 2007-01-03 19:18:44 UTC
same issue here, though this system hasn't been up for a week yet, seems kinda similar to bug Bug 159896 ... but i'm nowhere near an expert  :-D

awaiting someone to show the guiding light to nirvana

my emerge --sync

Portage 2.1.2_rc4-r5 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r2 i686)
=================================================================
System uname: 2.6.19-gentoo-r2 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.8
Last Sync: Wed, 03 Jan 2007 23:00:03 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aac acpi aim alsa arts bash-completion berkdb bitmap-fonts bittorrent bootsplash bzip2 cairo cardbus cddb cdparanoia cdr cdrom cli cracklib crypt cups dbus dhcp dlloader dri dvd dvdread encode esd fam fbcon firefox flac fortran ftp gdbm gif gpm gstreamer gtk gtk2 gtkhtml hal iconv icq imap isdnlog java jpeg kde kerberos krb4 ldap libg++ libwww mime mmx mp3 mpeg msn ncurses nls nptl nptlonly nsplugin offensive ogg opengl oscar pam pcmcia pcre perl png pnp ppds pppd python qt3 qt4 quicktime readline reflection samba sdl session sockets spell spl sse sse2 ssl svga tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis win32codecs x86 xine xml xorg xv xvid yahoo 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="r128"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 4 Kristopher Baker 2007-01-03 19:42:50 UTC
forgot to add that i did try to emerge ppp-2.4.3-r16 and had the same result
Comment 5 Arun Raghavan (RETIRED) gentoo-dev 2007-01-04 04:45:38 UTC
(In reply to comment #3)
> same issue here, though this system hasn't been up for a week yet, seems kinda
> similar to bug Bug 159896 ... but i'm nowhere near an expert  :-D

Appears to be so. Using -D_GNU_SOURCE to build if.c, as suggested by Spanky in that bug, pushes the compile through.
Comment 6 Arun Raghavan (RETIRED) gentoo-dev 2007-01-04 05:06:53 UTC
Created attachment 105368 [details, diff]
Define _GNU_SOURCE in if.c

Don't know if this is the Right Way to do it.
Comment 7 Emanuele Tamponi 2007-01-04 05:44:03 UTC
The patch in comment #6 works for me :)
Comment 8 Kristopher Baker 2007-01-04 10:43:01 UTC
adding #define _GNU_SOURCE 1 to if.c appears to have fixed the ebuild vomit issue for me, though kinda silly that it was something that i don't need/want that was breaking (no need for pppoe - not even build in the kernel or was a module), though i may have to wait till i'm home to use it
Comment 9 Alexandre Ghisoli 2007-01-04 13:12:02 UTC
(In reply to comment #6)
> Created an attachment (id=105368) [edit]
> Define _GNU_SOURCE in if.c
> 
> Don't know if this is the Right Way to do it.
> 

Works for me too, thanks !
Comment 10 Alin Năstac (RETIRED) gentoo-dev 2007-01-05 12:31:49 UTC
Fixed in 2.4.4-r4 by adding -D_GNU_SOURCE to CFLAGS.
Thanks!