LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-19-2007, 05:06 PM   #1
Aerolinux
LQ Newbie
 
Registered: Feb 2007
Posts: 22

Rep: Reputation: 15
wpa_supplicant help


Hi all..
I am very very new to Linux and am trying to install a NIC on my laptop. I am using linux 10 with Kernel source 2.4.20.8.

The instruction sheet for building the Driver is as follows:
" Get the latest version of wpa_supplicant from location ......... and copy it to ./application/directory and run 'sh patch_os_wpa_aupplicant <version>' from the ./scripts/ directory. "

The version that I downloaded is 0.5.7. When I try to run the command as given in the manual I am getting an error message which says "No such file or directory"

Please give me any ideas on who to trouble shoot this.


Also I have am having problem with " make all". It just gives me a whole bunch of errors that I do not understand.
Below I have included few lines from the error message we get

“ /usr/include/openssl/kssl.h:xx: parse error before……..

tls_openssl.c:xxx: dereferencing pointer to incomplete type

make[1]: ***[tls_openssl.o] Error1

Make: *** [all] Error 2 …………“

I would appreciate any help I can get on this issue. Thank you
 
Old 02-19-2007, 07:46 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Hello and welcome to LQ, hope you like it here.

I am using linux 10 with Kernel source 2.4.20.8
Better fill in your user control panel info like distribution, release and such. Much easier.
Kernel is a bit old I'd say.


The instruction sheet for building the Driver is as follows:
" Get the latest version of wpa_supplicant from location ......... and copy it to ./application/directory and run 'sh patch_os_wpa_aupplicant <version>' from the ./scripts/ directory. "

Which sheet (product)? What driver? More details, more chance of help... And please don't use placeholder directory names like "./application/directory". Just post the real dir name.


When I try to run the command as given in the manual I am getting an error message which says "No such file or directory"
Could be you made a typo? Or didn't use full paths? Or didn't "cp -r" the directory? Maybe post the commands you tried.


Also I have am having problem with " make all".
Running make without patching the source it first won't help you much.
 
Old 02-20-2007, 10:29 AM   #3
Aerolinux
LQ Newbie
 
Registered: Feb 2007
Posts: 22

Original Poster
Rep: Reputation: 15
Thank you Unspawn for the help.

You had suggested that I give you the "user control panel info like distribution, release and such". At the risk of sounding dumb could you tell me how I can get these details from my system ?
 
Old 02-20-2007, 11:05 AM   #4
Aerolinux
LQ Newbie
 
Registered: Feb 2007
Posts: 22

Original Poster
Rep: Reputation: 15
I am using a Conexant Voyageur Wireless card. The instruction sheet I was refering to is a README document that I found in the relating software.
I downloaded the wpa_supplicant 0.5.7 in the
/tmp/BigMAC_EmbeddedDDK/applications directory and ran the command from
/tmp/BigMAC_EmbeddedDDK/scripts directory

Thanks for the suggestion. Yes I wasnt using the full path. But now that I try to run it from the correct path here is the error i get

[root@localhost scripts]# sh patch_os_wpa_supplicant 0.5.7
wpa supplicant package found and extracting it, please wait ...
Extracted wpa_supplicant package found and patching it ...
patching file drivers.c
patching file driver_smac.c
patching Makefile
Hunk #1 FAILED at 132
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
[root@localhost scripts]#



I am including the Makefile.rej

****************
*** 132.137 ***
OBJS_D +=driver_test.o
endif

ifdef CONFIG_DNET_PCAP
CFLAGS += -DUSE_DNETPCAP
ifdef CONFIG_WINPCAP
--- 132,153 ---
OBJS_d += driver_test.o
endif

+ PATH_ROOT=../..
+ include $(PATH_ROOT)/driver/Config.mk
+
+ CFLAGS += -I. \
+ -I$(PATH_ROOT)/$(PATH_UMAC)/include \
+ -I/usr/kerberos/include \
+ -I..
+
+ LIBS += $(PATH_ROOT)/$(PATH_PRISMOIDS)/liboids.a
+ CFLAGS += -DCONFIG_DRIVER_SMAC -I$(PATH_ROOT)/$(PATH_PRIMOIDS)
+ ifdef CONFIG_BIGMAC_OPT_STD_NETLINK
+ CFLAGS += -DSTD_NETLINK_SUPPORT
+ endif
+
+ OBJS_D += driver_smac.o
+
ifdef CONFIG_DNET_PCAP
CFLAGS += -DUSE_DNET_PCAP
ifdef CONFIG_WINCAP

**********************


make

As per the instructions I have to run
make clean
make all
make install
and then proceed with downloading the wpa_supplicant.

I get the error
" *** No rule to make target 'clean'. Stop"
" *** No rule to make target 'all'. Stop"
" *** No rule to make target 'install'. Stop"

Any suggestions ?? Thank you for all the help
 
Old 02-20-2007, 01:00 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
You had suggested that I give you the "user control panel info like distribution, release and such".
No, I said enter your distro and release inf in your LQ user info.
The control panel link is in the right under "My LQ".


At the risk of sounding dumb
No such thing as dumb questions: *not* asking, that's dumb.


could you tell me how I can get these details from my system ?
Easiest is to do "ls /etc/*-release" and see what turns up. Usually it's /etc/"distributionname"-release except for for example TRUSTIX (/etc/release) and Debian (/etc/debian_version).


make
Like I said before: running "make" without patching the source it first won't help you much ;-p


Makefile.rej
If you look at it you'll notice lines with a "plus" in front. Usually you'll see plusses and minusses. Only plusses is nice since it literally means you'll only have to add those lines to the Makefile. Open up your Makefile in a text editor, locate the four
Code:
OBJS_d += driver_test.o
endif

# paste here
ifdef CONFIG_DNET_PCAP
CFLAGS += -DUSE_DNET_PCAP
lines and paste the lines with the plusses in between them. Remove the plus signs and you should be done and *now* you can run "make".
 
  


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
wpa_supplicant GrayGhost Slackware 10 01-08-2007 02:23 PM
wpa_supplicant addisonzinser Slackware 0 02-04-2006 12:12 AM
wpa_supplicant hosler Slackware 7 01-25-2006 04:48 PM
wpa_supplicant (AGAIN) gbergeson Linux - Laptop and Netbook 10 08-03-2005 08:28 AM
WPA_Supplicant Fraudulent Linux - Wireless Networking 0 10-04-2004 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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