[eepro100] Unresolved symbols, pci-scan.c/eepro100.c and 2.2.19-6.2.16enterprise redhat 6.2

G-man gman@gman.infinex.com
Tue Jun 18 20:35:01 2002


Makefile compiles pci-scan.c but not eepro100.c.. insmod/modprobeing the
pci-scan.o still generates that error..

adding -D__module__enterprise  makes everything good..
----- Original Message -----
From: "Donald Becker" <becker@scyld.com>
To: "G-man" <gman@gman.infinex.com>
Cc: <eepro100@scyld.com>
Sent: Friday, June 14, 2002 3:43 PM
Subject: Re: [eepro100] Unresolved symbols, pci-scan.c/eepro100.c and
2.2.19-6.2.16enterprise redhat 6.2


> On Thu, 13 Jun 2002, G-man wrote:
>
> > This is a redhat 6.2 box running 2.2.19-6.2.16enterprise. Box is
completely
> > up todate with its rpms..
> >
> > kernel-enterprise-2.2.19-6.2.16
> ...
> > I download the eepro100.c and pci-scan.c yesterday..
> > I compiled modules like this:
> >
gcc -I/usr/src/linux/include -I/usr/src/linux/include/linux/modversions.h -D
> > MODULE  -D__KERNEL__ -DEXPORT_SYMTAB -O6 -c pci-scan.c
>
> Try using this Makefile
>       ftp://www.scyld.com/pub/network/Makefile
> which tries to find the correct header files, despite the myriad ways
> that distributions try to misplace them.
>
> It should find the proper kernel header files, likely someplace such as
>   -I/lib/modules/2.2.19-6.2.16/kernel/include/
>
> > Using /lib/modules/2.2.19-6.2.16enterprise/net/pci-scan.o
> > /lib/modules/2.2.19-6.2.16enterprise/net/pci-scan.o: unresolved symbol
> > __ioremap_R9eac042a
>
> Yup, wrong header files for the kernel you are using, combined with
> a module version implementation that's a little too picky.
>
> --
> Donald Becker becker@scyld.com
> Scyld Computing Corporation http://www.scyld.com
> 410 Severn Ave. Suite 210 Second Generation Beowulf Clusters
> Annapolis MD 21403 410-990-9993
>
> _______________________________________________
> eepro100 mailing list
> eepro100@scyld.com
> http://www.scyld.com/mailman/listinfo/eepro100
>