Re: unresolved symbols in module

Peter Samuelson (peter@cadcamlab.org)
10 Jan 2000 21:13:07 -0600


[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/