[Prism54-users] Trouble compiling with 2.6-test9

Ed Herr ed.herr@charter.net
Sun, 2 Nov 2003 15:03:14 -0600


Indeed... and when I tried compiling as a modules (prism54.ko), I got  
an error something along the line of "no rules to make prism54.o....".  
I am guessing there is some issue with the Makefiles and the versions  
of development tools I am using.

gcc version 3.3.2 (Debian)
GNU Make 3.80
linux-2.6.0-test9 with patch bk7 and prism54-CVS-2003-11-02 applied.

The workaround I am using is to copy *.h and *.c (header and C files)  
from {kernel directory}/drivers/net/wireless/prism54 to {kernel  
directory}/drivers/net/wireless and then alter the makefile in {kernel  
directory}/drivers/net/wireless.

Here's the quick and dirty (wireless) Makefile from my kernel (test9- 
bk7):

#
# Makefile for the Linux Wireless network device drivers.
#

obj-$(CONFIG_STRIP) += strip.o
obj-$(CONFIG_ARLAN) += arlan.o

arlan-objs := arlan-main.o arlan-proc.o

# Obsolete cards
obj-$(CONFIG_WAVELAN)		+= wavelan.o
obj-$(CONFIG_PCMCIA_NETWAVE)	+= netwave_cs.o
obj-$(CONFIG_PCMCIA_WAVELAN)	+= wavelan_cs.o

obj-$(CONFIG_HERMES)		+= orinoco.o hermes.o
obj-$(CONFIG_PCMCIA_HERMES)	+= orinoco_cs.o
obj-$(CONFIG_APPLE_AIRPORT)	+= airport.o
obj-$(CONFIG_PLX_HERMES)	+= orinoco_plx.o
obj-$(CONFIG_PCI_HERMES)	+= orinoco_pci.o
obj-$(CONFIG_TMD_HERMES)	+= orinoco_tmd.o

obj-$(CONFIG_AIRO)		+= airo.o
obj-$(CONFIG_AIRO_CS)		+= airo_cs.o airo.o

obj-$(CONFIG_PRISM54)		+= prism54.o
prism54-objs := isl_gen.o  islpci_eth.o islpci_mgt.o \
                isl_38xx.o isl_ioctl.o islpci_dev.o islpci_hotplug.o

# 16-bit wireless PCMCIA client drivers
obj-$(CONFIG_PCMCIA_RAYCS)	+= ray_cs.o
obj-$(CONFIG_PCMCIA_ATMEL)      += atmel_cs.o atmel.o
obj-$(CONFIG_PCMCIA_WL3501)	+= wl3501_cs.o

If you try this I make no guarantees.

Cheers,
Ed



On 11/02/03 12:11:03, Jim Mack wrote:
> I am trying to compile the drivers into the kernel and keep getting
> the
> following errors while compiling:
> 
> drivers/built-in.o(.text+0x90ddd): In function `init_module':
> : multiple definition of `init_module'
> kernel/built-in.o(.text+0x17b68): first defined here
> ld: Warning: size of symbol `init_module' changed from 3 in
> kernel/built-in.o to 116 in drivers/built-in.o
> drivers/built-in.o(.text+0x8c6c8): In function
> `isl38xx_upload_firmware':
> : undefined reference to `request_firmware'
> drivers/built-in.o(.text+0x8c76e): In function
> `isl38xx_upload_firmware':
> : undefined reference to `release_firmware'
> make[1]: *** [.tmp_vmlinux1] Error 1
> make: *** [all] Error 2
> 
> I have tried the 10-31 and 11-01 kernel patches, but neither seem to
> help.
> Has anyone seen this before? What am I doing wrong?
> 
> _______________________________________________
> Prism54-users mailing list
> Prism54-users@prism54.org
> http://prism54.org/mailman/listinfo/prism54-users
>