Sascha Schumann wrote:
> Hi,
>
> I've written a new driver for ppbus (yes, I know that
> newppbus exists). I've added one line to conf/files, added
> "device pcf0" to my kernel configuration file, config'ured
> the kernel, and ran make depend all. The driver compiles
> cleanly, but then the linker complains about:
>
> isa_compat.o(.data+0xc): undefined reference to `pcfdriver'
>
> pcfdriver is declared in pcf.c:
>
> static struct ppb_driver pcfdriver = {
> pcfprobe, pcfattach, PCF_NAME
> };
> DATA_SET(ppbdriver_set, pcfdriver);
>
> When I removed the static declarator test-wise, the linker
> complained about dupe symbols. Is it really impossible to make
> this work?
There is another driver called 'pcf' - you'll have to use a different name.
Cheers,
-Peter
--
Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message