LinuxQuestions.org
Visit Jeremy's Blog.
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 05-24-2006, 05:11 AM   #1
karloslambchop
LQ Newbie
 
Registered: May 2006
Location: Leeds
Distribution: Ubuntu
Posts: 29

Rep: Reputation: 15
GCC errors in ndiswrapper build


Hi All, Karloslambchop here,

Well here goes for my first post...

I have been attempting to build Ndiswrapper on my Laptop. I have a Broadcom chipset (Dell 1450) wireless card.

I have attempted two ways:

Manual - Complains about GCC error.

And

Automatic - "sudo module-assistant autoinstall ndiswrapper"

If anyone can point me in the right direction that would be very appreciated. I forgot to mention that I have come across from the doze side so forgive me if this is something really straight forward.

On the plus side, this troublshooting and errors have been a good way into Linux.

Take it easy everyone,

Karloslambchop.


output (error log):



for templ in ; do \
cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.12-9-386/g'` ; \
done
for templ in `ls debian/*.modules.in` ; do \
test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \
sed -e 's/##KVERS##/2.6.12-9-386/g ;s/#KVERS#/2.6.12-9-386/g ; s/_KVERS_/2.6.12-9-386/g ; s/##KDREV##/2.6.12-9.23/g ; s/#KDREV#/2.6.12-9.23/g ; s/_KDREV_/2.6.12-9.23/g' < $templ > ${templ%.modules.in}; \
done
dh_clean
/usr/bin/make clean
make[1]: Entering directory `/usr/src/modules/ndiswrapper'
rm -rf ndiswrapper.ko ndiswrapper.o hal.o iw_ndis.o loader.o misc_funcs.o ndis.o ntoskernel.o pe_linker.o proc.o wrapper.o usb.o divdi3.o usb.o x86_64_stubs.o \
divdi3.o .*.ko.cmd .*.o.cmd ndiswrapper.mod.[oc] *~ .tmp_versions
make[1]: Leaving directory `/usr/src/modules/ndiswrapper'
/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory `/usr/src/modules/ndiswrapper'
for templ in ; do \
cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.12-9-386/g'` ; \
done
for templ in `ls debian/*.modules.in` ; do \
test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \
sed -e 's/##KVERS##/2.6.12-9-386/g ;s/#KVERS#/2.6.12-9-386/g ; s/_KVERS_/2.6.12-9-386/g ; s/##KDREV##/2.6.12-9.23/g ; s/#KDREV#/2.6.12-9.23/g ; s/_KDREV_/2.6.12-9.23/g' < $templ > ${templ%.modules.in}; \
done
dh_clean
/usr/bin/make clean
make[2]: Entering directory `/usr/src/modules/ndiswrapper'
rm -rf ndiswrapper.ko ndiswrapper.o hal.o iw_ndis.o loader.o misc_funcs.o ndis.o ntoskernel.o pe_linker.o proc.o wrapper.o usb.o divdi3.o usb.o x86_64_stubs.o \
divdi3.o .*.ko.cmd .*.o.cmd ndiswrapper.mod.[oc] *~ .tmp_versions
make[2]: Leaving directory `/usr/src/modules/ndiswrapper'
make[1]: Nothing to be done for `kdist_config'.
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs lib/modules/2.6.12-9-386/misc
# build and install the module
/usr/bin/make KPKG_EXTRAV_ARG= KSRC=/usr/src/linux \
KVER=2.6.12-9-386 \
INST_DIR=debian/ndiswrapper-modules-2.6.12-9-386/lib/modules/2.6.12-9-386/misc/ install
make[2]: Entering directory `/usr/src/modules/ndiswrapper'
/usr/bin/make -C /usr/src/linux SUBDIRS=/usr/src/modules/ndiswrapper \
NDISWRAPPER_VERSION=1.1 \
EXTRA_VERSION= modules
/usr/src/linux-headers-2.6.12-9-386/scripts/gcc-version.sh: line 11: gcc-3.4: command not found
/usr/src/linux-headers-2.6.12-9-386/scripts/gcc-version.sh: line 12: gcc-3.4: command not found
make[3]: gcc-3.4: Command not found
make[3]: Entering directory `/usr/src/linux-headers-2.6.12-9-386'
CC [M] /usr/src/modules/ndiswrapper/hal.o
/bin/sh: gcc-3.4: command not found
make[4]: *** [/usr/src/modules/ndiswrapper/hal.o] Error 127
make[3]: *** [_module_/usr/src/modules/ndiswrapper] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.12-9-386'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/usr/src/modules/ndiswrapper'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/ndiswrapper'
make: *** [kdist_build] Error 2
 
Old 05-24-2006, 05:46 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You need to install the gcc compiler. Also install wireless-tools and wpa_supplicant.
You may also need to install the kernel-source and maybe kernel-syms if ubuntu has such a package.
 
Old 05-24-2006, 06:01 PM   #3
karloslambchop
LQ Newbie
 
Registered: May 2006
Location: Leeds
Distribution: Ubuntu
Posts: 29

Original Poster
Rep: Reputation: 15
A big thank you

Hi ischiwal,

Thank you so much for your time. I have installed the GCC files using apt-get and started again. I am (wirelessly) typing this thank you.

The sense of acheivement you get when using (an learning) through Linux distro's definatly beats Windozes...

Thanks for taking time to help.

Karl.
 
Old 05-26-2006, 02:39 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I'm glad you got it working.
 
  


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
NDISWRAPPER can't find FC5 Kernel build NLawrence Linux - Software 1 05-16-2006 05:55 PM
need to make ndiswrapper for 16k stacks kernel but build errors cDizzle Linux - Software 1 04-10-2006 03:01 PM
Which gcc-build.........is there another book? matthewa Linux From Scratch 4 04-06-2005 06:40 AM
kernel build from gcc 3.3.2 to gcc 3.4.1 alcarbone Linux - Software 1 09-13-2004 08:19 AM

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

All times are GMT -5. The time now is 03:42 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