Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jul 2017 22:47:35 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        =?utf-8?B?T3RhY8OtbGlv?= <otacilio.neto@bsd.com.br>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: ext/atomicity.h bits/c++config.h
Message-ID:  <0F257FA5-0B66-484D-BFFD-68649B8E9696@FreeBSD.org>
In-Reply-To: <77a7513c-b47d-1e59-bce8-550570c73035@bsd.com.br>
References:  <77a7513c-b47d-1e59-bce8-550570c73035@bsd.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <otacilio.neto@bsd.com.br> =
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 <ext / atomicity.h>

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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0F257FA5-0B66-484D-BFFD-68649B8E9696>