Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do you compile PCMCIA drivers?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
anarchron
n00b
n00b


Joined: 13 Jul 2003
Posts: 38

PostPosted: Sun Aug 31, 2003 7:48 am    Post subject: How do you compile PCMCIA drivers? Reply with quote

Hi guys, I've just recently bought a new 3Com wireless PCMCIA card that was supposed to have good linux compatibility. It uses the Poldhu chipset. The problem comes when I try to compile the driver as it will spew out this error message:

Code:


scripts/setup.sh: line 1: which: command not found
Kernel Version Running 2.6.0-test4-mm2
Found Kernel Source Directory (/lib/modules/2.6.0-test4-mm2/build)
set -e ; for d in clients config  ; do make -C $d ; done
make[1]: Entering directory `/usr/src/poldhu/clients'
gcc  -MD -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing  -D__KERNEL__ -DMODULE -I/lib/modules/2.6.0-test4-mm2/build/include -I/lib/modules/2.6.0-test4-mm2/build/include  -I/lib/modules/2.6.0-test4-mm2/build/arch/i386/mach-generic  -c poldhu.c
In file included from /lib/modules/2.6.0-test4-mm2/build/include/linux/irq.h:20,                 from /lib/modules/2.6.0-test4-mm2/build/include/asm/hardirq.h:6,
                 from /lib/modules/2.6.0-test4-mm2/build/include/linux/interrupt.h:10,
                 from /lib/modules/2.6.0-test4-mm2/build/include/linux/netdevice.h:494,
                 from poldhu.c:46:
/lib/modules/2.6.0-test4-mm2/build/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /lib/modules/2.6.0-test4-mm2/build/include/asm/hardirq.h:6,
                 from /lib/modules/2.6.0-test4-mm2/build/include/linux/interrupt.h:10,
                 from /lib/modules/2.6.0-test4-mm2/build/include/linux/netdevice.h:494,
                 from poldhu.c:46:
/lib/modules/2.6.0-test4-mm2/build/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /lib/modules/2.6.0-test4-mm2/build/include/linux/irq.h:72,                 from /lib/modules/2.6.0-test4-mm2/build/include/asm/hardirq.h:6,
                 from /lib/modules/2.6.0-test4-mm2/build/include/linux/interrupt.h:10,
                 from /lib/modules/2.6.0-test4-mm2/build/include/linux/netdevice.h:494,
                 from poldhu.c:46:
/lib/modules/2.6.0-test4-mm2/build/include/asm/hw_irq.h:28: error: `NR_IRQS' undeclared here (not in a function)
/lib/modules/2.6.0-test4-mm2/build/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
poldhu.c:228: warning: static declaration for `cs_error' follows non-static
poldhu.c: In function `poldhu_pcmcia_attach':
poldhu.c:586: error: structure has no member named `release'
poldhu.c:587: error: structure has no member named `release'
poldhu.c: In function `poldhu_pcmcia_detach':
poldhu.c:700: warning: comparison of distinct pointer types lacks a cast
poldhu.c:703: error: structure has no member named `release'
poldhu.c:706: warning: comparison of distinct pointer types lacks a cast
poldhu.c: In function `poldhu_pcmcia_event':
poldhu.c:1109: error: structure has no member named `release'
poldhu.c:1110: error: structure has no member named `release'
poldhu.c: In function `poldhu_open':
poldhu.c:1240: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.0-test4-mm2/build/include/linux/module.h:482)
poldhu.c: In function `poldhu_close':
poldhu.c:1520: error: structure has no member named `release'
poldhu.c:1522: error: structure has no member named `release'
poldhu.c:1525: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.6.0-test4-mm2/build/include/linux/module.h:494)
poldhu.c: In function `poldhu_proc_read':
poldhu.c:2738: warning: comparison of distinct pointer types lacks a cast
poldhu.c: In function `init_poldhu_cs':
poldhu.c:2756: warning: implicit declaration of function `register_pccard_driver'
poldhu.c: In function `exit_poldhu_cs':
poldhu.c:2775: warning: implicit declaration of function `unregister_pccard_driver'
make[1]: *** [poldhu.o] Error 1
make[1]: Leaving directory `/usr/src/poldhu/clients'
make: *** [all] Error 2


Any ideas on how to get this driver to compile? I've always had some problems compiling PCMCIA drivers. Any help would be appreciated greatly

Thanks
Back to top
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Wed Sep 03, 2003 6:29 pm    Post subject: Reply with quote

Have you tried compiling against a 2.4 kernel? Your driver may not be 2.6-ready.
Back to top
View user's profile Send private message
Spida
Tux's lil' helper
Tux's lil' helper


Joined: 08 Feb 2003
Posts: 97
Location: Germany

PostPosted: Thu Sep 04, 2003 8:35 am    Post subject: Reply with quote

See this Post for something about poldhu.
I couldn't get it to work on my laptop, because its slot is pcmcia 5V only and the card won't activate its radio without 3,3V (everything else works, though *g*).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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