From owner-freebsd-ports@freebsd.org Thu Jul 13 20:47:55 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3F66DDAD896 for ; Thu, 13 Jul 2017 20:47:55 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 02D18373B for ; Thu, 13 Jul 2017 20:47:54 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::d085:46c1:a1e7:c4fb] (unknown [IPv6:2001:470:7a58:0:d085:46c1:a1e7:c4fb]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 2FF193F619; Thu, 13 Jul 2017 22:47:46 +0200 (CEST) From: Dimitry Andric Message-Id: <0F257FA5-0B66-484D-BFFD-68649B8E9696@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_F2FE9E01-C816-45A4-B696-5462091262FA"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: ext/atomicity.h bits/c++config.h Date: Thu, 13 Jul 2017 22:47:35 +0200 In-Reply-To: <77a7513c-b47d-1e59-bce8-550570c73035@bsd.com.br> Cc: freebsd-ports@freebsd.org To: =?utf-8?B?T3RhY8OtbGlv?= References: <77a7513c-b47d-1e59-bce8-550570c73035@bsd.com.br> X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jul 2017 20:47:55 -0000 --Apple-Mail=_F2FE9E01-C816-45A4-B696-5462091262FA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 13 Jul 2017, at 20:50, Otac=C3=ADlio = wrote: >=20 > I'm trying to make a port for personal use of the rmtp library. = However I'm having some problems that I can not solve with just the help = of google. Among other things, the compilation is breaking at this point >=20 > In file included from = /usr/ports/science/mrpt/work/.build/libs/base/cotire/mrpt-base_CXX_prefix.= hxx:4: > In file included from = /usr/ports/science/mrpt/work/.build/libs/base/cotire/mrpt-base_CXX_prefix.= cxx:4: > In file included from = /usr/ports/science/mrpt/work/mrpt-752b211/libs/base/src/base-precomp.h:17:= > In file included from = /usr/ports/science/mrpt/work/mrpt-752b211/libs/base/include/mrpt/utils/COb= ject.h:17: > In file included from = /usr/ports/science/mrpt/work/mrpt-752b211/libs/base/include/mrpt/otherlibs= /stlplus/smart_ptr.hpp:49: > = /usr/ports/science/mrpt/work/mrpt-752b211/libs/base/include/mrpt/synch/ato= mic_incr.h:20:12: fatal error: 'ext / atomicity.h' file not found > #include This header is a GNU libstdc++ specific extension, e.g. it is = non-portable. If the program insists on having this header, you should = probably use one of the gcc ports to build it. In most cases, the = program can be changed to use a portable header instead. > I have found this library in /usr/src/contrib/libstdc ++/include and I = do not know the correct way to include it in the project because I = expected to find it in /usr/include or /usr/local/include. I even added = this line in the configuration: -I/usr/src/contrib/libstdc++/include but = now went on to complain that this other head file is missing >=20 > /usr/src/contrib/libstdc++/include/ext/atomicity.h:38:10: fatal error: = 'bits/c++config.h' file not found You can't do that, most headers under /usr/src are not suitable for = direct inclusion, they have to be installed in the right locations. = Again, try using one of the gcc ports instead, they will automatically = find their own libstdc++ headers (usually under = /usr/local/lib/gccX/include/c++/ext). -Dimitry --Apple-Mail=_F2FE9E01-C816-45A4-B696-5462091262FA Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.1 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWWfcZwAKCRCwXqMKLiCW o/kZAJ9A7OWc/sjWueevcI2nDTQHm1LLRgCeJW0NuN7Z0ldcLY9nXLd7RauyTsc= =RJje -----END PGP SIGNATURE----- --Apple-Mail=_F2FE9E01-C816-45A4-B696-5462091262FA--