LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 05-26-2008, 06:28 PM   #1
khh
LQ Newbie
 
Registered: May 2008
Location: Norway
Distribution: Kubuntu 7.10 (downgraded from 8.04)
Posts: 5

Rep: Reputation: 0
Compiling ieee80211 (8.04) & shutdown problems (7.10)


I have a server running ubuntu 7.10 and a laptop running Kubuntu 8.04.

Firstly:
The trouble I'm having is when I'm trying to compile ieee80211.
Yes, I've installed the kernel headers, and yes, I've installed the kernel source.
I've been able to build many other applications, so that's not it.
I've got the build-essentials package (only spelled correctly).
Under I've copied the content from the terminal when trying to build iee80211.

Code:
khh@Unknown:~/ieee80211-1.2.18$ make
Makefile:17:
Makefile:18: WARNING: $SHELL not set to bash.
Makefile:19: If you experience build errors, try
Makefile:20: 'make SHELL=/bin/bash'.
Makefile:21:
Checking in /lib/modules/2.6.24-16-generic for ieee80211 components...
make -C /lib/modules/2.6.24-16-generic/build M=/home/khh/ieee80211-1.2.18 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
/home/khh/ieee80211-1.2.18/Makefile:17:
/home/khh/ieee80211-1.2.18/Makefile:18: WARNING: $SHELL not set to bash.
/home/khh/ieee80211-1.2.18/Makefile:19: If you experience build errors, try
/home/khh/ieee80211-1.2.18/Makefile:20: 'make SHELL=/bin/bash'.
/home/khh/ieee80211-1.2.18/Makefile:21:
  CC [M]  /home/khh/ieee80211-1.2.18/ieee80211_module.o
/home/khh/ieee80211-1.2.18/ieee80211_module.c: In function ‘ieee80211_init’:
/home/khh/ieee80211-1.2.18/ieee80211_module.c:268: error: ‘proc_net’ undeclared (first use in this function)
/home/khh/ieee80211-1.2.18/ieee80211_module.c:268: error: (Each undeclared identifier is reported only once
/home/khh/ieee80211-1.2.18/ieee80211_module.c:268: error: for each function it appears in.)
/home/khh/ieee80211-1.2.18/ieee80211_module.c: In function ‘ieee80211_exit’:
/home/khh/ieee80211-1.2.18/ieee80211_module.c:297: error: ‘proc_net’ undeclared (first use in this function)
{standard input}: Assembler messages:
{standard input}:9: Warning: can't open .lst: Permission denied
GAS LISTING                     page 1


   1                    .file "ieee80211_module.c"
   9                    .Ltext0:

GAS LISTING                     page 2


DEFINED SYMBOLS
                            *ABS*:0000000000000000 ieee80211_module.c

NO UNDEFINED SYMBOLS
make[2]: *** [/home/khh/ieee80211-1.2.18/ieee80211_module.o] Error 1
make[1]: *** [_module_/home/khh/ieee80211-1.2.18] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
make: *** [modules] Error 2

khh@Unknown:~/ieee80211-1.2.18$ make SHELL=/bin/bash
Checking in /lib/modules/2.6.24-16-generic for ieee80211 components...
make -C /lib/modules/2.6.24-16-generic/build M=/home/khh/ieee80211-1.2.18 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
  CC [M]  /home/khh/ieee80211-1.2.18/ieee80211_module.o
/home/khh/ieee80211-1.2.18/ieee80211_module.c: In function ‘ieee80211_init’:
/home/khh/ieee80211-1.2.18/ieee80211_module.c:268: error: ‘proc_net’ undeclared (first use in this function)
/home/khh/ieee80211-1.2.18/ieee80211_module.c:268: error: (Each undeclared identifier is reported only once
/home/khh/ieee80211-1.2.18/ieee80211_module.c:268: error: for each function it appears in.)
/home/khh/ieee80211-1.2.18/ieee80211_module.c: In function ‘ieee80211_exit’:
/home/khh/ieee80211-1.2.18/ieee80211_module.c:297: error: ‘proc_net’ undeclared (first use in this function)
{standard input}: Assembler messages:
{standard input}:9: Warning: can't open .lst: Permission denied
GAS LISTING                     page 1


   1                    .file "ieee80211_module.c"
   9                    .Ltext0:

GAS LISTING                     page 2


DEFINED SYMBOLS
                            *ABS*:0000000000000000 ieee80211_module.c

NO UNDEFINED SYMBOLS
make[2]: *** [/home/khh/ieee80211-1.2.18/ieee80211_module.o] Error 1
make[1]: *** [_module_/home/khh/ieee80211-1.2.18] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
make: *** [modules] Error 2

