Problem building non-kernel pcmcia drivers with Prism2-2002-04-21
From: David L. Sifry (dsifry_at_sputnik.com)
Date: 2002-04-21 21:27:48 UTC
I'm having a problem building hostap_cs.o when using 2.4.18 (stock) and
pcmcia-cs when not using kernel-based PCMCIA. I tried building the
module using the recommendations in the README file with both
pcmcia-cs-3.1.33 and pcmcia-cs-3.1.31 (which is the one described in the
readme) but neither successfully built.
Has anyone gotten pcmcia-cs to build a correct hostap_cs.o?
Here's the results of 'make config' for pcmcia-cs-3.1.33:
# make config
- Linux PCMCIA Configuration Script --------
The default responses for each question are correct for most users.
Consult the PCMCIA-HOWTO for additional info about each option.
Linux source directory [/usr/src/linux]:
The kernel source tree is version 2.4.18.
The current kernel build date is Wed Mar 13 17:01:35 2002.
Build 'trusting' versions of card utilities (y/n) [n]: y
Include 32-bit (CardBus) card support (y/n) [y]: y
Include PnP BIOS resource checking (y/n) [n]: y
Module install directory [/lib/modules/2.4.18]:
Kernel configuration options:
Kernel-tree PCMCIA support is disabled.
Symmetric multiprocessing support is disabled.
PCI BIOS support is enabled.
Power management (APM) support is enabled.
SCSI support is disabled.
IEEE 1394 (FireWire) support is disabled.
Networking support is enabled.
Radio network interface support is enabled.
Token Ring device support is disabled.
Fast switching is disabled.
Frame Diverter is disabled.
Module version checking is enabled.
Kernel debugging support is disabled.
Preemptive kernel patch is disabled.
/proc filesystem support is enabled.
It looks like you have a System V init file setup.
X Windows include files not installed.
If you wish to build the 'cardinfo' control panel, you need the
Forms
library and the X Windows include files. See the HOWTO for details.
Configuration successful.
And below is the relevant portion of the results of 'make all' in the
pcmcia-cs-3.1.33 directory:
make -C modules MODULES=hostap_cs.o
make[2]: Entering directory `/usr/src/pcmcia-cs-3.1.33/modules'
cc -MD -O2 -Wall -Wstrict-prototypes -pipe -I../include
-I/usr/src/linux/include -D__KERNEL__ -DMODULE -c hostap_cs.c
In file included from ../include/asm/uaccess.h:49,
from ../include/pcmcia/k_compat.h:119,
from hostap_cs.c:30:
/usr/src/linux/include/asm/uaccess.h: In function `verify_area':
/usr/src/linux/include/asm/uaccess.h:64: `boot_cpu_data_R0657d037'
undeclared (first use in this function)
/usr/src/linux/include/asm/uaccess.h:64: (Each undeclared identifier is
reported only once
/usr/src/linux/include/asm/uaccess.h:64: for each function it appears
in.)
/usr/src/linux/include/asm/uaccess.h:65: warning: control reaches end of
non-void function
/usr/src/linux/include/asm/uaccess.h: In function
`__constant_copy_to_user':
/usr/src/linux/include/asm/uaccess.h:550: `boot_cpu_data_R0657d037'
undeclared (first use in this function)
/usr/src/linux/include/asm/uaccess.h: In function
`__constant_copy_from_user':
/usr/src/linux/include/asm/uaccess.h:558: `boot_cpu_data_R0657d037'
undeclared (first use in this function)
In file included from /usr/src/linux/include/linux/highmem.h:5,
from /usr/src/linux/include/linux/skbuff.h:27,
from /usr/src/linux/include/linux/netdevice.h:146,
from ../include/linux/netdevice.h:29,
from /usr/src/linux/include/net/sock.h:53,
from hostap_cs.c:45:
/usr/src/linux/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/src/linux/include/asm/pgalloc.h:78: `boot_cpu_data_R0657d037'
undeclared (first use in this function)
/usr/src/linux/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/src/linux/include/asm/pgalloc.h:89: `boot_cpu_data_R0657d037'
undeclared (first use in this function)
/usr/src/linux/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/src/linux/include/asm/pgalloc.h:122: `boot_cpu_data_R0657d037'
undeclared (first use in this function)
/usr/src/linux/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/src/linux/include/asm/pgalloc.h:132: `boot_cpu_data_R0657d037'
undeclared (first use in this function)
In file included from hostap_cs.c:45:
/usr/src/linux/include/net/sock.h: In function `sock_recv_timestamp':
/usr/src/linux/include/net/sock.h:1268: warning: implicit declaration of
function `put_cmsg_Rf39bf4d9'
In file included from ../include/linux/vmalloc.h:7,
from /usr/src/linux/include/asm/io.h:46,
from ../include/asm/io.h:5,
from prism2.c:40,
from hostap_cs.c:81:
/usr/src/linux/include/linux/vmalloc.h: In function `vmalloc':
/usr/src/linux/include/linux/vmalloc.h:35: `boot_cpu_data_R0657d037'
undeclared (first use in this function)
/usr/src/linux/include/linux/vmalloc.h: In function `vmalloc_dma':
/usr/src/linux/include/linux/vmalloc.h:44: `boot_cpu_data_R0657d037'
undeclared (first use in this function)
/usr/src/linux/include/linux/vmalloc.h: In function `vmalloc_32':
/usr/src/linux/include/linux/vmalloc.h:53: `boot_cpu_data_R0657d037'
undeclared (first use in this function)
In file included from hostap_cs.c:81:
prism2.c: In function `hfa384x_cmd':
prism2.c:227: warning: implicit declaration of function
`printk_R1b7d4074'
prism2.c: In function `prism2_close':
prism2.c:1153: warning: implicit declaration of function
`mod_timer_R1f13d309'
prism2.c: In function `prism2_wds_add':
prism2.c:2629: warning: implicit declaration of function
`sprintf_R1d26aa98'
In file included from prism2.c:3367,
from hostap_cs.c:81:
prism2_ap.c: In function `ap_handle_timer':
prism2_ap.c:220: warning: implicit declaration of function
`add_timer_Ra19eacf8'
prism2_ap.c: In function `ap_free_data':
prism2_ap.c:326: warning: implicit declaration of function
`del_timer_Rfc62f16d'
hostap_cs.c: In function `prism2_pccard_cor_sreset':
hostap_cs.c:109: warning: implicit declaration of function
`CardServices_Re4eef0a4'
hostap_cs.c: In function `init_prism2_pccard':
hostap_cs.c:684: warning: implicit declaration of function
`register_pccard_driver_R583d4ed2'
hostap_cs.c: In function `exit_prism2_pccard':
hostap_cs.c:692: warning: implicit declaration of function
`unregister_pccard_driver_Rdb348cd2'
make[2]: *** [hostap_cs.o] Error 1
make[2]: Leaving directory `/usr/src/pcmcia-cs-3.1.33/modules'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/pcmcia-cs-3.1.33'
--
David L. Sifry dsifry_at_sputnik.com
Cofounder and Chief Technology Officer Sputnik Incorporated
Phone: 408.497.3120 Fax: 415.354.3342
Roam for free when you share 802.11 bandwidth: http://www.sputnik.com/
This archive was generated by
hypermail 2.1.4.