From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 2 03:03:45 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C98F516A4CF for ; Tue, 2 Mar 2004 03:03:45 -0800 (PST) Received: from nexlab.it (danex.i-m-c.it [213.198.155.21]) by mx1.FreeBSD.org (Postfix) with SMTP id 5CC2843D2F for ; Tue, 2 Mar 2004 03:03:44 -0800 (PST) (envelope-from thefly@acaro.org) Received: (qmail 20598 invoked by uid 1220); 2 Mar 2004 11:03:43 -0000 Message-ID: <20040302110343.20597.qmail@nexlab.it> From: thefly@acaro.org To: freebsd-hackers@freebsd.org Date: Tue, 02 Mar 2004 12:03:43 +0100 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 02 Mar 2004 05:17:55 -0800 Subject: [Driver WD1100] Compilation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2004 11:03:45 -0000 hello, i've got a question about the driver compilation. I finally wrote my driver, and i'm trying to compile it to test it. I tryed to use /usr/share/examples/drivers/make_device_driver.sh to build the whole stuff, but it doesn't work... Anyway I put the driver.c and the header i built to /usr/src/sys/dev/wd/ and trying to compile it with gcc -I/sys but it gives me a bunch of errors about definitions it doesn't find (definitions of kernel functions and structures). I didn't find this question in the FAQ so my question is: now that the .c is written, how do i compile it and link it to the kernel image? My previous post was about the use of the NewBus interface for accessing PCI devices, could some of you please have a look at my driver (it's about 200 lines with includes and comments and stuff) http://chiakotay.acaro.org/acaro/wd1100/ . Thanks in advance, Claudio Martella