From owner-freebsd-hackers Tue Apr 4 19:41:50 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.rdc1.nj.home.com (ha1.rdc1.nj.home.com [24.3.128.66]) by hub.freebsd.org (Postfix) with ESMTP id A5B7F37B732; Tue, 4 Apr 2000 19:41:47 -0700 (PDT) (envelope-from garycor@home.com) Received: from home.com ([24.3.185.85]) by mail.rdc1.nj.home.com (InterMail v4.01.01.00 201-229-111) with ESMTP id <20000405024146.YVKR20681.mail.rdc1.nj.home.com@home.com>; Tue, 4 Apr 2000 19:41:46 -0700 Message-ID: <38EAA7CF.2748A088@home.com> Date: Tue, 04 Apr 2000 22:41:19 -0400 From: "Gary T. Corcoran" X-Mailer: Mozilla 4.6 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: Mike Smith Cc: "Gary T. Corcoran" , freebsd-hackers@FreeBSD.ORG Subject: Re: Help? Device driver 'make depend' errors from comments References: <200004050153.SAA00561@mass.cdrom.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Smith wrote: > Go back to the module if this is for 4.x; I originally asked about making a network driver module for 3.4. I was hoping for either a "here's how you do it" or at least an "it's not possible with 3.4" response... > > Now this is a common codebase for this driver, which compiles fine > > for Windows and Linux, and, as mentioned above, it compiles fine > > (stand-alone) for FreeBSD. So obviously it is syntactically-good > > C code for gcc, so why am I having all these problems? There are > > over 50,000 lines of code, so please don't tell me to go changing > > all the comments and #if lines! Any (other :) suggestions > > would be appreciated... > > Oh joy. It was probably written for MSVC in that case. How did you guess?... ;-) Yes, originally developed for Windows. Ported to Linux (as a module) without many problems; now I'm the "lone wolf" trying to add support for FreeBSD... > You're going to have to compile as a module in order to get different > compiler warning flags; Okay - that's what I needed to know. It looks like I should definitely be targeting 4.x instead of 3.x. :( I'll install 4.0, see if there are any network driver module examples, and get back to you-all if I have any more problems... Thanks, Gary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message