Date: Wed, 05 Jan 2000 18:15:25 +0800 From: Peter Wemm <peter@netplex.com.au> To: Sascha Schumann <sascha@schumann.cx> Cc: freebsd-hackers@freebsd.org Subject: Re: undefined reference Message-ID: <20000105101525.555471CA0@overcee.netplex.com.au> In-Reply-To: Message from Sascha Schumann <sascha@schumann.cx> of "Wed, 05 Jan 2000 11:09:58 %2B0100." <20000105110958.A9444@schumann.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
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 - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000105101525.555471CA0>