Re: Unresolved symbols, pci-scan.c and 2.2.14-5.0smp

Donald Becker <[email protected]>
Newsgroups gmane.linux.drivers.eepro100.devel
Message-ID <Pine.LNX.4.33.0206121131371.2253-100000@presario>
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				[email protected]
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Second Generation Beowulf Clusters
Annapolis MD 21403			410-990-9993
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.