Re: [2.2.0-pre4 and earlier] 8390 module dependencies

Florian Weimer (fw@cygnus.stuttgart.netsurf.de)
04 Jan 1999 22:30:55 +0100


alan@lxorguk.ukuu.org.uk (Alan Cox) writes:

> Ok can people seeing the 8390 symbol problems try something like this
> (untested but should be right ...)

> +EXPORT_SYMBOL(ethdev_init);
> +EXPORT_SYMBOL(ei_close);
> +EXPORT_SYMBOL(ei_interrupt);
> +EXPORT_SYMBOL(NS8390_init);

If I add `ei_open' to the set of exported symbols, it works fine when
ne.c is compiled as module and ne2k-pci.c is built into the kernel or
as a module. :)

But if ne.c is compiled into the kernel (and ne2k-pci.c as a module),
linking of vmlinux fails with

drivers/net/net.a(8390.o)(.kstrtab+0x0): multiple definition of `__kstrtab_ethdev_init'
net/network.a(sock_n_syms.o)(.kstrtab+0x6d5): first defined here
drivers/net/net.a(8390.o)(__ksymtab+0x0): multiple definition of `__ksymtab_ethdev_init'
net/network.a(sock_n_syms.o)(__ksymtab+0x3c8): first defined here

and so on. :(

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