khh@Unknown:~/ieee80211-1.2.18$ sudo make
[sudo] password for khh:
Makefile:17:
Makefile:18: WARNING: $SHELL not set to bash.
Makefile:19: If you experience build errors, try
Makefile:20: 'make SHELL=/bin/bash'.
Makefile:21:
Checking in /lib/modules/2.6.24-16-generic for ieee80211 components...
make -C /lib/modules/2.6.24-16-generic/build M=/home/khh/ieee80211-1.2.18 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
/home/khh/ieee80211-1.2.18/Makefile:17:
/home/khh/ieee80211-1.2.18/Makefile:18: WARNING: $SHELL not set to bash.
/home/khh/ieee80211-1.2.18/Makefile:19: If you experience build errors, try
/home/khh/ieee80211-1.2.18/Makefile:20: 'make SHELL=/bin/bash'.
/home/khh/ieee80211-1.2.18/Makefile:21:
  CC [M]  /home/khh/ieee80211-1.2.18/ieee80211_module.o
/home/khh/ieee80211-1.2.18/ieee80211_module.c: In function ‘ieee80211_init’:
/home/khh/ieee80211-1.2.18/ieee80211_module.c:268: error: ‘proc_net’ undeclared (first use in this function)
/home/khh/ieee80211-1.2.18/ieee80211_module.c:268: error: (Each undeclared identifier is reported only once
/home/khh/ieee80211-1.2.18/ieee80211_module.c:268: error: for each function it appears in.)
/home/khh/ieee80211-1.2.18/ieee80211_module.c: In function ‘ieee80211_exit’:
/home/khh/ieee80211-1.2.18/ieee80211_module.c:297: error: ‘proc_net’ undeclared (first use in this function)
make[2]: *** [/home/khh/ieee80211-1.2.18/ieee80211_module.o] Error 1
make[1]: *** [_module_/home/khh/ieee80211-1.2.18] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
make: *** [modules] Error 2

khh@Unknown:~/ieee80211-1.2.18$ sudo make SHELL=/bin/bash
Checking in /lib/modules/2.6.24-16-generic for ieee80211 components...
make -C /lib/modules/2.6.24-16-generic/build M=/home/khh/ieee80211-1.2.18 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
  CC [M]  /home/khh/ieee80211-1.2.18/ieee80211_module.o
/home/khh/ieee80211-1.2.18/ieee80211_module.c: In function ‘ieee80211_init’:
/home/khh/ieee80211-1.2.18/ieee80211_module.c:268: error: ‘proc_net’ undeclared (first use in this function)
/home/khh/ieee80211-1.2.18/ieee80211_module.c:268: error: (Each undeclared identifier is reported only once
/home/khh/ieee80211-1.2.18/ieee80211_module.c:268: error: for each function it appears in.)
/home/khh/ieee80211-1.2.18/ieee80211_module.c: In function ‘ieee80211_exit’:
/home/khh/ieee80211-1.2.18/ieee80211_module.c:297: error: ‘proc_net’ undeclared (first use in this function)
make[2]: *** [/home/khh/ieee80211-1.2.18/ieee80211_module.o] Error 1
make[1]: *** [_module_/home/khh/ieee80211-1.2.18] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
make: *** [modules] Error 2
khh@Unknown:~/ieee80211-1.2.18$
Now, this makes it look as if there's something wrong with the source code of this application, but this is not the case. I tried compiling the it on my server (7.10), and it worked perfectly.

Any help would be greatly appreciated.

Secondly:
I am unable to turn off or reboot my server (7.10). When I send it the "sudo reboot" command using ssh, it spews back the message
"Broadcast message from khh@ravn
(/dev/pts/0) at 1:15 ...

The system is going down for reboot NOW!"
But it doesn't even close the ssh connection. When I try using "sudo shutdown now", the system becomes unresponsive but it is not turned off. The same thing happen even if i use the -P switch.

Any idea how to fix this?
 
Old 05-26-2008, 06:47 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,265

Rep: Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027
2.6.22 merged the mac80211 code into mainline - are you sure you need this on Hardy ???.
 
Old 05-27-2008, 09:28 AM   #3
khh
LQ Newbie
 
Registered: May 2008
Location: Norway
Distribution: Kubuntu 7.10 (downgraded from 8.04)
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
2.6.22 merged the mac80211 code into mainline - are you sure you need this on Hardy ???.
Yes, I want to compile the ipw2200 driver, and it is quite impossible without first compiling and installing ieee80211.
 
Old 05-27-2008, 11:06 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,621

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
All the ieee80211 modules seems to be in 7.10 (probably also in 8.04) ref. syg00
(You can try 'find /lib/modules/ -name "ieee80211*" ')
The package 'ieee80211-1.2.18' compiles with no problems on 7.10.
...The command is not 'make'? Try 'sudo make'
 
Old 05-27-2008, 12:27 PM   #5
khh
LQ Newbie
 
Registered: May 2008
Location: Norway
Distribution: Kubuntu 7.10 (downgraded from 8.04)
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
All the ieee80211 modules seems to be in 7.10 (probably also in 8.04) ref. syg00
(You can try 'find /lib/modules/ -name "ieee80211*" ')
The package 'ieee80211-1.2.18' compiles with no problems on 7.10.
...The command is not 'make'? Try 'sudo make'
Yes, I know it compiles perfectly on 7.10 I've tried. But it does not do so on 8.04.
Also, I've all ready tried with sudo make. Scroll down the code window, and you'll see the response I got.
 
