Hi,

I've got a RedHat 7.1 box that I need to change a single module on (I'm adding
Palm Zire support to visor.o).  After I make the changes, I compile the module
with:

ARCH=`arch`

gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes \
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common \
-pipe -mpreferred-stack-boundary=2 -march="$ARCH" -DMODULE -DMODVERSIONS \
-c -o visor.o visor.c

I then cp the visor.o file to /lib/modules/..., do an

insmod usbserial; insmod visor

and the zire works.

However, if I do a depmod -ae, I get

depmod: *** Unresolved symbols in 
/lib/modules/2.4.2-2/kernel/drivers/usb/serial/visor.o
depmod: 	__generic_copy_from_user
depmod: 	tq_immediate
depmod: 	kmalloc
depmod: 	usb_serial_deregister
depmod: 	usb_free_urb
depmod: 	tasklet_hi_vec
depmod: 	usb_alloc_urb
depmod: 	bh_task_vec
depmod: 	usb_set_configuration
depmod: 	kfree
depmod: 	tty_flip_buffer_push
depmod: 	usb_serial_register
depmod: 	usb_submit_urb
depmod: 	usb_control_msg
depmod: 	printk
depmod: 	irq_stat
depmod: 	usb_unlink_urb

Anybody have a clue what is happening? (The depmod problem also happens if I
do not have -DMODVERSIONS in the compile invocation).



_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list