Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 427684 - net-dialup/ppp-2.4.4-r25: build fails with linux-headers-3.5
Summary: net-dialup/ppp-2.4.4-r25: build fails with linux-headers-3.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
: 427792 430048 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-23 02:01 UTC by SpanKY
Modified: 2012-08-07 15:05 UTC (History)
7 users (show)

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


Attachments
build.log with applied patch net-dialup/ppp-2.4.5-r2 (build.log,8.07 KB, text/plain)
2012-08-03 11:23 UTC, Xavier Miller (RETIRED)
Details
fix patch (ppp-header-fix.patch,733 bytes, patch)
2012-08-07 07:59 UTC, Yixun Lan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2012-07-23 02:01:31 UTC
looks like the local headers cause a problem.  be nice to just `rm -rf` those.

In file included from plugin.c:53:0:
/usr/include/linux/if_pppox.h:84:26: error: field ‘pppol2tp’ has incomplete type
/usr/include/linux/if_pppox.h:99:28: error: field ‘pppol2tp’ has incomplete type
Comment 1 jannis 2012-07-29 09:07:32 UTC
Duplicate with PATCH is at #427792
Comment 2 SpanKY gentoo-dev 2012-07-29 15:45:04 UTC
*** Bug 427792 has been marked as a duplicate of this bug. ***
Comment 3 Xavier Miller (RETIRED) gentoo-dev 2012-08-03 09:46:22 UTC
Hello,

The patch from the duplicate bug did'nt work for me (gcc-4.7 and glibc-2.16).
Comment 4 Xavier Miller (RETIRED) gentoo-dev 2012-08-03 11:23:48 UTC
Created attachment 320144 [details]
build.log with applied patch net-dialup/ppp-2.4.5-r2
Comment 5 Xavier Miller (RETIRED) gentoo-dev 2012-08-03 11:24:11 UTC
emerge --info '=net-dialup/ppp-2.4.5-r2'
Portage 2.2.0_alpha120 (default/linux/x86/10.0, gcc-4.7.1, glibc-2.15-r2, 3.5.0-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.5.0-gentoo-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.1
Timestamp of tree: Fri, 03 Aug 2012 09:00:01 +0000
distcc 3.1 i686-gentoo-linux-gnu [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.2
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.7.1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo local pd-overlay proaudio
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="@FREE freedist"
CBUILD="i686-gentoo-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=prescott -mtune=generic"
CHOST="i686-gentoo-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-O2 -pipe -fomit-frame-pointer -march=prescott -mtune=generic"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --buildpkg --quiet-build=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="fr_BE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j7"
PKGDIR="/var/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/overlay /var/lib/layman/pd-overlay /var/lib/layman/pro-audio"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl alsa amr apng branding btrfs bzip2 cairo cli cracklib crypt cups cxx dbus dri dssi encode exif fat ffmpeg fftw flac gif gpm gstreamer gtk gtk3 gudev hwdb iconv id3tag imlib jack jpeg ladspa lame libkms libsamplerate lxde mmx modules mp3 mpeg mudflap ncurses nls nptl ntfs ogg opengl openmp osc pam pcre pdf png pppd qt3support qt4 readline rubberband samba sdl session smpeg sna sqlite sse sse2 ssl ssse3 svg tcpd threads tiff truetype unicode usb vorbis wmf x264 x86 xcb xetex xvid zlib" ALSA_CARDS="hda-intel usb-audio 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 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-af9015" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 6 Xavier Miller (RETIRED) gentoo-dev 2012-08-03 20:30:41 UTC
(In reply to comment #4)
> Created attachment 320144 [details]
> build.log with applied patch net-dialup/ppp-2.4.5-r2

http://www.city-fan.org/tips/PaulHowarth/Blog/2012-05-29
This patch fixed the problem for me for one part, and I had to remove the definition of "struct pppol2tpv3_addr" in include/linux/if_pppol2tp.h in order to be able to compile.

HTH
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-05 23:08:15 UTC
*** Bug 430048 has been marked as a duplicate of this bug. ***
Comment 8 Yixun Lan archtester gentoo-dev 2012-08-07 07:59:00 UTC
Created attachment 320598 [details, diff]
fix patch

(In reply to comment #6)
> (In reply to comment #4)
> > Created attachment 320144 [details]
> > build.log with applied patch net-dialup/ppp-2.4.5-r2
> 
> http://www.city-fan.org/tips/PaulHowarth/Blog/2012-05-29
> This patch fixed the problem for me for one part, and I had to remove the
> definition of "struct pppol2tpv3_addr" in include/linux/if_pppol2tp.h in
> order to be able to compile.
> 
> HTH
I can confirm, exactly the same error here when come to ppp-2.4.5-r2

As spanky already point out in #c1, that it conflict with header file provided by linux-headers-3.5

attached patch remove if_pppol2tp.h from ppp's source should fix the problem.
Comment 9 SpanKY gentoo-dev 2012-08-07 15:05:36 UTC
should be all set now in the tree; thanks for the report!

Commit message: Remove local copies of linux-headers and rely on the system one being up-to-date
http://sources.gentoo.org/net-dialup/ppp/ppp-2.4.5-r2.ebuild?r1=1.3&r2=1.4