Re: unresolved symbols in module

From: Peter Samuelson (peter@cadcamlab.org)
Date: Mon Jan 10 2000 - 22:13:07 EST


[Jonathan Gallmeier <jonathan@arlut.utexas.edu>]
> cc -D__KERNEL__ -DMODULE -Wall -O2 -fno-strict-aliasing -I/usr/include -c epp_driver.c -o epp_driver.o

Your problem is probably the -I/usr/include. It should be
-I/usr/src/linux-xxx/include i.e. should point at your current kernel
sources. /usr/include/linux et al are *not* guaranteed to do so.

Also note that if your current kernel uses MODVERSIONS, you will have
to compile with something like "-DMODVERSIONS -include
/usr/src/linux-xxx/include/linux/modversions.h" due to the *ahem*
design of MODVERSIONS.

Peter

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



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:16 EST