From owner-freebsd-ports@FreeBSD.ORG Sun Nov 11 09:38:12 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 454D7714 for ; Sun, 11 Nov 2012 09:38:12 +0000 (UTC) (envelope-from gljennjohn@googlemail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id BC6B58FC12 for ; Sun, 11 Nov 2012 09:38:11 +0000 (UTC) Received: by mail-bk0-f54.google.com with SMTP id jm19so1059190bkc.13 for ; Sun, 11 Nov 2012 01:38:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; bh=Df4TV2480Vtvs4XG8RieuZ/a327XU5ysgtozdilpXnU=; b=x66gtXArtoyowVd8jbDEOfEJfpAU5Y84ol+HdTiBA5gwM1MOKvl1KIZ2ukTYJ/nvrH iV3le/fkInutDngZ7bW+bODJrbj4Sib1tgGgbUpH4HKFJkIevR4OboPwCLgTtLlx0oK7 3zkHQff8xMADZohOyZmVC9ENfgmW1v6p1DqNB8Ty83gTzG96DKLIlmYkyvnpTHB3nYsB zBi6yoSdz9jvIxKFRbORD+257GY60ZwReUxB7rEPlR5UzOxVrLNMY1kFreQGouhCQYIT liK2NDrr7eyDHdnjxv/FcNX4ox0lYDQX2ZoGJnA14lN1V/D8AVsq3BVQ4cKB6qglnRes AL3A== Received: by 10.204.151.136 with SMTP id c8mr3705522bkw.70.1352626690416; Sun, 11 Nov 2012 01:38:10 -0800 (PST) Received: from ernst.jennejohn.org (p5489510F.dip.t-dialin.net. [84.137.81.15]) by mx.google.com with ESMTPS id g8sm1278277bkv.6.2012.11.11.01.38.08 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 11 Nov 2012 01:38:09 -0800 (PST) Date: Sun, 11 Nov 2012 10:38:07 +0100 From: Gary Jennejohn To: Beeblebrox Subject: Re: boost error for linux source - looking in the wrong place? Message-ID: <20121111103807.7c86f0a3@ernst.jennejohn.org> In-Reply-To: <1352623446128-5759953.post@n5.nabble.com> References: <1352623446128-5759953.post@n5.nabble.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: gljennjohn@googlemail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2012 09:38:12 -0000 On Sun, 11 Nov 2012 00:44:06 -0800 (PST) Beeblebrox wrote: > I am trying to compile a linux source code on FreeBSD-9.1-PRERELEASE_amd64. > at the ./configure stage I get this error: > ------------------------------------ > checking boost/foreach.hpp usability... no > checking boost/foreach.hpp presence... no > checking for boost/foreach.hpp... no > configure: error: "BOOST library is missing" > ------------------------------------ > > But, I have /usr/local/include/boost/foreach.hpp > /usr/local/include/boost/test/utils/foreach.hpp > > So the folder where FreeBSD places this and the folder where configure looks > (as linux) must be different. How can I correct this? The relevant code > snippet from the configure file is: > if test x"$ac_boost_inc" != x"no"; then > CFLAGS+=" -I$ac_boost_inc " > CXXFLAGS+=" -I$ac_boost_inc " > ( > CPPFLAGS+=" -I$ac_boost_inc " > if test "${ac_cv_header_boost_foreach_hpp+set}" = set; then > { echo "$as_me:$LINENO: checking for boost/foreach.hpp" >&5 > echo $ECHO_N "checking for boost/foreach.hpp... $ECHO_C" >&6; } > if test "${ac_cv_header_boost_foreach_hpp+set}" = set; then > echo $ECHO_N "(cached) $ECHO_C" >&6 > fi > { echo "$as_me:$LINENO: result: $ac_cv_header_boost_foreach_hpp" >&5 > echo "${ECHO_T}$ac_cv_header_boost_foreach_hpp" >&6; } > else > # Is the header compilable? > { echo "$as_me:$LINENO: checking boost/foreach.hpp usability" >&5 > echo $ECHO_N "checking boost/foreach.hpp usability... $ECHO_C" >&6; } > cat >conftest.$ac_ext <<_ACEOF > /* confdefs.h. */ > _ACEOF > cat confdefs.h >>conftest.$ac_ext > cat >>conftest.$ac_ext <<_ACEOF > /* end confdefs.h. */ > $ac_includes_default > It seems pretty obvious that you have to set whatever command line option sets ac_boost_inc to /usr/local/include/boost. What does configure --help show? -- Gary Jennejohn