[eepro100] Re: [newbie] Unresolved symbols

Kallol Biswas kallol@bagula.fpk.hp.com
Mon, 24 Sep 2001 10:59:53 EDT


Hi,
   I am new to linux kernel and modularization...

Did you check the exported symbols in kernel? I don't know
any utility to do it but you can use the following
program to find out the exported symbols:

#include <stdio.h>
#include <linux/module.h>

main()
{
struct kernel_sym *table;
int     num=0, i;

num = get_kernel_syms(NULL);

table = malloc(sizeof(struct kernel_sym) * num);

num = get_kernel_syms(table);

for (i=0; i < num; i++) {
        printf("value = 0x%x name %s\n", table->value, table->name);
        table++;
}

printf("NUM = %d\n", num);
}

Kallol


> 
> Actually I did.
> 
> Here's exactly what I did:
> I run kernel 2.2.19.
> I put the necessary .c and .h files in one dir.
> I compile pci-scan.c and eepro100.c as described.
> I type: insmod pci-scan.o.
> which results in:
> pci-scan.o: unresolved symbol pci_write_config_byte
> pci-scan.o: unresolved symbol kmalloc
> pci-scan.o: unresolved symbol pci_find_class
> pci-scan.o: unresolved symbol __check_region
> pci-scan.o: unresolved symbol pci_read_config_byte
> pci-scan.o: unresolved symbol pci_read_config_dword
> pci-scan.o: unresolved symbol __ioremap
> pci-scan.o: unresolved symbol pci_read_config_word
> pci-scan.o: unresolved symbol kfree
> pci-scan.o: unresolved symbol pci_set_master
> pci-scan.o: unresolved symbol pci_write_config_dword
> pci-scan.o: unresolved symbol pci_write_config_word
> pci-scan.o: unresolved symbol printk
> pci-scan.o: unresolved symbol ioport_resource
> 
> Compiling with the -I... and -include .../modversions.h gives a lot of
> compiler-errors.
> 
> I think I followed all instructions.
> Any suggestions? Thanks.
> 
> > You must use the 'pci-scan.o' support.
> > Read
> >  http://www.scyld.com/network/updates.html
> 
> -- 
> Wouter Verheijen
> 
> 
> _______________________________________________
> eepro100 mailing list
> eepro100@scyld.com
> http://www.scyld.com/mailman/listinfo/eepro100
> 


--
Phone: 973-443-7469         |  Design Engineer
Telnet: 1-443-7469          |  EIAL UNIX OS LAB
www.kallolbiswas.com        |  Hewlett Packard Company
kallol_biswas@hp.com        |  Florham Park, NJ