Re: Module unresolved symbol on 2.4.0-test8 SMP

From: Keith Owens (kaos@ocs.com.au)
Date: Wed Sep 27 2000 - 20:05:02 EST


On Wed, 27 Sep 2000 14:11:30 -0500 (CDT),
watters@resmgmt.americas.sgi.com (Sam Watters) wrote:
>[root@porsche13 themod-dev]# insmod themod.o
>themod.o: unresolved symbol write_lock
>themod.o: unresolved symbol read_lock
>
>gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686
>-fno-strict-aliasing -D__SMP__ -DMODULE -D__KERNEL__ -DLINUX -Dlinux
>-DDEBUG -I../../../include -c themod.c

Compile with -O2 otherwise functions will not be inlined. The Linux
kernel requires -O2, it is not an option. I'm surprised this is not in
the FAQ.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 30 2000 - 21:00:21 EST