LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 09-02-2005, 01:35 PM   #1
whjones
Member
 
Registered: Nov 2004
Location: Honolulu
Distribution: Fedora Core 3
Posts: 42

Rep: Reputation: 15
ndiswrapper on HP laptop (zd8110us) on FC3 assist, pls


Aloha everyone,

I just purchased an HP Pavilion zd8110us laptop, which has a built-in Broadcom wireless NIC. I installed Fedora Core 3 and attempted to install the latest version of ndiswrapper, but ran into some problems. I then, because I have lots of time and want to do this right, did a reinstall of FC3 and used an older version of ndiswrapper (the 1.2 version), but ran into somewhat the same problem. I can't figure out how to correct it and would like to know if anyone has any ideas. I put the ndiswrapper file in /usr/local/bin and unzipped it. The 'make distclean' command presented no errors, so I went to the next step. This time, it appears that a gcc error occured. This is the output:



[root@localhost ndiswrapper-1.2]# make
make -C driver
make[1]: entering direstory '/usr/local/bin/ndiswrapper-1.2/driver'
make -C /lib/modules/2.6.9-1.667.stk16/build SUBDIRS=/usr/local/bin/ndiswrapper-1.2/driver \
NDISWRAPPER_VERSON =1.2 \
EXTRA VERSION= modules
/lib/modules/2.6.9-1.667.stk16/build/scripts/gcc-version.sh: line 11: gcc: command not found
/lib/modules/2.6.9-1.667.stk16/build/scripts/gcc-version.sh: line 12: gcc: command not found
make[2]: Entering directory '/lib/modules/2.6.9-1.667/build'
CC [M] /usr/local/bin/ndiswrapper-1.2/driver/hal.o
/bin/sh: gcc: command not found
make[3]: *** [/usr/local/bin/ndiswrapper-1.2/driver/hal.0] Error 127
make[2]: *** /_module_/usr/local/bin/ndiswrapper-1.2/driver] Error 2
make[2]: Leaving directory '/lib/modules/2.6.9-1.667.stk16/build'
make[1]: *** [default] Error 2
make[1]: Leaving directory '/usr/local/bin/ndiswrapper-1.2/driver'
make: *** [all] Error 2




I verified that the 'build' directory existed in the path given above, then opened the gcc-version.sh file to look at the contents, which are:



#!/bin/sh
#
# gcc-version gcc-command
#
# Prints the gcc versoin of 'gcc-command' in a cononical 4-
digit form
# such as '0295' for gcc-2.95, '0303' for gcc-3.3, etc.
#

compiler="$*"

MAJOR=$(echo __GNUC__ " $compiler -E -xc - | tail -n 1)
MINOR=$(echo __GNUC_MINOR__ " $compiler -E -xc - | tail -n 1)
printf "%02d%02d\\n" $MAJOR $MINOR


The MAJOR and MINOR lines are lines 11 and 12, respectively. I don't know C, and am also not sure of what is expected, but those lines appear pretty much straight forward. I'm not sure what the 'command not found' portion from the 'make' command above is really talking about. I got ndiswrapper working with a D-Link PCMCIA care on my old laptop (with the 1.2 version of ndiswrapper) and was hoping for somewhat the same result here.

The other question I have is concerning the '/bin/sh gcc: command not found' line in the output from the 'make' command above. GCC is installed on the laptop, so what is that line all about? This is really confusing for me and if anyone has any idea of where I should look, or what I should do, to correct these errors, I would be forever in your debt.

Mahalo in advance for your assistance,

Bud Jones

Last edited by whjones; 09-02-2005 at 01:38 PM.
 
Old 09-02-2005, 02:08 PM   #2
ulb
LQ Newbie
 
Registered: Sep 2004
Location: Brussels
Distribution: Mandrake
Posts: 14

Rep: Reputation: 0
never saw this problem!

I would try these:

Apparently you're using sh shell. Type "gcc" in the command line to see if the command gcc is recognized. If it is, I don't understand the line /bin/sh: gcc command not found in your output!
If the command line says also command not found, then type "where is gcc", this will give you the place where gcc is in your filesystem. Then add the correct path in your shell environment variable

good luck

greg
 
Old 09-02-2005, 03:09 PM   #3
whjones
Member
 
Registered: Nov 2004
Location: Honolulu
Distribution: Fedora Core 3
Posts: 42

Original Poster
Rep: Reputation: 15
Greg,

Thanks for the quick response. The 'gcc' command was NOT found, so I need to add it to the environment. The question is where. I use bash, so I think it should probably be in the .bash_profile file, but I'm not sure. How do I add it to the shell environment variable?

Thanks in advance,

Bud
 
Old 09-02-2005, 03:20 PM   #4
ulb
LQ Newbie
 
Registered: Sep 2004
Location: Brussels
Distribution: Mandrake
Posts: 14

Rep: Reputation: 0
you should modify your PATH environment variable.
To see what are its settings now, type echo $PATH

to add your gcc path to the PATH variable, type: (in bash)

export PATH=$PATH:/xxx/yyy/zzz where xxxyyyzzz is the way to your gcc compiler ("where is gcc")

hope this will serve you

Greg
 
Old 09-02-2005, 05:06 PM   #5
whjones
Member
 
Registered: Nov 2004
Location: Honolulu
Distribution: Fedora Core 3
Posts: 42

Original Poster
Rep: Reputation: 15
Greg,

I tried your suggestion, but even though the gcc path was reflected in the PATH statement, I still got 'command not found' when I typed in 'gcc'. I decided to start over again from scrath and actually look at what was being installed, instead of just taking the minimal install option. This time, I installed some packages not installed previously, and everything is working thus far.

Thanks again for your assistance,

Bud
 
  


Reply



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
Trying to load module "ndiswrapper" with modprobe; modprobe ndiswrapper doesn't work! Benjamin Linux - Wireless Networking 30 05-25-2008 07:04 AM
Ndiswrapper zupertj SUSE / openSUSE 6 10-20-2005 12:11 PM
ndiswrapper doesn't like me michaelsanford Linux - Wireless Networking 3 04-12-2005 12:52 PM
Ndiswrapper Pretzels Linux - Wireless Networking 3 12-19-2004 08:23 PM
help with ndiswrapper bruzah619 Linux - Wireless Networking 4 10-22-2004 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 03:31 PM.

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
Open Source Consulting | Domain Registration