View Full Version : Ndiswrapper make problems
Qwerty
01-11-2006, 04:58 AM
Are any of you familiar with Ndiswrapper? I get these errors etc when I try to "make" in the ndiswrapper-1.7 directory. Is there something wrong with how I set up my kernel source? I'm new to linux, so it's possible I didn't extract the kernel properly or something.
[Qwerty@localhost ndiswrapper-1.7]# make
make -C driver
make[1]: Entering directory `/home/Qwerty/ndiswrapper-1.7/driver'
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/home/Qwerty/ndiswrapper-1.7/driver \
DRIVER_VERSION=1.7
make[2]: Entering directory `/usr/src/linux-2.6.11'
WARNING: Symbol version dump /usr/src/linux-2.6.11/Module.symvers
is missing; modules will have no dependencies and modversions.
LD /home/Qwerty/ndiswrapper-1.7/driver/built-in.o
CC [M] /home/Qwerty/ndiswrapper-1.7/driver/hal.o
In file included from include/linux/module.h:9,
from /home/Qwerty/ndiswrapper-1.7/driver/hal.c:17:
include/linux/config.h:4:28: error: linux/autoconf.h: No such file or directory
In file included from include/asm/thread_info.h:17,
from include/linux/thread_info.h:21,
from include/linux/spinlock.h:12,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/Qwerty/ndiswrapper-1.7/driver/hal.c:17:
include/asm/processor.h:69: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function)
include/asm/processor.h:69: error: requested alignment is not a constant
In file included from include/linux/module.h:23,
from /home/Qwerty/ndiswrapper-1.7/driver/hal.c:17:
include/asm/module.h:63:2: error: #error unknown processor family
In file included from include/asm/hardirq.h:6,
from include/linux/hardirq.h:6,
from include/linux/interrupt.h:11,
from include/linux/netdevice.h:514,
from /home/Qwerty/ndiswrapper-1.7/driver/hal.c:18:
include/linux/irq.h:70: error: requested alignment is not a constant
In file included from include/linux/hardirq.h:6,
from include/linux/interrupt.h:11,
from include/linux/netdevice.h:514,
from /home/Qwerty/ndiswrapper-1.7/driver/hal.c:18:
include/asm/hardirq.h:13: error: requested alignment is not a constant
make[3]: *** [/home/Qwerty/ndiswrapper-1.7/driver/hal.o] Error 1
make[2]: *** [_module_/home/Qwerty/ndiswrapper-1.7/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.11'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/Qwerty/ndiswrapper-1.7/driver'
make: *** [all] Error 2
[Qwerty@localhost ndiswrapper-1.7]#
Help will be much appreciated, I need it! :D
natas
01-11-2006, 05:12 AM
It looks like your missing kernel source files to me, but its hard to say without looking at the system. The errors it reporting are basically saying it can't find header files from the kernel source.
Most of the time, its looking for source for your current kernel in /usr/src/linux
Hope that helps.
Qwerty
01-11-2006, 06:20 AM
I have the /usr/src/linux link setup to link to /usr/src/linux-2.6.11, so that should work ok.
Can you help me figure out what I screwed up while installing my kernel source files? Here's what I did:
# rpm -Uvh kernel-<version>.src.rpm
rpmbuild -bp --target noarch /usr/src/redhat/SPECS/kernel-2.6.spec
ln -s /usr/src/linux-<kernel-version> /lib/modules/VERSION/build
I then moved the source files into /usr/src/linux-2.6.11, navigated to said directory, and typed make. Before if I tried to "make" Ndiswrapper, it would tell me it couldn't find the source, but after I ran "make" on the linux source, it at least started to install (but gave me these errors).
Any ideas on what went wrong with my kernel source?
natas
01-11-2006, 02:51 PM
Just curious, what distro are you using, and what version of ndiswrapper did you download, and what card are you trying to get working?
The reason I ask this is most distro's have binaries of ndiswrapper
Qwerty
01-11-2006, 03:51 PM
Fedora Core 4, Ndiswrapper 1.7, and a Linksys WUSB54G. I noticed that a lot of websites showed other distros having ndiswrapper installed already. If we can't figure this out, I'll probably just switch to what you recommend :)
natas
01-11-2006, 04:57 PM
binary package for fedora core 4 here: http://atrpms.net/dist/fc4/ndiswrapper/
CuCullin
01-11-2006, 05:34 PM
And preinstalled for SUSE. If you are willing to switch, give the VMWare Player a try, theres an OpenSUSE 10 image out there to test out ;)
Qwerty
01-11-2006, 11:26 PM
I tried the link to the binaries and I'm having trouble with that as well, lol. I'm going to try to install SuSe so that I can at least use the internet in linux to learn more about installing rpms etc. since I obviously suck at it.
Is "SUSE Linux OSS 10.0" the correct thing to download? I heard the evaluation of the none OSS version isn't actually an evaluation, but just a free copy. Is that true, and if so should I just get that one?
Also, why should I try VMWare player? I don't understand how a virtual machine will help me.
CuCullin
01-11-2006, 11:38 PM
The OSS version is fine, you can also grab the evaluation version if you'd like.. be sure to check the OpenSUSE Wiki (http://www.opensuse.org/) to add some package repositories and grab the media handling (mp3's and such) apps and libraries you'll probably want.
If you have a net connection, you can save time by just downloading the first CD and doing a network install.
VMWare player would be an option for you if you wanted to try out a distribution without actually installing it. This way, you can preview a few distros that have a vmware image created, like SUSE does.
YaST is a powerful tool, you'll appreciate how it works with rpm's. Do yourself a favor though and don't use the supplementary repositories (they are in a folder like /supplementary/GNOME, /supplementary/KDE, and /supplementary/misc) that are listed on the wiki. Those repos have the latest and greatest, and will tend to have a few issues the average user need not deal with.
I think you'll enjoy it :)
Qwerty
01-11-2006, 11:48 PM
Cool, thanks for that info. Now, do you have any favorite places to download the SUSE eval DVD? All the places I've tried (so far the first 6 pages on google after searching for "SUSE-10.0-EvalDVD-i386-GM.iso") don't even get over 100KB/s.
Also, should I get the x86_64 version if I have an Athlon64 processor, or will I have the same problems as running 32-bit stuff on 64-bit Windows XP?
CuCullin
01-12-2006, 12:12 AM
I dont have a 64 bit system, so I've only used the 32 bit version. The guys at suseforums.net have alot of 64 bit systems around, and it seems to work nicely. However, there are supposed to be a very large number of updates coming with 10.1, so you may want to look at that.
I've had great luck with the torrents, so thats an option for you, getting speeds of 400-500kbps pretty consistently.
Qwerty
01-12-2006, 01:02 AM
Do you mean you've gotten 400-500 KBps just now, or in the past? I'm only getting ~15 down, ~30 up. Are you talking about the torrents linked on their website?
CuCullin
01-12-2006, 01:18 AM
Those are them... have, not right now, dont have mine up and running. This is my laptop, so no isos running.... sorry its not goin faster for ya :( maybe CD1 and a network install off the mirrors would be the way to go for you?
Qwerty
01-12-2006, 01:24 AM
But you see, I have no network without wireless support :)
It's ok, I thought for a while and am downloading the CDs at ~400 KBps, one ISO per 80KBps server, hehe.
I'll report back whether or not I get my wireless working, thank you both for helping me out so much :)
natas
01-12-2006, 01:56 AM
only install the 64bit binaries if your running the 64bit version of fedora
Qwerty
01-12-2006, 11:04 PM
Well, I downloaded "SUSE-10.0-EvalDVD-i386-GM.iso," checked MD5 sum, burned it, and tried to install. I of course, got an error.
"no source found at 'cd:///;devices=/dev/hdc'."
It seems to be having problems finding the shit it needs to install, I'm assuming all of the extra packages like Firefox and OpenOffice etc.
I searched google and found many threads about it, but no one seemed to give a straight solution. One person said his friend changed his DVD drive from slave to master and that fixed it. My DVD is definitely master, so I don't know anything else to try. Someone also suggested changing the source of the install from CD to DVD when it asks you (at the screen where it says "install" "install safe mode" etc), but that didn't help me because I didn't find a place to select install from DVD.
Have any ideas?
CuCullin
01-12-2006, 11:50 PM
MD5 isn't the greatest, believe it or not... SHA1 is a better summer to use.
Anyways, I would bet more than anything theres a problem on the DVD, I suggest burning another.
Qwerty
01-13-2006, 01:14 AM
Well, I burned two more copies, one at 1x and the next one at 2x, the 1x one gave errors, and the 2x one performed just as my original 8x one had. I've come to the conclusion, based on my findings while reburning the image, that SUSE just sucks ass and for some reason doesn't fucking support my god damned Memorex DVD burner.
Any new suggestions, or should I just give up on Linux?
I just need a distro that has ndiswrapper :(
CuCullin
01-13-2006, 04:11 AM
Just do me a flavor and grab just the first SUSE 10 OSS CD, try booting it. I have a memorex CD burner myself, so I don't think there should be any issues. Still think its a bad burn somehow, but don't frustrate yourself.
Also, I have a feeling your wifi will work after booting the single CD... SUSE is known as probably the best distro for wireless support and for power acpi.
Worse comes to worse, I'd mail you CD's and DVD's I've tested lol
Qwerty
01-13-2006, 05:14 AM
I'm sure that the first CD will boot, but I just might not be able to see the packages on the disk or something. The DVDs I burned booted perfectly, but when it got to where it shows your configuration before installing, it showed an error where the package info etc. should be and told me it couldn't find any.
I'll boot onto the first disk for you, but I don't really know what I'm looking for, hehe. Thanks for all your help so far :)
edit: I booted up CD1 and it listed the packages correctly, so lets just hope they'll actually work. I'll download the other four disks tonight and report tomorrow after I try to install the full thing. Thanks
Qwerty
01-13-2006, 10:31 PM
Ok, I'm about to install SUSE, but I have one last question.
Fedora had a much nicer way of basically saying "we're not going to touch your windows drive." SUSE gave me this, which I'm pretty sure won't mess with my windows drive (sda), but I still want to make sure:
Delete logical volume /dev/VolGroup00/LogVol00
Delete logical volume /dev/VolGroup00/LogVol01
Remove volume group VolGroup00
Delete partition hdc1
Delete partition hdc2
Create swap partition /dev/hdc1
Create root partition /dev/hdc2 with reiserfs
Set mount point of /dev/sda1 to /windows/C
I'm assuming "Set mount point of /dev/sda1/ to /windows/C" just means it's mounting it so I can view the contents (which are NTFS so it wouldn't work), but I want to make sure it won't be messing with it at all.
I have a hard drive which has windows on it, and a hard drive which will have SUSE on it. I want to be able to use "dd if=/dev/hda1 of=/bootsect.lnx bs=512 count=1" to capture the boot stuff so I can add "c:\bootsect.lnx="SUSE 10.0" to my boot.ini on my windows drive. If I'm doing anything to prevent that, please let me know :)
So, are these settings ok? Should I delete "Set mount point of /dev/sda1/ to /windows/C?"
CuCullin
01-14-2006, 03:40 PM
Yup, thats mountin it. the VolGroup being deleted is the fedora install, which by default uses logical volume management, which is the only deletion being done; you can leave the mount point.
Qwerty
01-14-2006, 05:30 PM
Sweet, I had an internet connection even before I booted into linux :) it was able to check for updates and stuff during the install, awesome. Thanks for all that help :)
Now, I selected KDE to see how it was compared to GNOME, and I hate it. Is there an easy way to switch it to GNOME?
CuCullin
01-15-2006, 12:37 AM
I'm actually kind of surprised....
But yes. You can, I haven't done this myself, but if you install all of gnome, you can leave kdm instead of gdm (login env.), and just log into gnome instead. If you select it at your sessio login, the selection will be remembered.
And btw, told ya it worked great for wireless ;)
Qwerty
01-15-2006, 05:34 PM
I've been hearing now that KDE is better, and I think I'll see if I can get used to it I guess. Is there a way to get it so that when I throw my cursor to the top right and click it'll know I'm trying to hit the X? Also, can I get it so that the window borders go away when I maximize a window?
:) I miss windows stuff.. hehe
CuCullin
01-15-2006, 11:42 PM
right click on the titlebar, configure window behavior :)
Qwerty
01-16-2006, 09:39 PM
Sweet, I got that taken care of, thanks :)
Also, in ksysguard, it shows I have 80 processes and only 534 out of 1000 megs of memory free. Is this normal, or are there processes I should disable from starting up?
CuCullin
01-17-2006, 12:16 AM
Its normal for a base install, but if you'd like you can check what you've got running and see if its a process you really want starting at boot.
The apps I recommend you check out are:
amaroK
kontact
GIMP or Krita
Kaffiene
KOffice or OpenOffice (I like KOffice myself, the new release will be sweet)
superkaramba
Be sure to check out opensuse.org, and go to additional package repositories (or something like that). You'll want to replace your multimedia applications with those on packman, since like so many distros, laws prevent sending fully enabled multimedia apps. Once you've updated to the packman versions, you'll be able to throw any file you want at it :D
Qwerty
01-17-2006, 08:20 AM
Sweet, do you have any experience with this? http://www.xfce.org/index.php?lang=en
Is it a replacement for KDE and Gnome? Do you recommend it for a newbie?
CuCullin
01-17-2006, 01:30 PM
Its a lightweight alternative, yes.
I enjoy using it for laptops and tablets, though it still has more dev to go. You can also check out fluxbox (currently on my tablet) and enlightenment, both are very nice alternatives as well.
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.