From owner-freebsd-questions@FreeBSD.ORG Sat Dec 18 08:36:36 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BA5F16A4CE for ; Sat, 18 Dec 2004 08:36:36 +0000 (GMT) Received: from e-card.bg (FaiLurE.e-card.bg [212.91.167.2]) by mx1.FreeBSD.org (Postfix) with SMTP id E3E1B43D3F for ; Sat, 18 Dec 2004 08:36:34 +0000 (GMT) (envelope-from lordbad@e-card.bg) Received: (qmail 68429 invoked from network); 18 Dec 2004 08:34:25 -0000 Received: from unknown (HELO 172.19.14.91) (213.240.241.155) by mail.e-card.bg with SMTP; 18 Dec 2004 08:34:25 -0000 From: Bozhidar Batsov To: "Kevin D. Kinsey, DaleCo, S.P." In-Reply-To: <41C304F8.5030500@daleco.biz> References: <1103237255.58908.0.camel@ds2.domainspa.com> <1103266557.28181.0.camel@ds2.domainspa.com> <41C304F8.5030500@daleco.biz> Content-Type: text/plain Organization: E-Card Ltd. Date: Sat, 18 Dec 2004 10:36:32 +0200 Message-Id: <1103358992.621.7.camel@ds2.domainspa.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: nvnet port building problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: lordbad@e-card.bg List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Dec 2004 08:36:36 -0000 On Fri, 2004-12-17 at 10:10 -0600, Kevin D. Kinsey, DaleCo, S.P. wrote: > Bozhidar Batsov wrote: > > >Kevin Kinsey wrote: > > > > > >>Bozhidar Batsov wrote: > >> > >> > >> > >>>I don't see how cvsup again will help. I did it though hoping that > >>>my > >>>Makefile might have been corrupted. But I still get the same error > >>>output : > >>> > >>>===> Building for nvnet-1.0.0274 > >>>"Makefile", line 7: Malformed conditional (${OSTYPE} == "FreeBSD") > >>>"Makefile", line 7: Need an operator > >>>"Makefile", line 13: if-less endif > >>>"Makefile", line 13: Need an operator > >>>make: fatal errors encountered -- cannot continue > >>>*** Error code 1 > >>> > >>> > >>>I really need some kind of help because I need to the get this damn > >>>embedded Cicada ethernet gigabit ethernet operational very soon. > >>>Any > >>>ideas? > >>> > >>>Bozhidar > >>> > >>> > >>> > >>Are you sure this is the right Makefile? The "OSTYPE" string > >>isn't in the one you posted, which I assume is > >>"/usr/ports/net/nvnet/Makefile". > >> > >>Is there a "work" directory now under /usr/ports/net/nvnet? > >>If there is, go into that directory and look for "Makefiles" > >>under it and any subdirs that may exist. This is the port > >>build that's failing, not the port Make itself.... > >> > >>HTH, > >> > >>Kevin Kinsey > >> > >> > > > >Yes, you were right. Here is the real problematic Makefile in the word > >subfolder: > >include > > > >if ${OSTYPE} == "FreeBSD" > >if ${OSVERSION} < 480100 || ${OSVERSION} >= 500000 && ${OSVERSION} < > >501000 > >include > > > >if ${OSTYPE} == "FreeBSD" > >if ${OSVERSION} < 480100 || ${OSVERSION} >= 500000 && ${OSVERSION} < > >501000 > >all: > > @echo "Systems prior to FreeBSD 4.9 & 5.1 are not supported" > > @exit 1; > >endif > >endif > > > >if !exists(${.CURDIR}/../nforce/nvnet) > >all: > > @echo "You need to extract the NVIDIA Linux driver source into > >${.CURDIR:C/\/[^\/]*$//g}"; > > @exit 1; > >endif > > > >afterinstall: > > @echo > > @echo "Installation of the NVIDIA nForce MCP network driver for > >FreeBSD is" > > @echo "now compelete. Please update your /etc/rc.conf file as > >appropriate; see" > > @echo "the README file for details." > > @echo > > > >include > > > >It seems intact to me, but I guess it isn't... > > > > > > No, I'd guess it isn't; notice that it start with about 4 > "ifs" but only has 2 "endifs". I'm not sure why those > first two lines are there at all AAMOF; try the attached > file (move your original for safekeeping and put this > one in the work subdir with the same name as the > original) and let us know what happens. > > Kevin Kinsey I must have erred while pasting the contents of the Makefile, because it doesn't have those first two lines in it, I assure you. Otherwise I would have surely noticed that the conditions were mismatched. However I deleted the entire condition block in the makefile since it doesn't apply to my system at all and the port did finally built and is currently installed. I kldload-ed the if_nv.ko but the driver does not detect my embeded ethernet adapter. ifconfig shows that the same adapters are present as they were before. Any ideas how should I proceed, maybe switch po Project Evil and go for some windows emulation of the drivers?