Messages in this thread |  | | Date | Thu, 28 Sep 2000 07:25:26 +0200 (CEST) | From | Mike Galbraith <> | Subject | Re: Module unresolved symbol on 2.4.0-test8 SMP |
| |
On Thu, 28 Sep 2000, Keith Owens wrote:
> 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.
Adding -finline should fix it too. (if someone really wants to build unoptimized).
-Mike
- 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/
|  |