Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 460132 - net-misc/r8168-8.035.00 with kernel 3.8 - .../work/r8168-8.035.00/src/r8168_n.c:14545:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_init_board’
Summary: net-misc/r8168-8.035.00 with kernel 3.8 - .../work/r8168-8.035.00/src/r8168_n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Christian Birchinger (RETIRED)
URL:
Whiteboard:
Keywords: NeedPatch, REGRESSION
Depends on:
Blocks:
 
Reported: 2013-03-03 14:02 UTC by Markus Goppelt
Modified: 2013-03-08 09:10 UTC (History)
1 user (show)

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 Markus Goppelt 2013-03-03 14:02:53 UTC
net-misc/r8168-8.035.00 fails to compile against 3.8.x kernels. Here with 3.8.1:

root@Phenom ~ # emerge r8168
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-misc/r8168-8.035.00
 * r8168-8.035.00.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...           [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.8.1-gentoo/build
 * Found sources for kernel version:
 *     3.8.1-gentoo
 * Checking for suitable kernel configuration options...
 [ ok ]
>>> Unpacking source...
>>> Unpacking r8168-8.035.00.tar.bz2 to /var/tmp/portage/net-misc/r8168-8.035.00/work
>>> Source unpacked in /var/tmp/portage/net-misc/r8168-8.035.00/work
>>> Preparing source in /var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00 ...
 * Preparing r8168 module
make -j5 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' KERNELDIR=/usr/src/linux modules 
make -C /usr/src/linux SUBDIRS=/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src modules
make[1]: Entering directory `/usr/src/linux-3.8.1-gentoo'
  CC [M]  /var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.o
  CC [M]  /var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_asf.o
  CC [M]  /var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/rtl_eeprom.o
  CC [M]  /var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/rtltool.o
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:14545:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_init_board’
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:14715:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_init_sequence’
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:14968:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_init_one’
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:15132:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8168_remove_one’
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:17651:12: error: ‘rtl8168_init_one’ undeclared here (not in a function)
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:17652:2: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:17652:25: error: ‘rtl8168_remove_one’ undeclared here (not in a function)
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:17301:12: warning: ‘rtl8168_poll’ defined but not used [-Wunused-function]
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:1368:1: warning: ‘rtl8168_xmii_reset_pending’ defined but not used [-Wunused-function]
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:1383:1: warning: ‘rtl8168_xmii_link_ok’ defined but not used [-Wunused-function]
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:1395:1: warning: ‘rtl8168_xmii_reset_enable’ defined but not used [-Wunused-function]
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:1544:1: warning: ‘rtl8168_link_option’ defined but not used [-Wunused-function]
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:1823:1: warning: ‘rtl8168_set_speed_xmii’ defined but not used [-Wunused-function]
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:2151:13: warning: ‘rtl8168_gset_xmii’ defined but not used [-Wunused-function]
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:2886:13: warning: ‘rtl8168_get_mac_version’ defined but not used [-Wunused-function]
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:3002:1: warning: ‘rtl8168_print_mac_version’ defined but not used [-Wunused-function]
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:3044:1: warning: ‘rtl8168_hw_phy_config’ defined but not used [-Wunused-function]
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:13681:1: warning: ‘rtl8168_release_board’ defined but not used [-Wunused-function]
/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.c:14914:17: warning: ‘rtl8168_try_msi’ defined but not used [-Wunused-function]
cc1: some warnings being treated as errors
make[2]: *** [/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src/r8168_n.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src] Error 2
make[1]: Leaving directory `/usr/src/linux-3.8.1-gentoo'
make: *** [modules] Error 2
 * ERROR: net-misc/r8168-8.035.00 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-misc/r8168-8.035.00'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/r8168-8.035.00'`.
 * The complete build log is located at '/var/tmp/portage/net-misc/r8168-8.035.00/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/r8168-8.035.00/temp/environment'.
 * Working directory: '/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src'
 * S: '/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00'

>>> Failed to emerge net-misc/r8168-8.035.00, Log file:

>>>  '/var/tmp/portage/net-misc/r8168-8.035.00/temp/build.log'

 * Messages for package net-misc/r8168-8.035.00:

 * ERROR: net-misc/r8168-8.035.00 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-misc/r8168-8.035.00'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/r8168-8.035.00'`.
 * The complete build log is located at '/var/tmp/portage/net-misc/r8168-8.035.00/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/r8168-8.035.00/temp/environment'.
 * Working directory: '/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00/src'
 * S: '/var/tmp/portage/net-misc/r8168-8.035.00/work/r8168-8.035.00'






root@Phenom ~ # emerge --info
Portage 2.1.11.53 (default/linux/amd64/13.0/desktop/gnome, gcc-4.6.3, glibc-2.16.0, 3.7.1-gentoo x86_64)
=================================================================
System uname: Linux-3.7.1-gentoo-x86_64-AMD_Phenom-tm-_II_X4_910e_Processor-with-gentoo-2.2
KiB Mem:     8134548 total,   6784564 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of tree: Sun, 03 Mar 2013 12:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/qmail/alias /var/qmail/control"
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 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/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=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv ipv6 java jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt3support qt4 readline sdl session socialweb spell sse sse2 ssl startup-notification svg tcpd theora tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="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="authn_core authz_core socache_shmcb unixd 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" 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fglrx" 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 1 Phill 2013-03-03 18:21:42 UTC
https://aur.archlinux.org/packages/r8168-all/

This URL suggests "Need to change /lib/ in PKGBUILD to /usr/lib/"

I tried updating the "src/Makefile"s to refer to /usr/lib, but don't think I did it correctly, so this ebuild still fails for me (I didn't update the manifest file and it didn't complain).

The system I am testing on is not my own, so I am limited in the further assistance I can be, but will try if anything comes up.

the error log and system make.conf will be attached shortly.
Comment 2 Christian Birchinger (RETIRED) gentoo-dev 2013-03-08 09:10:22 UTC
net-misc/r8168-8.035.00-r1 supports building with linux 3.8.x:


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-misc/r8168-8.035.00-r1 from local
 * r8168-8.035.00.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                         [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.8.2-gentoo/build
 * Found sources for kernel version:
 *     3.8.2-gentoo
 * Checking for suitable kernel configuration options...                                                                                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking r8168-8.035.00.tar.bz2 to /var/tmp/portage/net-misc/r8168-8.035.00-r1/work
>>> Source unpacked in /var/tmp/portage/net-misc/r8168-8.035.00-r1/work
>>> Preparing source in /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00 ...
 * Applying r8168-8.035.00-build-3.8.patch ...                                                                                                                                         [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00 ...
 * Preparing r8168 module
make -j9 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' KERNELDIR=/usr/src/linux modules 
make -C /usr/src/linux SUBDIRS=/var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src modules
make[1]: Entering directory `/usr/src/linux-3.8.2-gentoo'
  CC [M]  /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/r8168_n.o
  CC [M]  /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/r8168_asf.o
  CC [M]  /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/rtl_eeprom.o
  CC [M]  /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/rtltool.o
  LD [M]  /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/r8168.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/r8168.mod.o
  LD [M]  /var/tmp/portage/net-misc/r8168-8.035.00-r1/work/r8168-8.035.00/src/r8168.ko
make[1]: Leaving directory `/usr/src/linux-3.8.2-gentoo'
>>> Source compiled.
>>> Test phase [not enabled]: net-misc/r8168-8.035.00-r1

>>> Install r8168-8.035.00-r1 into /var/tmp/portage/net-misc/r8168-8.035.00-r1/image/ category net-misc
 * Installing r8168 module
>>> Completed installing r8168-8.035.00-r1 into /var/tmp/portage/net-misc/r8168-8.035.00-r1/image/

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line
   lib/modules/3.8.2-gentoo/net/r8168.ko
ecompressdir: bzip2 -9 /usr/share/doc
>>> Done.