From owner-freebsd-ports@FreeBSD.ORG Fri Feb 24 19:15:34 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AF31106564A for ; Fri, 24 Feb 2012 19:15:34 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout020.mac.com (asmtpout020.mac.com [17.148.16.95]) by mx1.freebsd.org (Postfix) with ESMTP id 6EFB98FC15 for ; Fri, 24 Feb 2012 19:15:34 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from cswiger1.apple.com (unknown [17.209.4.71]) by asmtp020.mac.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPSA id <0LZW00BD0W5X9Z10@asmtp020.mac.com> for freebsd-ports@freebsd.org; Fri, 24 Feb 2012 19:15:33 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7498,1.0.260,0.0.0000 definitions=2012-02-24_06:2012-02-24, 2012-02-24, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1202240181 From: Chuck Swiger In-reply-to: Date: Fri, 24 Feb 2012 11:15:32 -0800 Message-id: <133E41CB-0B0E-4249-907B-AEB2CA919DBD@mac.com> References: To: Norman Khine X-Mailer: Apple Mail (2.1084) Cc: freebsd-ports@freebsd.org Subject: Re: dl library and fdatasync(2) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2012 19:15:34 -0000 On Feb 24, 2012, at 10:40 AM, Norman Khine wrote: > i am trying to build nodejs on freebsd9, and get a warning: > > Checking for library dl : not found > > Checking for fdatasync(2) with c++ : no > > could someone point me where these libraries are? FreeBSD's libc provides dlopen(), dlclose(), etc-- there's no need for a separate libdl to do dynamic loading. fdatasync(2) is a cheaper version of fsync(2) which does not try to update filesystem metadata; using soft updates with FreeBSD's UFS2 filesystem already provides most of the benefits. So you don't need that either, just call fsync() instead. Regards, -- -Chuck