|
|
Home Linux and 3G Forum
|
|
PHARscape 3G Datacards and Linux
|
| View previous topic :: View next topic |
| Author |
Message |
TypeRite
Joined: 09 Oct 2006 Posts: 3 Location: Manila

|
Posted: Fri Feb 01, 2008 4:12 am Post subject: Error Compiling 2.21alpha with Linux 2.6.24 |
|
|
Hi,
I just upgraded from Linux 2.6.23 to 2.6.24 and now am unable to compile nozomi 2.21alpha 060917. I get the following error:
| Code: | make -C /lib/modules/2.6.24/build SUBDIRS=nozomi_2.21alpha_060917 modules
make[1]: Entering directory `linux-2.6.24'
CC [M] nozomi_2.21alpha_060917/nozomi.o
nozomi_2.21alpha_060917/nozomi.c: In function 'interrupt_handler':
nozomi_2.21alpha_060917/nozomi.c:1403: warning: cast from pointer to integer of different size
nozomi_2.21alpha_060917/nozomi.c: In function 'nozomi_setup_interrupt':
nozomi_2.21alpha_060917/nozomi.c:1516: error: 'SA_SHIRQ' undeclared (first use in this function)
nozomi_2.21alpha_060917/nozomi.c:1516: error: (Each undeclared identifier is reported only once
nozomi_2.21alpha_060917/nozomi.c:1516: error: for each function it appears in.)
nozomi_2.21alpha_060917/nozomi.c:1517: warning: passing argument 2 of 'request_irq' from incompatible pointer type
nozomi_2.21alpha_060917/nozomi.c: In function 'nozomi_card_init':
nozomi_2.21alpha_060917/nozomi.c:1740: warning: assignment from incompatible pointer type
nozomi_2.21alpha_060917/nozomi.c: At top level:
nozomi_2.21alpha_060917/nozomi.c:2330: warning: initialization from incompatible pointer type
nozomi_2.21alpha_060917/nozomi.c: In function 'ntty_tty_init':
nozomi_2.21alpha_060917/nozomi.c:2365: warning: assignment from incompatible pointer type
nozomi_2.21alpha_060917/nozomi.c:2366: warning: assignment from incompatible pointer type
make[2]: *** [nozomi_2.21alpha_060917/nozomi.o] Error 1
make[1]: *** [_module_nozomi_2.21alpha_060917] Error 2
make[1]: Leaving directory `linux-2.6.24'
make: *** [default] Error 2 |
Any tips, please? Thank you very much. |
|
| Back to top |
|
 |
Zhenech
Joined: 01 Feb 2008 Posts: 2

|
|
| Back to top |
|
 |
TypeRite
Joined: 09 Oct 2006 Posts: 3 Location: Manila

|
Posted: Fri Feb 01, 2008 9:27 am Post subject: |
|
|
| That worked perfectly. Thank you very much. |
|
| Back to top |
|
 |
szp@k
Joined: 10 Mar 2008 Posts: 2

|
Posted: Mon Mar 10, 2008 9:29 pm Post subject: Re: Error Compiling 2.21alpha with Linux 2.6.24 |
|
|
According to that debian patch, you have to replace these lines about line 1516in nozomi.c:
if ((rval =
request_irq(pdev->irq, &interrupt_handler, SA_SHIRQ, NOZOMI_NAME,
pdev))) {
with these:
if ((rval =
request_irq(pdev->irq, &interrupt_handler, IRQF_SHARED, NOZOMI_NAME,
pdev))) {
in order to compile nozomi under the kernel 2.6.24.
SA_SHIRQ was deprecated and i was removed in the kernel 2.6.24.
Checked under Fedora 8 kernel 2.6.24.3-12.fc8 - works fine.
Only warnings while compiling:
[root@szpak nozomi_2.21alpha_060917]# make
Warning: Compiling for 2.6:
make -C /lib/modules/2.6.24.3-12.fc8/build SUBDIRS=/home/marcin/Install/nozomi_2.21alpha_060917 modules
make[1]: Wejście do katalogu `/usr/src/kernels/2.6.24.3-12.fc8-i686'
CC [M] /home/szpak/Install/nozomi_2.21alpha_060917/nozomi.o
/home/szpak/Install/nozomi_2.21alpha_060917/nozomi.c: In function ‘nozomi_setup_interrupt’:
/home/szpak/Install/nozomi_2.21alpha_060917/nozomi.c:1517: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/home/szpak/Install/nozomi_2.21alpha_060917/nozomi.c: In function ‘nozomi_card_init’:
/home/szpak/Install/nozomi_2.21alpha_060917/nozomi.c:1683: warning: cast to pointer from integer of different size
/home/szpak/Install/nozomi_2.21alpha_060917/nozomi.c:1736: warning: assignment from incompatible pointer type
/home/szpak/Install/nozomi_2.21alpha_060917/nozomi.c:1742: warning: overflow in implicit constant conversion
/home/szpak/Install/nozomi_2.21alpha_060917/nozomi.c: At top level:
/home/szpak/Install/nozomi_2.21alpha_060917/nozomi.c:2326: warning: initialization from incompatible pointer type
/home/szpak/Install/nozomi_2.21alpha_060917/nozomi.c: In function ‘ntty_tty_init’:
/home/szpak/Install/nozomi_2.21alpha_060917/nozomi.c:2361: warning: assignment from incompatible pointer type
/home/szpak/Install/nozomi_2.21alpha_060917/nozomi.c:2362: warning: assignment from incompatible pointer type
Building modules, stage 2.
MODPOST 1 modules
CC /home/szpak/Install/nozomi_2.21alpha_060917/nozomi.mod.o
LD [M] /home/szpak/Install/nozomi_2.21alpha_060917/nozomi.ko
make[1]: Opuszczenie katalogu `/usr/src/kernels/2.6.24.3-12.fc8-i686'
But after "make install" works fine. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
|
|
|
|