Old 05-29-2008, 05:31 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,621

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
The compiler is newer on 8.04, and probably a little less tolerant
with "not perfect code". I get the same result:
Code:
../ieee80211_module.c: In function ‘ieee80211_init’:
../ieee80211-1.2.18/ieee80211_module.c:268: error: ‘proc_net’ undeclared
So please ask somebody to rewrite "line 268" in ieee80211_module.c
Rgds
 
Old 05-29-2008, 05:35 AM   #7
khh
LQ Newbie
 
Registered: May 2008
Location: Norway
Distribution: Kubuntu 7.10 (downgraded from 8.04)
Posts: 5

Original Poster
Rep: Reputation: 0
Well, I avoided the problem and downgraded to 7.10 again.

But does anyone have any suggestions about the shutdown thing?
 
Old 06-07-2008, 03:43 PM   #8
Gasoile
LQ Newbie
 
Registered: Jun 2008
Location: Portugal
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
Code:
root@gasoileasus:/home/gasoile/Desktop/Wirless/ieee80211-1.2.18# make
Makefile:17: 
Makefile:18: WARNING: $SHELL not set to bash.
Makefile:19: If you experience build errors, try
Makefile:20: 'make SHELL=/bin/bash'.
Makefile:21: 
Checking in /lib/modules/2.6.24-18-generic for ieee80211 components...
make -C /lib/modules/2.6.24-18-generic/build M=/home/gasoile/Desktop/Wirless/ieee80211-1.2.18 modules
make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.24-18-generic'
/home/gasoile/Desktop/Wirless/ieee80211-1.2.18/Makefile:17: 
/home/gasoile/Desktop/Wirless/ieee80211-1.2.18/Makefile:18: WARNING: $SHELL not set to bash.
/home/gasoile/Desktop/Wirless/ieee80211-1.2.18/Makefile:19: If you experience build errors, try
/home/gasoile/Desktop/Wirless/ieee80211-1.2.18/Makefile:20: 'make SHELL=/bin/bash'.
/home/gasoile/Desktop/Wirless/ieee80211-1.2.18/Makefile:21: 
  CC [M]  /home/gasoile/Desktop/Wirless/ieee80211-1.2.18/ieee80211_module.o
/home/gasoile/Desktop/Wirless/ieee80211-1.2.18/ieee80211_module.c: Na função ‘ieee80211_init’:
/home/gasoile/Desktop/Wirless/ieee80211-1.2.18/ieee80211_module.c:268: erro: ‘proc_net’ undeclared (first use in this function)
/home/gasoile/Desktop/Wirless/ieee80211-1.2.18/ieee80211_module.c:268: erro: (Each undeclared identifier is reported only once
/home/gasoile/Desktop/Wirless/ieee80211-1.2.18/ieee80211_module.c:268: erro: for each function it appears in.)
/home/gasoile/Desktop/Wirless/ieee80211-1.2.18/ieee80211_module.c: Na função ‘ieee80211_exit’:
/home/gasoile/Desktop/Wirless/ieee80211-1.2.18/ieee80211_module.c:297: erro: ‘proc_net’ undeclared (first use in this function)
make[2]: ** [/home/gasoile/Desktop/Wirless/ieee80211-1.2.18/ieee80211_module.o] Erro 1
make[1]: ** [_module_/home/gasoile/Desktop/Wirless/ieee80211-1.2.18] Erro 2
make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.24-18-generic'
make: ** [modules] Erro 2
I'm with the same problem, and i want to keep Ubuntu 8.04!

Any idea??

Thanks
 
Old 06-09-2008, 08:27 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,621

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
Ref #6 : suggest : start a new thread with the question
'rewrite "line 268" in ieee80211_module.c'

Rgds
 
Old 09-16-2008, 03:49 AM   #10
ramblachiri
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
Solution

First in ieee80211.module.c change proc_net for init_net.proc_net.
Next change in ieee80211_crypt_wep.c and ieee80211_crypt_tkip.c .page for .page_link

Bay
 
  


Reply

Tags
error, ieee80211, reboot, shutdown, trouble, ubuntu


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
ieee80211 install problems I am Jon's Liver Linux - Wireless Networking 20 07-19-2008 09:04 AM
External mouse & Shutdown problems on Fiesty fawn Danteleo Linux - Laptop and Netbook 0 04-11-2007 05:15 PM
Problems installing ipw3945 and ieee80211 yttrium88 Linux - Newbie 3 10-31-2006 11:22 PM
ieee80211 install problems FC4 pvtpilot Linux - Wireless Networking 3 10-30-2005 09:25 AM
Busy CDROM, shutdown problems & floppy format jefftrwmy Linux - Newbie 1 04-16-2002 08:30 PM


All times are GMT -5. The time now is 08:05 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration