From owner-freebsd-hackers Tue Apr 4 18:48:33 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.cdrom.com (adsl-63-193-112-57.dsl.snfc21.pacbell.net [63.193.112.57]) by hub.freebsd.org (Postfix) with ESMTP id 7F7A737B50B for ; Tue, 4 Apr 2000 18:48:30 -0700 (PDT) (envelope-from msmith@mass.cdrom.com) Received: from mass.cdrom.com (localhost [127.0.0.1]) by mass.cdrom.com (8.9.3/8.9.3) with ESMTP id SAA00561; Tue, 4 Apr 2000 18:53:20 -0700 (PDT) (envelope-from msmith@mass.cdrom.com) Message-Id: <200004050153.SAA00561@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Gary T. Corcoran" Cc: freebsd-hackers@freebsd.org Subject: Re: Help? Device driver 'make depend' errors from comments In-reply-to: Your message of "Tue, 04 Apr 2000 19:07:41 EDT." <38EA75BD.EEA71C22@lucent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Apr 2000 18:53:20 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Since I received exactly ZERO responses to my plea for help in making > my network device driver a loadable module, I'm now trying to compile > my driver into the kernel. Go back to the module if this is for 4.x; I don't recall your original post, sorry, but feel free to pass it back off the list. > 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. You're going to have to compile as a module in order to get different compiler warning flags; the code you're trying to build isn't really valid C and you'll have to work around this. Please let us look at your module problems again, and poke me specifically about it if you're not getting answers. -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ msmith@freebsd.org \\ and he'll hate you for a lifetime. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message