LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Compiling ieee80211 (8.04) & shutdown problems (7.10) (https://www.linuxquestions.org/questions/ubuntu-63/compiling-ieee80211-8-04-and-shutdown-problems-7-10-a-644943/)

khh 05-26-2008 06:28 PM

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?

syg00 05-26-2008 06:47 PM

2.6.22 merged the mac80211 code into mainline - are you sure you need this on Hardy ???.

khh 05-27-2008 09:28 AM

Quote:

Originally Posted by syg00 (Post 3165430)
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.

knudfl 05-27-2008 11:06 AM

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'

khh 05-27-2008 12:27 PM

Quote:

Originally Posted by knudfl (Post 3166043)
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.

knudfl 05-29-2008 05:31 AM

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

khh 05-29-2008 05:35 AM

Well, I avoided the problem and downgraded to 7.10 again.

But does anyone have any suggestions about the shutdown thing?

Gasoile 06-07-2008 03:43 PM

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

knudfl 06-09-2008 08:27 AM

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

Rgds

ramblachiri 09-16-2008 03:49 AM

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


All times are GMT -5. The time now is 05:42 AM.