Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525666 - net-misc/networkmanager-0.9.10.0-r1 with kernel <3.7 - platform/nm-linux-platform.c:2965:48: error: invalid application of ‘sizeof’ to incomplete type ‘struct ifla_vxlan_port_range’
Summary: net-misc/networkmanager-0.9.10.0-r1 with kernel <3.7 - platform/nm-linux-plat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-17 16:56 UTC by Ilya Gordeev
Modified: 2014-11-01 15:51 UTC (History)
0 users

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


Attachments
build.log (build.log,407.40 KB, text/plain)
2014-10-18 16:04 UTC, Ilya Gordeev
Details
networkmanager-0.9.10.0-ifla_vxlan_port_range.patch (networkmanager-0.9.10.0-ifla_vxlan_port_range.patch,1.34 KB, patch)
2014-10-20 04:49 UTC, Ilya Gordeev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Gordeev 2014-10-17 16:56:12 UTC
Building net-misc/networkmanager-0.9.10.0-r1 failed with message:
=======
platform/nm-linux-platform.c:2965:48: error: invalid application of ‘sizeof’ to incomplete type ‘struct ifla_vxlan_port_range’
                              .minlen  = sizeof (struct ifla_vxlan_port_range) },
                                                ^
platform/nm-linux-platform.c: In function ‘vxlan_info_data_parser’:
platform/nm-linux-platform.c:3006:29: error: dereferencing pointer to incomplete type
  props->src_port_min = range->low;
                             ^
platform/nm-linux-platform.c:3007:29: error: dereferencing pointer to incomplete type
  props->src_port_max = range->high;
                             ^
Makefile:1339: recipe for target 'nm-linux-platform.lo' failed
=======

It because struct ifla_vxlan_port_range has appeared only in kernel 3.7 but 
I have sys-kernel/gentoo-sources-3.4.* installed.

Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2014-10-18 08:12:17 UTC
Please provide full build.log and report to upstream at bugzilla.gnome.org (I know they fixed compatibility for older than 3.11... no idea if they plan to do the same for <3.7 :/)
Comment 2 Ilya Gordeev 2014-10-18 16:04:34 UTC
Created attachment 386894 [details]
build.log
Comment 3 Pacho Ramos gentoo-dev 2014-10-18 17:43:42 UTC
please post "emerge --info linux-headers" output too
Comment 4 Ilya Gordeev 2014-10-18 19:37:04 UTC
Portage 2.2.14_rc1 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.4.98-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.4.98-gentoo-x86_64-Celeron-R-_Dual-Core_CPU_T3000_@_1.80GHz-with-gentoo-2.2
KiB Mem:     4014412 total,    184376 free
KiB Swap:    2097148 total,   2093688 free
Timestamp of tree: Sat, 18 Oct 2014 15:15:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r1
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.2
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.1
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo my_local_overlay seden nektoo perl-experimental mozilla
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mmmx -msse -msse2 -mssse3 -mcx16 -mfpmath=sse,387 -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mmmx -msse -msse2 -mssse3 -mcx16 -mfpmath=sse,387 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://mirror2.corbina.ru/gentoo-distfiles/ http://gentoo.bloodhost.ru/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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 /var/lib/layman/seden /var/lib/layman/nektoo /var/lib/layman/perl-experimental /var/lib/layman/mozilla"
SYNC="rsync://rsync.ru.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi adns alsa amd64 avahi bash-completion berkdb bluray branding bzip2 cairo caps cdda cdr cli consolekit cracklib crypt cups curl cxx dbus dga djvu dri dts dv dvd dvdr egl emboss encode exif fam fbcon ffmpeg fftw firefox flac fontconfig gcrypt gdbm gif gimp git glamor gles2 gmp gnome-keyring gnutls gphoto2 gpm graphite graphviz gstreamer gtk gtk3 gzip hardened iconv icu idn ipv6 jabber jack jit jpeg jpeg2k lame lcms libcaca libnotify llvm lm_sensors lzma lzo mad madwifi matroska midi mmx mng modules mp3 mp4 mpeg mplayer multilib musepack nas ncurses netlink nls nptl nss ogg openal opencl opengl openmp openssl orc oscar pam pango pch pcre pdf pkcs11 png policykit portaudio postscript ppds raw readline samba scanner sdl session smp sndfile sockets socks5 sound speex spell sqlite sse sse2 ssl ssse3 startup-notification svg syslog taglib tcpd theora threads tiff timidity truetype twolame udev udisks unicode upnp upower usb v4l vhosts vorbis vpx wavpack webp wget wifi x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zeroconf zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cache_disk cgi cgid charset_lite dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers imagemap include info log_config logio mem_cache mime mime_magic negotiation reqtimeout rewrite setenvif slotmem_shm socache_shmcb status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" XFCE_PLUGINS="battery brightness clock power" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

sys-kernel/linux-headers-3.4-r2 was built with the following:
USE="" ABI_X86="64"
Comment 5 Ilya Gordeev 2014-10-18 20:57:09 UTC
(In reply to Pacho Ramos from comment #1)
> Please [...] and report to upstream at bugzilla.gnome.org
> (I know they fixed compatibility for older than 3.11... no idea if they plan
> to do the same for <3.7 :/)

Done: https://bugzilla.gnome.org/show_bug.cgi?id=738791
Comment 6 Pacho Ramos gentoo-dev 2014-10-19 11:58:57 UTC
OK, bumping linux-headers package would be enough (even running older kernel) for now
Comment 7 Ilya Gordeev 2014-10-20 04:49:49 UTC
Created attachment 387008 [details, diff]
networkmanager-0.9.10.0-ifla_vxlan_port_range.patch

Or I can just apply upstream change by this patch
Comment 8 Pacho Ramos gentoo-dev 2014-10-20 09:58:50 UTC
Yeah :)

I will wait a week or so to see if upstream bumps to a .1 version including this and many other fixes... not sure if this is so urgent, in any case, feel free to comment again here if a week passed and I didn't commit this or the new fixed version

Thanks
Comment 9 Pacho Ramos gentoo-dev 2014-11-01 15:51:58 UTC
+*networkmanager-0.9.10.1_pre20141101 (01 Nov 2014)
+
+  01 Nov 2014; Pacho Ramos <pacho@gentoo.org>
+  +networkmanager-0.9.10.1_pre20141101.ebuild:
+  Add new snapshot including a ton of bugfixes, also this won't fail to start if
+  ifnet plugin is not found and, then, migration will be less painful.
+