Messages in this thread |  | | From | Keith Owens <> | Subject | Re: Module unresolved symbol on 2.4.0-test8 SMP | Date | Thu, 28 Sep 2000 12:05:02 +1100 |
| |
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/
|  |