[eepro100] Unresolved symbols, pci-scan.c and 2.2.14-5.0smp

Donald Becker becker@scyld.com
Wed Jun 12 11:37:01 2002


On Wed, 12 Jun 2002, Sami Pitko wrote:

> Subject: [eepro100] Unresolved symbols, pci-scan.c and 2.2.14-5.0smp
>
> I am having problems with pci-scan.c in stock RedHat 6.2 (2.2.14-5.0smp)
> running on SMP hardware.

I suspect this problem is with the header files in your installation..

> 	gcc -DMODULE -D__KERNEL__ -D__SMP__ -DEXPORT_SYMTAB \
> 	  -Wall -Wstrict-prototypes -O6 -c pci-scan.c
> insmod pci-scan.o gives:
>
> pci-scan.o: unresolved symbol apm_register_callback_Rsmpf70b592f
> pci-scan.o: unresolved symbol apm_unregister_callback_Rsmp99700428

The APM calls are enabled only when
         defined(CONFIG_APM)  &&  LINUX_VERSION_CODE < 0x20400

Your header files are declaring that your kernel has APM support, but
you don't have the kernel entry points for APM support.

The immediate work-around is to add -UCONFIG_APM to the compile line.
The correct solution is to figure out why the CONFIG_APM symbol is being
defined in
    /usr/include/linux/autoconf.h


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