From owner-freebsd-hackers Wed Jan 5 2:15:30 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from overcee.netplex.com.au (overcee.netplex.com.au [202.12.86.7]) by hub.freebsd.org (Postfix) with ESMTP id 646C915374 for ; Wed, 5 Jan 2000 02:15:27 -0800 (PST) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 555471CA0; Wed, 5 Jan 2000 18:15:25 +0800 (WST) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.1.1 10/15/1999 To: Sascha Schumann Cc: freebsd-hackers@freebsd.org Subject: Re: undefined reference In-Reply-To: Message from Sascha Schumann of "Wed, 05 Jan 2000 11:09:58 +0100." <20000105110958.A9444@schumann.cx> Date: Wed, 05 Jan 2000 18:15:25 +0800 From: Peter Wemm Message-Id: <20000105101525.555471CA0@overcee.netplex.com.au> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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