Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 458416 - net-wireless/ndiswrapper-1.58_rc1 with sys-kernel/vanilla-sources-3.8.0 - [...]/work/ndiswrapper-1.58rc1/driver/pnp.h:25:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wrap_pnp_remove_pci_device’
Summary: net-wireless/ndiswrapper-1.58_rc1 with sys-kernel/vanilla-sources-3.8.0 - [.....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christoph Mende (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-20 08:33 UTC by Bob Raitz
Modified: 2013-02-24 12:24 UTC (History)
0 users

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 Bob Raitz 2013-02-20 08:33:54 UTC
When compiling ndiswrapper against linux-3.8.0 (vanilla-sources-3.8.0), iw_ndis.o fails compilation. 


BUILD LOG:

>>> Verifying ebuild manifests
>>> Running pre-merge checks for net-wireless/ndiswrapper-1.58_rc1
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.8.0/build
 * Found sources for kernel version:
 *     3.8.0
 * Checking for suitable kernel configuration options...                 [ ok ]

>>> Emerging (1 of 1) net-wireless/ndiswrapper-1.58_rc1
 * ndiswrapper-1.58rc1.tar.gz 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.0/build
 * Found sources for kernel version:
 *     3.8.0
>>> Unpacking source...
>>> Unpacking ndiswrapper-1.58rc1.tar.gz to /var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work
>>> Source unpacked in /var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work
>>> Preparing source in /var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1 ...
 * Applying ndiswrapper-1.56-cflags.patch ...                            [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1 ...
make -j1 CC=i686-pc-linux-gnu-gcc 
i686-pc-linux-gnu-gcc -march=prescott -O2 -pipe -Wall -I../driver -Wl,-O1 -Wl,--as-needed -o loadndisdriver loadndisdriver.c
 * Preparing ndiswrapper module
make -j1 HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= KSRC=/usr/src/linux KVERS=3.8.0 KBUILD=/lib/modules/3.8.0/build WRAP_WQ=1 DISABLE_USB=1 all 
make -C /lib/modules/3.8.0/build M=/var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1/driver
make[1]: Entering directory `/usr/src/linux-3.8'
  LD      /var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1/driver/built-in.o
  MKEXPORT /var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1/driver/crt_exports.h
  MKEXPORT /var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1/driver/hal_exports.h
  MKEXPORT /var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1/driver/ndis_exports.h
  MKEXPORT /var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1/driver/ntoskernel_exports.h
  MKEXPORT /var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1/driver/ntoskernel_io_exports.h
  MKEXPORT /var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1/driver/rtl_exports.h
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1/driver/crt.o
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1/driver/hal.o
  CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1/driver/iw_ndis.o
In file included from /var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1/driver/wrapndis.h:20:0,
                 from /var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1/driver/iw_ndis.c:30:
/var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1/driver/pnp.h:25:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wrap_pnp_remove_pci_device’
make[2]: *** [/var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1/driver/iw_ndis.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1/driver] Error 2
make[1]: Leaving directory `/usr/src/linux-3.8'
make: *** [modules] Error 2
 * ERROR: net-wireless/ndiswrapper-1.58_rc1 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-wireless/ndiswrapper-1.58_rc1'`,
 * the complete build log and the output of `emerge -pqv '=net-wireless/ndiswrapper-1.58_rc1'`.
 * The complete build log is located at '/var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1/driver'
 * S: '/var/tmp/portage/net-wireless/ndiswrapper-1.58_rc1/work/ndiswrapper-1.58rc1'


emerge --info:

Portage 2.1.11.52 (default/linux/x86/13.0, gcc-4.5.3, glibc-2.16.0, 3.6.11 i686)
=================================================================
System uname: Linux-3.6.11-i686-Intel-R-_Celeron-R-_M_CPU_440_@_1.86GHz-with-gentoo-2.2
KiB Mem:     2062020 total,    382548 free
KiB Swap:    2048280 total,   2048280 free
Timestamp of tree: Wed, 20 Feb 2013 05:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 i686-pc-linux-gnu [enabled]
app-shells/bash:          4.2_p42
dev-lang/python:          2.6.8-r1, 2.7.3-r3, 3.1.5-r1, 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.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.3-r2::Local-Portage-Overlay
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 Local-Portage-Overlay
Installed sets: @system
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x Oracle-BCLA-JavaSE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=prescott -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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="/usr/local/portage"
SYNC="rsync://192.168.0.105/gentoo-portage"
USE="X a52 aac acl acpi alsa ao apache2 apng aspell audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cgi cli consolekit cracklib crypt css cups cxx dbus declarative dlloader dri dts dv dvd dvdr dvdread eds encode fam fbcon ffmpeg fftw flac fontconfig fortran gdbm gif gimp gles2 glib gnutls gpm gsl gtk gudev handboook hwdb iconv icu jpeg kde kdenlive ladspa lame libkms libsamplerate lm_sensors mad mikmod mmx mng modules mp3 mp4 mpeg mudflap mysql nas ncurses nls nptl nptlonly objc ogg opengl openmp oss pam pcre pdf perl php png pyqt4 python qt3support qt4 quicktime readline reflection samba script sdl semantic-desktop session slang slp sndfile spell spl sql sqlite sse sse2 ssl startup-notification svg swat tcpd theora thunar tiff truetype udev unicode usb v4l v4l2 vaapi vhosts vidix vorbis webkit wifi win32codecs wxwindows x264 x86 xcb xine xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_6 python2_7 python3_1" RUBY_TARGETS="ruby18 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Christoph Mende (RETIRED) gentoo-dev 2013-02-23 19:09:12 UTC
Please try 1.58 final
Comment 2 Bob Raitz 2013-02-23 21:52:23 UTC
That did the trick. I'm running with 3.8.0 and ndiswrapper presently.
Comment 3 Christoph Mende (RETIRED) gentoo-dev 2013-02-24 12:24:25 UTC
Thanks