From owner-freebsd-hackers Wed Jan 5 2:10:13 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.iserlohn.netsurf.de (mail.iserlohn.netsurf.de [194.195.194.253]) by hub.freebsd.org (Postfix) with ESMTP id A692E153A0 for ; Wed, 5 Jan 2000 02:10:04 -0800 (PST) (envelope-from sascha@schumann.cx) Received: from schumann.cx (hennen32s.iserlohn.netsurf.de [194.195.194.226]) by mail.iserlohn.netsurf.de (8.9.1/8.9.1) with SMTP id LAA32305 for ; Wed, 5 Jan 2000 11:10:21 +0100 Received: (qmail 18628 invoked from network); 5 Jan 2000 10:09:58 -0000 Received: from flaubert.foo.bar (192.168.0.99) by guerilla.foo.bar with SMTP; 5 Jan 2000 10:09:58 -0000 Received: (qmail 9534 invoked by uid 500); 5 Jan 2000 10:09:58 -0000 Date: Wed, 5 Jan 2000 11:09:58 +0100 From: Sascha Schumann To: freebsd-hackers@freebsd.org Subject: undefined reference Message-ID: <20000105110958.A9444@schumann.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i X-Notice: Copyright (c) 2000 Sascha Schumann. All rights reserved. X-Operating-System: Linux 2.2.13 #10 Mon Dec 27 20:35:15 CET 1999 alpha Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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? Driver source: http://apache.org/~sascha/pcf.c I think I miss something obvious, so I'd appreciate your advice. -- Regards, Sascha Schumann Consultant To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message