From owner-freebsd-questions@FreeBSD.ORG Wed Mar 11 12:26:36 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6B8DB61D for ; Wed, 11 Mar 2015 12:26:36 +0000 (UTC) Received: from bede.qeng-ho.org (bede.qeng-ho.org [217.155.128.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0594D27C for ; Wed, 11 Mar 2015 12:26:35 +0000 (UTC) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by bede.home.qeng-ho.org (8.14.9/8.14.7) with ESMTP id t2BC4E6V046834; Wed, 11 Mar 2015 12:04:14 GMT (envelope-from freebsd@qeng-ho.org) Message-ID: <55002F3E.1030301@qeng-ho.org> Date: Wed, 11 Mar 2015 12:04:14 +0000 From: Arthur Chance User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Bernt Hansson , freeBSD Mailing List Subject: Re: sysinfo.h References: <55002A42.4070608@bananmonarki.se> In-Reply-To: <55002A42.4070608@bananmonarki.se> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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:26:36 -0000 On 11/03/2015 11:42, Bernt Hansson wrote: > Hello list! > > Trying to build a program (freecad) > > I have got cmake to find libs and other programs it needs. > > running cmake -DFREECAD_USE_EXTERNAL_PIVY=1 -DCMAKE_BUILD_TYPE=Release . > > results is this > -- Configuring done > -- Generating done > -- Build files have been written to: > /usr/home/bernt/vebbnerladdningar/FreeCAD_sf_master-master/FreeCAD_sf_master-master > > > Then one should run make. > > make gives this error > > /usr/home/bernt/vebbnerladdningar/FreeCAD_sf_master-master/FreeCAD_sf_master-master/src/3rdParty/salomesmesh/src/SMDS/SMDS_MemoryLimit.cpp:32:25: > error: sys/sysinfo.h: No such file or directory > > Guess it's linuxism. > > What is sysinfo.h called in freebsd? I'm not sure if there is a direct equivalent. A quick search gives me http://man7.org/linux/man-pages/man2/sysinfo.2.html & http://lxr.free-electrons.com/source/include/uapi/linux/sysinfo.h sysinfo(2) is a Linux syscall that "provides a simple way of getting overall system statistics". You might want to "man 3 kvm" to find FBSD equivalents. -- Those who do not learn from computing history are doomed to GOTO 1