spacer
spacer search

PHARscape
Phar enough!

Search
spacer
header
Main Menu
Home
Linux and 3G
Linux and 3G Forum
Python Stuff
Pictures
Astronomy
Links
Contacting Me
Search
Mambo License
About
Syndicate
Lunarpages.com Web Hosting
 
Home arrow Linux and 3G Forum

PHARscape
3G Datacards and Linux
 
  FAQFAQ    SearchSearch  RegisterRegister 
   Log inLog in 

Error Compiling 2.21alpha with Linux 2.6.24

 
Post new topic   Reply to topic    PHARscape Forum Index -> Drivers
View previous topic :: View next topic  
Author Message
TypeRite



Joined: 09 Oct 2006
Posts: 3
Location: Manila

philippines.gif
PostPosted: Fri Feb 01, 2008 4:12 am    Post subject: Error Compiling 2.21alpha with Linux 2.6.24 Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Zhenech



Joined: 01 Feb 2008
Posts: 2

blank.gif
PostPosted: Fri Feb 01, 2008 9:14 am    Post subject: Reply with quote

You will need a patch, as some deprecaed interfaces were dropped in 2.6.24, see my patch for 2.1 at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=463306

Regards
Back to top
View user's profile Send private message
TypeRite



Joined: 09 Oct 2006
Posts: 3
Location: Manila

philippines.gif
PostPosted: Fri Feb 01, 2008 9:27 am    Post subject: Reply with quote

Zhenech wrote:
You will need a patch, as some deprecaed interfaces were dropped in 2.6.24, see my patch for 2.1 at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=463306

Regards
That worked perfectly. Thank you very much.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
szp@k



Joined: 10 Mar 2008
Posts: 2

poland.gif
PostPosted: Mon Mar 10, 2008 9:29 pm    Post subject: Re: Error Compiling 2.21alpha with Linux 2.6.24 Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PHARscape Forum Index -> Drivers All times are GMT
Page 1 of 1

 
Jump to:  
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


phpBB component by Adam van Dongen. Based on phpBB © 2001, 2002 phpBB Group
spacer

 
Copyright 2000 - 2005 Miro International Pty Ltd. All rights reserved.
Mambo is Free Software released under the GNU/GPL License.
spacer