Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ndiswrapper compile failure [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
UnderDog138
n00b
n00b


Joined: 03 Dec 2002
Posts: 67
Location: Dallas, TX, USA

PostPosted: Fri Apr 22, 2005 4:16 am    Post subject: ndiswrapper compile failure [solved] Reply with quote

Long time, no see.

I've done the mandatory forum/google search with no luck. Does this have anything to do with the fact that I'm running hardened (grsec + pax + ssp)? Other than that, I'm stumped. I'm trying to install the driver for my 2wire Homeportal DSL router. This box has problems with having two NIC cards in it at the same time, so I'm running the WAN interface out the USB port directly into the modem. I know it can be done this way. Any suggestions are welcome.

Thanks in advance.

Code:
ross root # emerge ndiswrapper
Calculating dependencies ...done!
>>> emerge (1 of 1) net-wireless/ndiswrapper-0.12-r3 to /
>>> md5 files   ;-) ndiswrapper-1.0.ebuild
>>> md5 files   ;-) ndiswrapper-1.0_rc2.ebuild
>>> md5 files   ;-) ndiswrapper-0.12-r3.ebuild
>>> md5 files   ;-) ndiswrapper-1.0_rc4.ebuild
>>> md5 files   ;-) ChangeLog
>>> md5 files   ;-) ndiswrapper-1.1.ebuild
>>> md5 files   ;-) metadata.xml
>>> md5 files   ;-) files/digest-ndiswrapper-1.0
>>> md5 files   ;-) files/digest-ndiswrapper-1.1
>>> md5 files   ;-) files/digest-ndiswrapper-0.12-r3
>>> md5 files   ;-) files/ndiswrapper-0.9-modules.d
>>> md5 files   ;-) files/digest-ndiswrapper-1.0_rc2
>>> md5 files   ;-) files/digest-ndiswrapper-1.0_rc4
>>> md5 src_uri ;-) ndiswrapper-0.12.tar.gz
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.4.28-hardened-r5
 * Checking for suitable kernel configuration options
>>> Unpacking source...
>>> Unpacking ndiswrapper-0.12.tar.gz to /var/tmp/portage/ndiswrapper-0.12-r3/work
>>> Source unpacked.
make -C driver
make[1]: Entering directory `/var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
cc -O2 -march=athlon -pipe -fomit-frame-pointer -fforce-addr -fstack-protector -DEXPORT_SYMTAB -DMODVERSIONS -include //usr/src/linux/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"0.12\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I//usr/src/linux/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -O2   -c -o wrapper.o wrapper.c
wrapper.c: In function `hangcheck_del':
wrapper.c:421: warning: asm operand 1 probably doesn't match constraints
wrapper.c:421: error: impossible constraint in `asm'
//usr/src/linux/include/linux/netdevice.h: In function `netif_rx_complete':
//usr/src/linux/include/linux/netdevice.h:817: warning: asm operand 1 probably doesn't match constraints
//usr/src/linux/include/linux/netdevice.h: In function `__netif_rx_complete':
//usr/src/linux/include/linux/netdevice.h:843: warning: asm operand 1 probably doesn't match constraints
//usr/src/linux/include/linux/netdevice.h: In function `netif_tx_disable':
//usr/src/linux/include/linux/netdevice.h:853: warning: asm operand 1 probably doesn't match constraints
make[1]: *** [wrapper.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver'
make: *** [all] Error 2

!!! ERROR: net-wireless/ndiswrapper-0.12-r3 failed.
!!! Function src_compile, Line 55, Exitcode 2
!!! Compile Failed!
!!! If you need support, post the topmost build error, NOT this status message.

ross root #

_________________
Adopt an unanswered post today!


Last edited by UnderDog138 on Thu Apr 28, 2005 7:44 am; edited 1 time in total
Back to top
View user's profile Send private message
noup
l33t
l33t


Joined: 21 Mar 2003
Posts: 917

PostPosted: Sat Apr 23, 2005 11:09 am    Post subject: Reply with quote

first, try compiling with safer CFLAGS (just put the basic ones). next, try different versions for ndiswrapper. tell how it went. :)
_________________
noup.
Back to top
View user's profile Send private message
UnderDog138
n00b
n00b


Joined: 03 Dec 2002
Posts: 67
Location: Dallas, TX, USA

PostPosted: Thu Apr 28, 2005 7:44 am    Post subject: Reply with quote

I compiled ndiswrapper without -fforce-addr and it compiled and installed fine. -fforce-addr is part of the default hardened CFLAGS and apparently that was the problem. Taking it out fixed it.
_________________
Adopt an unanswered post today!
Back to top
View user's profile Send private message
catzooka
Apprentice
Apprentice


Joined: 05 Nov 2002
Posts: 193

PostPosted: Sat Jun 11, 2005 11:25 pm    Post subject: Reply with quote

How exactly did you do that? I tried adding -fnoforce-addr, but looking at the GCC documentation, that isn't a valid CFLAG. I also edited out the -fforce-addr out of the make.defaults in /usr/portage/profiles/hardened/x86, but that made no difference. Would I have to recompile all of gcc without -fforce-addr before I can properly compile ndiswrapper?
Back to top
View user's profile Send private message
noup
l33t
l33t


Joined: 21 Mar 2003
Posts: 917

PostPosted: Sat Jun 11, 2005 11:57 pm    Post subject: Reply with quote

Deftochino wrote:
How exactly did you do that? I tried adding -fnoforce-addr, but looking at the GCC documentation, that isn't a valid CFLAG. I also edited out the -fforce-addr out of the make.defaults in /usr/portage/profiles/hardened/x86, but that made no difference. Would I have to recompile all of gcc without -fforce-addr before I can properly compile ndiswrapper?

post your "#emerge info".
_________________
noup.
Back to top
View user's profile Send private message
catzooka
Apprentice
Apprentice


Joined: 05 Nov 2002
Posts: 193

PostPosted: Sun Jun 12, 2005 12:13 am    Post subject: Reply with quote

Code:
meriloon ~ # emerge --info
Portage 2.0.51.19 (hardened/x86/2.6, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11.10-meriloon i686)
=================================================================
System uname: 2.6.11.10-meriloon i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun  6 2005, 18:43:46)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.7.9-r1, 1.5, 1.6.3, 1.4_p6, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -ftracer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -ftracer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa avi berkdb bitmap-fonts bmp cdr crypt cups dbus dga dlloader dvd dvdr encode esd fam fbcon flac font-server foomaticdb gdbm gif gnome gnutls gpm gstreamer gtk2 gtkhtml hal hardened imagemagick imlib java jpeg libg++ libwww lirc mad mikmod mmx mp3 mpeg ncurses nfs nls ogg oggvorbis opengl pam pcmcia pdflib perl pic png ppds python quicktime readline samba scanner sdl spell sse ssl svg svga tcpd theora truetype truetype-fonts type1-fonts unicode usb vorbis wifi win32codecs xinerama xml2 xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS


Voila!
Back to top
View user's profile Send private message
noup
l33t
l33t


Joined: 21 Mar 2003
Posts: 917

PostPosted: Sun Jun 12, 2005 1:39 am    Post subject: Reply with quote

ok, try commenting the CFLAGS line and put
Code:

CFLAGS=""

instead, see if it compiles that way.
_________________
noup.
Back to top
View user's profile Send private message
catzooka
Apprentice
Apprentice


Joined: 05 Nov 2002
Posts: 193

PostPosted: Sun Jun 12, 2005 2:06 am    Post subject: Reply with quote

Nope. That didn't make a difference. I'm still getting the same error that the guy above got.
Back to top
View user's profile Send private message
noup
l33t
l33t


Joined: 21 Mar 2003
Posts: 917

PostPosted: Sun Jun 12, 2005 9:52 am    Post subject: Reply with quote

can you still post the output of the errors you get? just to see the flags the compiler is using (assuming the error messages are exactly the same as above).
_________________
noup.
Back to top
View user's profile Send private message
catzooka
Apprentice
Apprentice


Joined: 05 Nov 2002
Posts: 193

PostPosted: Sun Jun 12, 2005 11:13 am    Post subject: Reply with quote

I accidentally fixed it :P I was going to copy & paste you the error output, but before doing so I disabled distcc, so that you wouldn't have to read through those "cannot connect" errors coming from distcc because one of my other boxes is down. and well, disabling distcc caused ndiswrapper to successfully compile. or it might just be the fact that it was erroring out on compiles it was distccing to other hosts that also use hardened gcc with -fforce-addr. well. in any case, my compile problem is fixed. thanks a bunch, because without your suggestion of posting the error output I would have never thought of disabling distcc. haha. thanks.
Back to top
View user's profile Send private message
noup
l33t
l33t


Joined: 21 Mar 2003
Posts: 917

PostPosted: Sun Jun 12, 2005 1:33 pm    Post subject: Reply with quote

lol now that was lucky. :D i'm glad it's solved then.
_________________
noup.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum