LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2007, 08:11 PM   #1
CrinkElite
Member
 
Registered: Nov 2007
Posts: 35

Rep: Reputation: 16
ndiswrapper not installed and not on ubuntu 7.10 cd


i am trying to get my belkin broadcom wireless card to work with little success i have obtained the .inf file from the windows driver installer but i cannot seem to install ndiswrapper,

when i try to install it from the packege manager it first tries to access the net and then prompts me to insert the ubuntu cd but when i do so i am presented with the same message i have tried two different coppies of Ubuntu 7.10 but both behave the same,

i dont think its both disks eve though one disk is a bit dodgy, and i dont think its the cd drive as i can view all the files, with thumbnails on my rainbow six dvd,

Is there any way i can obtain the files necessary to install ndiswrapper without getting them automatically from the net or from the ubuntu cd,
sorry if this is senseless gibberish but i really don't have much of a clue what i'm doing.
thanks for reading
 
Old 11-15-2007, 08:29 PM   #2
elfoozo
Member
 
Registered: Feb 2004
Distribution: Debian Jessie
Posts: 256

Rep: Reputation: 32
You can download the package file to a flash drive on another pc and attach that drive to your Ubuntu system. Then issue 'dpkg -i /path/to/mounted/flashdrive/package.deb' to install it.
 
Old 11-15-2007, 11:53 PM   #3
maldojr88
LQ Newbie
 
Registered: Aug 2007
Posts: 18

Rep: Reputation: 0
Quote:
Originally Posted by CrinkElite View Post

Is there any way i can obtain the files necessary to install ndiswrapper without getting them automatically from the net or from the ubuntu cd,
sorry if this is senseless gibberish but i really don't have much of a clue what i'm doing.
thanks for reading
Yes dogs....
instead of doing it thru the package manager ....ill guide you thru how to do it
from the commandline. What we are going to do is download the source code of
ndiswrapper, compile it, and install it.

so go here to download source code. http://sourceforge.net/project/showf...group_id=93482

download the one that says stable...

now your gonna get a file that ends with .tar.gz

basically this file is compressed and archived so we gotta uncompress
and unarchive

$tar xzvf filename.tar.gz

this command will do the job ('$' is not included, its just so u know this goes in the terminal). Replace filename with the name of the file you downloaded.

then you will get a folder called filename. In here there is a file called INSTALL. It will tell you most of the things i will tell you in a more accurate way, so if they vary some stuff... you do what they say because its what they says that goes...

go into the folder that the above command created. Once in it, type

$make uninstall

This will make sure that nothing is installed on the system
then

$make

This will compile the source code. Compiling means that it takes a code written in a programing language (like C++, Java...etc) and create a
binary code instructurions for the computer....DONT GET SCARED

this is basically installing it. It just creates a ".bin" file. Then

$make install

This command takes the ".bin" file and places it the /bin folder and does
some extra clean up.
If everything goes well...the program is ready to be used and you can they
install your driver using ndiswrapper...

read the INSTALL file on how to actually install the drive with ndiswrapper...
good luck...
dont be afraid to ask

Last edited by maldojr88; 11-15-2007 at 11:59 PM.
 
Old 11-16-2007, 12:06 AM   #4
CaptSilver
LQ Newbie
 
Registered: Nov 2007
Distribution: Ubuntu 16.04 amd64
Posts: 21

Rep: Reputation: 1
ubuntu usualy doesn't install header files for the kernel which is needed to compile ndiswrapper. Try to get the debs and use dpkg -i to install as someone mentioned above. The deb files you will need are ndiswrapper and it's module for the kernel. If you need I or someone else can provide you links on where to download it...
 
Old 11-16-2007, 02:22 PM   #5
CrinkElite
Member
 
Registered: Nov 2007
Posts: 35

Original Poster
Rep: Reputation: 16
well i followed your instructions as best i could but the results aren't encouraging. this is the way it happened.

magnum@magnum-desktop:~$ tar xzvf /home/magnum/Desktop/ndiswrapper-1.49.tar.gz
ndiswrapper-1.49/
ndiswrapper-1.49/AUTHORS
ndiswrapper-1.49/ChangeLog
ndiswrapper-1.49/INSTALL
ndiswrapper-1.49/Makefile
ndiswrapper-1.49/README
ndiswrapper-1.49/ndiswrapper.spec
ndiswrapper-1.49/ndiswrapper.8
ndiswrapper-1.49/loadndisdriver.8
ndiswrapper-1.49/utils/
ndiswrapper-1.49/utils/Makefile
ndiswrapper-1.49/utils/ndiswrapper
ndiswrapper-1.49/utils/loadndisdriver.c
ndiswrapper-1.49/utils/ndiswrapper-buginfo
ndiswrapper-1.49/driver/
ndiswrapper-1.49/driver/divdi3.c
ndiswrapper-1.49/driver/hal.c
ndiswrapper-1.49/driver/iw_ndis.c
ndiswrapper-1.49/driver/iw_ndis.h
ndiswrapper-1.49/driver/loader.c
ndiswrapper-1.49/driver/loader.h
ndiswrapper-1.49/driver/longlong.h
ndiswrapper-1.49/driver/Makefile
ndiswrapper-1.49/driver/crt.c
ndiswrapper-1.49/driver/ndis.c
ndiswrapper-1.49/driver/ndis.h
ndiswrapper-1.49/driver/ndiswrapper.h
ndiswrapper-1.49/driver/ntoskernel.c
ndiswrapper-1.49/driver/ntoskernel.h
ndiswrapper-1.49/driver/ntoskernel_io.c
ndiswrapper-1.49/driver/pe_linker.c
ndiswrapper-1.49/driver/pe_linker.h
ndiswrapper-1.49/driver/pnp.c
ndiswrapper-1.49/driver/pnp.h
ndiswrapper-1.49/driver/proc.c
ndiswrapper-1.49/driver/rtl.c
ndiswrapper-1.49/driver/usb.c
ndiswrapper-1.49/driver/usb.h
ndiswrapper-1.49/driver/winnt_types.h
ndiswrapper-1.49/driver/workqueue.c
ndiswrapper-1.49/driver/wrapmem.h
ndiswrapper-1.49/driver/wrapmem.c
ndiswrapper-1.49/driver/wrapper.c
ndiswrapper-1.49/driver/wrapndis.h
ndiswrapper-1.49/driver/wrapndis.c
ndiswrapper-1.49/driver/lin2win.h
ndiswrapper-1.49/driver/win2lin_stubs.S
magnum@magnum-desktop:~$ ndiswrapper.in
bash: ndiswrapper.in: command not found
magnum@magnum-desktop:~$ goto ndiswrapper.in
bash: goto: command not found
magnum@magnum-desktop:~$ dir
Desktop Examples ndiswrapper-1.49 Public Unsaved\ Document\ 1 Videos
Documents Music Pictures Templates Unsaved\ Document\ 1~
magnum@magnum-desktop:~$ cd ndiswrapper.in
bash: cd: ndiswrapper.in: No such file or directory
magnum@magnum-desktop:~$ cd ndiswrapper
bash: cd: ndiswrapper: No such file or directory
magnum@magnum-desktop:~$ cd ndiswrapper-1.49
magnum@magnum-desktop:~/ndiswrapper-1.49$ make uninstall
NOTE: Not all installed files are removed, as different distributions install ndiswrapper files at different places.
Run uninstall as many times as necessary until no "removing" messages appear below.
removing /lib/modules/2.6.22-14-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko
/bin/rm: cannot remove `/lib/modules/2.6.22-14-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko': Permission denied
make: *** [uninstall] Error 1
magnum@magnum-desktop:~/ndiswrapper-1.49$ make uninstall
NOTE: Not all installed files are removed, as different distributions install ndiswrapper files at different places.
Run uninstall as many times as necessary until no "removing" messages appear below.
removing /lib/modules/2.6.22-14-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko
/bin/rm: cannot remove `/lib/modules/2.6.22-14-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko': Permission denied
make: *** [uninstall] Error 1
magnum@magnum-desktop:~/ndiswrapper-1.49$ make uninstall
NOTE: Not all installed files are removed, as different distributions install ndiswrapper files at different places.
Run uninstall as many times as necessary until no "removing" messages appear below.
removing /lib/modules/2.6.22-14-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko
/bin/rm: cannot remove `/lib/modules/2.6.22-14-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko': Permission denied
make: *** [uninstall] Error 1
magnum@magnum-desktop:~/ndiswrapper-1.49$ make uninstall
NOTE: Not all installed files are removed, as different distributions install ndiswrapper files at different places.
Run uninstall as many times as necessary until no "removing" messages appear below.
removing /lib/modules/2.6.22-14-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko
/bin/rm: cannot remove `/lib/modules/2.6.22-14-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko': Permission denied
make: *** [uninstall] Error 1
magnum@magnum-desktop:~/ndiswrapper-1.49$ make uninstall
NOTE: Not all installed files are removed, as different distributions install ndiswrapper files at different places.
Run uninstall as many times as necessary until no "removing" messages appear below.
removing /lib/modules/2.6.22-14-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko
/bin/rm: cannot remove `/lib/modules/2.6.22-14-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko': Permission denied
make: *** [uninstall] Error 1
magnum@magnum-desktop:~/ndiswrapper-1.49$ make uninstall
NOTE: Not all installed files are removed, as different distributions install ndiswrapper files at different places.
Run uninstall as many times as necessary until no "removing" messages appear below.
removing /lib/modules/2.6.22-14-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko
/bin/rm: cannot remove `/lib/modules/2.6.22-14-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko': Permission denied
make: *** [uninstall] Error 1
magnum@magnum-desktop:~/ndiswrapper-1.49$ make uninstall
NOTE: Not all installed files are removed, as different distributions install ndiswrapper files at different places.
Run uninstall as many times as necessary until no "removing" messages appear below.
removing /lib/modules/2.6.22-14-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko
/bin/rm: cannot remove `/lib/modules/2.6.22-14-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko': Permission denied
make: *** [uninstall] Error 1
magnum@magnum-desktop:~/ndiswrapper-1.49$ make uninstall
NOTE: Not all installed files are removed, as different distributions install ndiswrapper files at different places.
Run uninstall as many times as necessary until no "removing" messages appear below.
removing /lib/modules/2.6.22-14-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko
/bin/rm: cannot remove `/lib/modules/2.6.22-14-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko': Permission denied
make: *** [uninstall] Error 1
magnum@magnum-desktop:~/ndiswrapper-1.49$ dir
AUTHORS driver loadndisdriver.8 ndiswrapper.8 README
ChangeLog INSTALL Makefile ndiswrapper.spec utils
magnum@magnum-desktop:~/ndiswrapper-1.49$ make
make -C driver
make[1]: Entering directory `/home/magnum/ndiswrapper-1.49/driver'
make -C /usr/src/linux-headers-2.6.22-14-generic SUBDIRS=/home/magnum/ndiswrapper-1.49/driver
make[2]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
LD /home/magnum/ndiswrapper-1.49/driver/built-in.o
CC [M] /home/magnum/ndiswrapper-1.49/driver/crt.o
CC [M] /home/magnum/ndiswrapper-1.49/driver/hal.o
CC [M] /home/magnum/ndiswrapper-1.49/driver/iw_ndis.o
CC [M] /home/magnum/ndiswrapper-1.49/driver/loader.o
CC [M] /home/magnum/ndiswrapper-1.49/driver/ndis.o
CC [M] /home/magnum/ndiswrapper-1.49/driver/ntoskernel.o
CC [M] /home/magnum/ndiswrapper-1.49/driver/ntoskernel_io.o
CC [M] /home/magnum/ndiswrapper-1.49/driver/pe_linker.o
CC [M] /home/magnum/ndiswrapper-1.49/driver/pnp.o
CC [M] /home/magnum/ndiswrapper-1.49/driver/proc.o
CC [M] /home/magnum/ndiswrapper-1.49/driver/rtl.o
CC [M] /home/magnum/ndiswrapper-1.49/driver/wrapmem.o
CC [M] /home/magnum/ndiswrapper-1.49/driver/wrapndis.o
CC [M] /home/magnum/ndiswrapper-1.49/driver/wrapper.o
CC [M] /home/magnum/ndiswrapper-1.49/driver/usb.o
CC [M] /home/magnum/ndiswrapper-1.49/driver/divdi3.o
LD [M] /home/magnum/ndiswrapper-1.49/driver/ndiswrapper.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/magnum/ndiswrapper-1.49/driver/ndiswrapper.mod.o
LD [M] /home/magnum/ndiswrapper-1.49/driver/ndiswrapper.ko
make[2]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
make[1]: Leaving directory `/home/magnum/ndiswrapper-1.49/driver'
make -C utils
make[1]: Entering directory `/home/magnum/ndiswrapper-1.49/utils'
gcc -g -Wall -I../driver -o loadndisdriver loadndisdriver.c
loadndisdriver.c:15:20: error: stdlib.h: No such file or directory
loadndisdriver.c:16:19: error: stdio.h: No such file or directory
loadndisdriver.c:17:19: error: errno.h: No such file or directory
loadndisdriver.c:18:20: error: string.h: No such file or directory
loadndisdriver.c:19:20: error: libgen.h: No such file or directory
loadndisdriver.c:21:22: error: sys/mman.h: No such file or directory
loadndisdriver.c:23:23: error: sys/types.h: No such file or directory
loadndisdriver.c:24:23: error: sys/ioctl.h: No such file or directory
loadndisdriver.c:25:22: error: sys/stat.h: No such file or directory
loadndisdriver.c:26:20: error: unistd.h: No such file or directory
loadndisdriver.c:27:19: error: fcntl.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.1.3/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.1.3/include/limits.h:11,
from loadndisdriver.c:28:
/usr/lib/gcc/i486-linux-gnu/4.1.3/include/limits.h:122:61: error: limits.h: No such file or directory
loadndisdriver.c:29:19: error: ctype.h: No such file or directory
loadndisdriver.c:30:20: error: dirent.h: No such file or directory
loadndisdriver.c:31:20: error: syslog.h: No such file or directory
loadndisdriver.c:34:25: error: linux/major.h: No such file or directory
loadndisdriver.c:35:25: error: linux/ioctl.h: No such file or directory
In file included from loadndisdriver.c:37:
../driver/loader.h:24: error: expected specifier-qualifier-list before ‘size_t’
loadndisdriver.c: In function ‘load_file’:
loadndisdriver.c:67: error: ‘size_t’ undeclared (first use in this function)
loadndisdriver.c:67: error: (Each undeclared identifier is reported only once
loadndisdriver.c:67: error: for each function it appears in.)
loadndisdriver.c:67: error: expected ‘;’ before ‘size’
loadndisdriver.c:68: error: ‘NULL’ undeclared (first use in this function)
loadndisdriver.c:69: error: storage size of ‘statbuf’ isn’t known
loadndisdriver.c:71: warning: implicit declaration of function ‘basename’
loadndisdriver.c:71: warning: initialization makes pointer from integer without a cast
loadndisdriver.c:73: warning: implicit declaration of function ‘open’
loadndisdriver.c:73: error: ‘O_RDONLY’ undeclared (first use in this function)
loadndisdriver.c:75: warning: implicit declaration of function ‘syslog’
loadndisdriver.c:75: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:75: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:75: warning: implicit declaration of function ‘strerror’
loadndisdriver.c:75: error: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:76: error: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:79: warning: implicit declaration of function ‘fstat’
loadndisdriver.c:81: warning: implicit declaration of function ‘close’
loadndisdriver.c:84: error: ‘size’ undeclared (first use in this function)
loadndisdriver.c:86: warning: implicit declaration of function ‘mmap’
loadndisdriver.c:86: error: ‘PROT_READ’ undeclared (first use in this function)
loadndisdriver.c:86: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
loadndisdriver.c:86: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:87: error: ‘MAP_FAILED’ undeclared (first use in this function)
loadndisdriver.c:93: warning: implicit declaration of function ‘strncpy’
loadndisdriver.c:93: warning: incompatible implicit declaration of built-in function ‘strncpy’
loadndisdriver.c:95: error: ‘struct load_driver_file’ has no member named ‘size’
loadndisdriver.c:96: error: ‘struct load_driver_file’ has no member named ‘data’
loadndisdriver.c:69: warning: unused variable ‘statbuf’
loadndisdriver.c: In function ‘parse_setting_line’:
loadndisdriver.c:109: warning: implicit declaration of function ‘isspace’
loadndisdriver.c:115: warning: implicit declaration of function ‘strchr’
loadndisdriver.c:115: warning: incompatible implicit declaration of built-in function ‘strchr’
loadndisdriver.c:115: error: ‘NULL’ undeclared (first use in this function)
loadndisdriver.c:117: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:117: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:118: error: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:138: warning: implicit declaration of function ‘strlen’
loadndisdriver.c:138: warning: incompatible implicit declaration of built-in function ‘strlen’
loadndisdriver.c: In function ‘read_conf_file’:
loadndisdriver.c:150: error: storage size of ‘statbuf’ isn’t known
loadndisdriver.c:151: error: ‘FILE’ undeclared (first use in this function)
loadndisdriver.c:151: error: ‘config’ undeclared (first use in this function)
loadndisdriver.c:157: warning: implicit declaration of function ‘lstat’
loadndisdriver.c:158: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:158: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:158: error: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:160: error: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:163: warning: implicit declaration of function ‘sscanf’
loadndisdriver.c:163: warning: incompatible implicit declaration of built-in function ‘sscanf’
loadndisdriver.c:178: warning: implicit declaration of function ‘fopen’
loadndisdriver.c:178: error: ‘NULL’ undeclared (first use in this function)
loadndisdriver.c:182: warning: implicit declaration of function ‘fgets’
loadndisdriver.c:194: warning: incompatible implicit declaration of built-in function ‘strncpy’
loadndisdriver.c:205: warning: implicit declaration of function ‘fclose’
loadndisdriver.c:150: warning: unused variable ‘statbuf’
loadndisdriver.c: In function ‘load_bin_file’:
loadndisdriver.c:217: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:217: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:219: warning: implicit declaration of function ‘tolower’
loadndisdriver.c:221: warning: implicit declaration of function ‘chdir’
loadndisdriver.c:222: error: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:224: error: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:230: warning: incompatible implicit declaration of built-in function ‘strncpy’
loadndisdriver.c:232: warning: implicit declaration of function ‘ioctl’
loadndisdriver.c:232: warning: implicit declaration of function ‘_IOW’
loadndisdriver.c:232: error: expected expression before ‘struct’
loadndisdriver.c: In function ‘load_driver’:
loadndisdriver.c:249: error: ‘DIR’ undeclared (first use in this function)
loadndisdriver.c:249: error: ‘driver_dir’ undeclared (first use in this function)
loadndisdriver.c:251: error: ‘NULL’ undeclared (first use in this function)
loadndisdriver.c:255: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:255: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:257: error: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:259: error: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:261: warning: implicit declaration of function ‘opendir’
loadndisdriver.c:267: warning: implicit declaration of function ‘malloc’
loadndisdriver.c:267: warning: incompatible implicit declaration of built-in function ‘malloc’
loadndisdriver.c:271: warning: implicit declaration of function ‘memset’
loadndisdriver.c:271: warning: incompatible implicit declaration of built-in function ‘memset’
loadndisdriver.c:272: warning: incompatible implicit declaration of built-in function ‘strncpy’
loadndisdriver.c:280: warning: implicit declaration of function ‘readdir’
loadndisdriver.c:280: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:282: error: storage size of ‘statbuf’ isn’t known
loadndisdriver.c:284: error: dereferencing pointer to incomplete type
loadndisdriver.c:287: warning: implicit declaration of function ‘stat’
loadndisdriver.c:287: error: dereferencing pointer to incomplete type
loadndisdriver.c:288: warning: implicit declaration of function ‘S_ISREG’
loadndisdriver.c:289: error: dereferencing pointer to incomplete type
loadndisdriver.c:294: warning: incompatible implicit declaration of built-in function ‘strlen’
loadndisdriver.c:294: error: dereferencing pointer to incomplete type
loadndisdriver.c:296: warning: implicit declaration of function ‘strcasecmp’
loadndisdriver.c:296: error: dereferencing pointer to incomplete type
loadndisdriver.c:299: error: dereferencing pointer to incomplete type
loadndisdriver.c:302: error: dereferencing pointer to incomplete type
loadndisdriver.c:303: error: dereferencing pointer to incomplete type
loadndisdriver.c:305: error: dereferencing pointer to incomplete type
loadndisdriver.c:311: error: dereferencing pointer to incomplete type
loadndisdriver.c:312: error: dereferencing pointer to incomplete type
loadndisdriver.c:313: warning: implicit declaration of function ‘strcpy’
loadndisdriver.c:313: warning: incompatible implicit declaration of built-in function ‘strcpy’
loadndisdriver.c:314: error: dereferencing pointer to incomplete type
loadndisdriver.c:317: error: ‘struct load_driver_file’ has no member named ‘size’
loadndisdriver.c:318: error: ‘struct load_driver_file’ has no member named ‘data’
loadndisdriver.c:321: error: dereferencing pointer to incomplete type
loadndisdriver.c:282: warning: unused variable ‘statbuf’
loadndisdriver.c:344: error: expected expression before ‘struct’
loadndisdriver.c:346: warning: implicit declaration of function ‘closedir’
loadndisdriver.c:348: warning: implicit declaration of function ‘free’
loadndisdriver.c:355: warning: implicit declaration of function ‘munmap’
loadndisdriver.c:355: error: ‘struct load_driver_file’ has no member named ‘data’
loadndisdriver.c:355: error: ‘struct load_driver_file’ has no member named ‘size’
loadndisdriver.c:357: error: ‘struct load_driver_file’ has no member named ‘data’
loadndisdriver.c:357: error: ‘struct load_driver_file’ has no member named ‘size’
loadndisdriver.c: In function ‘get_device’:
loadndisdriver.c:367: error: storage size of ‘statbuf’ isn’t known
loadndisdriver.c:370: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:370: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:373: error: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:374: error: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:376: warning: implicit declaration of function ‘snprintf’
loadndisdriver.c:376: warning: incompatible implicit declaration of built-in function ‘snprintf’
loadndisdriver.c:407: warning: incompatible implicit declaration of built-in function ‘strncpy’
loadndisdriver.c:367: warning: unused variable ‘statbuf’
loadndisdriver.c: In function ‘load_device’:
loadndisdriver.c:419: error: ‘DIR’ undeclared (first use in this function)
loadndisdriver.c:419: error: ‘dir’ undeclared (first use in this function)
loadndisdriver.c:423: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:423: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:424: warning: incompatible implicit declaration of built-in function ‘memset’
loadndisdriver.c:426: error: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:427: error: ‘EINVAL’ undeclared (first use in this function)
loadndisdriver.c:429: error: ‘NULL’ undeclared (first use in this function)
loadndisdriver.c:434: warning: assignment makes pointer from integer without a cast
loadndisdriver.c:435: error: dereferencing pointer to incomplete type
loadndisdriver.c:436: error: dereferencing pointer to incomplete type
loadndisdriver.c:439: error: dereferencing pointer to incomplete type
loadndisdriver.c:447: error: expected expression before ‘struct’
loadndisdriver.c: In function ‘get_ioctl_device’:
loadndisdriver.c:464: error: ‘FILE’ undeclared (first use in this function)
loadndisdriver.c:464: error: ‘proc_misc’ undeclared (first use in this function)
loadndisdriver.c:472: warning: implicit declaration of function ‘strstr’
loadndisdriver.c:472: warning: incompatible implicit declaration of built-in function ‘strstr’
loadndisdriver.c:473: warning: implicit declaration of function ‘strtol’
loadndisdriver.c:473: error: ‘NULL’ undeclared (first use in this function)
loadndisdriver.c:483: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:483: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:488: warning: implicit declaration of function ‘unlink’
loadndisdriver.c:489: warning: implicit declaration of function ‘mknod’
loadndisdriver.c:489: error: ‘S_IFCHR’ undeclared (first use in this function)
loadndisdriver.c:489: error: ‘MISC_MAJOR’ undeclared (first use in this function)
loadndisdriver.c:490: error: ‘errno’ undeclared (first use in this function)
loadndisdriver.c:495: error: ‘O_RDONLY’ undeclared (first use in this function)
loadndisdriver.c: In function ‘main’:
loadndisdriver.c:511: warning: implicit declaration of function ‘openlog’
loadndisdriver.c:511: error: ‘LOG_PERROR’ undeclared (first use in this function)
loadndisdriver.c:511: error: ‘LOG_CONS’ undeclared (first use in this function)
loadndisdriver.c:511: error: ‘LOG_KERN’ undeclared (first use in this function)
loadndisdriver.c:511: error: ‘LOG_DEBUG’ undeclared (first use in this function)
loadndisdriver.c:513: error: ‘LOG_INFO’ undeclared (first use in this function)
loadndisdriver.c:515: warning: implicit declaration of function ‘strncmp’
loadndisdriver.c:517: warning: implicit declaration of function ‘printf’
loadndisdriver.c:517: warning: incompatible implicit declaration of built-in function ‘printf’
loadndisdriver.c:527: warning: implicit declaration of function ‘atoi’
loadndisdriver.c:542: warning: implicit declaration of function ‘atof’
loadndisdriver.c:549: warning: implicit declaration of function ‘strcmp’
loadndisdriver.c:556: warning: incompatible implicit declaration of built-in function ‘sscanf’
loadndisdriver.c:590: warning: implicit declaration of function ‘closelog’
make[1]: *** [loadndisdriver] Error 1
make[1]: Leaving directory `/home/magnum/ndiswrapper-1.49/utils'
make: *** [all] Error 2
magnum@magnum-desktop:~/ndiswrapper-1.49$ make install
make -C driver install
make[1]: Entering directory `/home/magnum/ndiswrapper-1.49/driver'
make -C /usr/src/linux-headers-2.6.22-14-generic SUBDIRS=/home/magnum/ndiswrapper-1.49/driver
make[2]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
Building modules, stage 2.
MODPOST 1 modules
make[2]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
echo /lib/modules/2.6.22-14-generic/misc
/lib/modules/2.6.22-14-generic/misc
mkdir -p /lib/modules/2.6.22-14-generic/misc
mkdir: cannot create directory `/lib/modules/2.6.22-14-generic/misc': Permission denied
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/magnum/ndiswrapper-1.49/driver'
make: *** [install] Error 2
magnum@magnum-desktop:~/ndiswrapper-1.49$
 
Old 11-16-2007, 02:23 PM   #6
CrinkElite
Member
 
Registered: Nov 2007
Posts: 35

Original Poster
Rep: Reputation: 16
sorry about the size of the post, I don't know whats relevant
 
Old 11-16-2007, 02:30 PM   #7
CrinkElite
Member
 
Registered: Nov 2007
Posts: 35

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by CaptSilver View Post
ubuntu usualy doesn't install header files for the kernel which is needed to compile ndiswrapper. Try to get the debs and use dpkg -i to install as someone mentioned above. The deb files you will need are ndiswrapper and it's module for the kernel. If you need I or someone else can provide you links on where to download it...
i think i need those links your talking about. or maybe the ubuntu install was botched in some way, I did get a message at the end of the installation stating that some security files could not be accessed and advising me to sort it out manualy (or something??)

ps. should i be posting that on a public forum???
 
Old 11-16-2007, 04:36 PM   #8
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
ubuntu uses the Debian package management system called "apt". There is a file /etc/apt/sources.list that tells apt where to look for files you want to install. If you installed from a CD, the CD is in the sources list by default.

If you have internet access, you'll want to edit the sources list to point toward an ubuntu repository that you can download from.

Search the Web for info on apt-get sources list, or check ubuntu website.

If you comment out or remove the CD from the sources list, it should quit asking you to insert the CD.

But you will to get the ndiswrapper source from somewhere - I'd advise using the package management to deal with this until you get more experience.

Once ndiswrapper is installed, you'll have to compile it. See if Ubuntu uses Debian's module-assistant (m-a) - a much better way to compile modules if you have it available.

Wireless drivers are one of the real "rough edges" on Linux, mainly because a lack of driver support. ndiswrapper should be viewed as a last resort if no native Linux drivers are available.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ndiswrapper installed driver installed, hardware present, but modprobe doesn't likeit Flukey Linux - Hardware 1 04-14-2007 12:22 PM
Installed FC5> Wrote over Ubuntu MBR: How do i add Ubuntu Partition to Grub Loader Free_beer Ubuntu 4 10-02-2006 07:11 PM
Cannot boot already installed ubuntu on newly installed win xp abhi_337 Ubuntu 1 07-13-2006 04:33 AM
ndiswrapper installed, driver installed. No device appears... kurtwisener Fedora 5 03-25-2006 04:10 PM
ndiswrapper installed, drivers installed, what now? beatupbilly Fedora 1 11-19-2004 06:32 PM


All times are GMT -5. The time now is 11:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration