From owner-freebsd-questions@FreeBSD.ORG Wed Mar 11 12:32:27 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 56F85707 for ; Wed, 11 Mar 2015 12:32:27 +0000 (UTC) Received: from mail-pd0-x232.google.com (mail-pd0-x232.google.com [IPv6:2607:f8b0:400e:c02::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 227A8371 for ; Wed, 11 Mar 2015 12:32:27 +0000 (UTC) Received: by pdbfl12 with SMTP id fl12so10931363pdb.5 for ; Wed, 11 Mar 2015 05:32:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=T0ded01b+fFhdmc0PJ9/ztn1Hml/OYxJgfzebvWnuTM=; b=eHwDb0QSXsaUT+djBsbilq9xGq7ZKW90Pw50r1dtIR/pF7kuG1gl45iSgJroNLTkzB 3xoJ4sVjAcuzhE9zzwbILWUwXY0TRSc04XWhqtxRwj35szGaWGj/OLWDMdt6xr+2YZkm TD4rQpcKCSmEj+4d1XdSu1cmcD//J+8HQo3sbkYKhLj0F+Iuh5jN0F9UBx1ZHsxnUBVy EWj1WTYe4M7F50wyzuvIcS1cPYjqqXy0zIJR69uDgvoW3de6QiSCO7v+RBTGDslYmGEs pQWk4h7h4URw2TjxoJtDFisDkCj2UAwjEzKKIjXEi+GTwaA97oXGvF6OKwPlLdQHwkGn GcBw== X-Received: by 10.70.125.129 with SMTP id mq1mr77610090pdb.70.1426077145752; Wed, 11 Mar 2015 05:32:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.70.81.198 with HTTP; Wed, 11 Mar 2015 05:32:05 -0700 (PDT) In-Reply-To: <550032C1.8040903@bananmonarki.se> References: <55002A42.4070608@bananmonarki.se> <20150311125846.e1b7fdb5.freebsd@edvax.de> <550032C1.8040903@bananmonarki.se> From: Michael Schuster Date: Wed, 11 Mar 2015 13:32:05 +0100 Message-ID: Subject: Re: sysinfo.h To: Bernt Hansson Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: Polytropon , freeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2015 12:32:27 -0000 I'd expect you have more porting work ahead of you - after all, sysinfo.h most likely is not included just for fun :-) Try to find out what "questions" the code in question is trying to answer, then maybe you'll find FreeBSD-specific solutions to them easier than when you attempt a line-for-line "port". regards Michael (admittedly, I haven't done any significant work on FreeBSD for ages ... so feel free to correct me if I'm wrong ;) On Wed, Mar 11, 2015 at 1:19 PM, Bernt Hansson wrote: > Thanks to Polytropon and Arthur > > I've found this > > libsysinfo GNU libc's sysinfo port for FreeBSD > > Installed it and getting other problems. > > % make > [ 0%] Built target Driver > [ 0%] Building CXX object src/3rdParty/salomesmesh/ > CMakeFiles/SMDS.dir/src/SMDS/SMDS_MemoryLimit.cpp.o > [ 0%] Building CXX object src/3rdParty/salomesmesh/ > CMakeFiles/SMDS.dir/src/SMDS/SMDS_Mesh.cpp.o > /usr/home/bernt/vebbnerladdningar/FreeCAD_sf_master-master/FreeCAD_sf_ > master-master/src/3rdParty/salomesmesh/src/SMDS > > /SMDS_Mesh.cpp: In static member function 'static int > > SMDS_Mesh::CheckMemory(bool)': > /usr/home/bernt/vebbnerladdningar/FreeCAD_sf_master-master/FreeCAD_sf_ > master-master/src/3rdParty/salomesmesh/src/SMDS > > /SMDS_Mesh.cpp:77: error: 'WEXITSTATUS' was not declared in this scope > *** [src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/src/SMDS/SMDS_Mesh.cpp.o] > Error code 1 > > Stop in /usr/home/bernt/vebbnerladdningar/FreeCAD_sf_ > master-master/FreeCAD_sf_master-master. > *** [src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/all] Error code 1 > > Stop in /usr/home/bernt/vebbnerladdningar/FreeCAD_sf_ > master-master/FreeCAD_sf_master-master. > *** [all] Error code 1 > > Stop in /usr/home/bernt/vebbnerladdningar/FreeCAD_sf_ > master-master/FreeCAD_sf_master-master. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" > -- Michael Schuster http://recursiveramblings.wordpress.com/