From owner-freebsd-ports@FreeBSD.ORG Wed Aug 15 20:36:52 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mandree.no-ip.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 88ECC106564A; Wed, 15 Aug 2012 20:36:52 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by apollo.emma.line.org (Postfix) with ESMTP id B9DB223CFFE; Wed, 15 Aug 2012 22:36:51 +0200 (CEST) Message-ID: <502C085F.2030107@FreeBSD.org> Date: Wed, 15 Aug 2012 22:36:47 +0200 From: Matthias Andree User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Renato Botelho References: In-Reply-To: X-Enigmail-Version: 1.5a1pre Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigECA1BA10D7D0172FA49A8D93" Cc: ports@freebsd.org, mm@freebsd.org Subject: Re: Error building pcre on 9.0 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: Wed, 15 Aug 2012 20:36:52 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigECA1BA10D7D0172FA49A8D93 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 15.08.2012 22:18, schrieb Renato Botelho: > I was updating a 9.0-RELEASE-p3 i386 system's ports and got the > following error when building pcre 8.31: >=20 > CXX pcrecpp.lo > In file included from /usr/include/c++/4.2/bits/c++allocator.h:39, > from /usr/include/c++/4.2/bits/allocator.h:53, > from /usr/include/c++/4.2/memory:54, > from /usr/include/c++/4.2/string:48, > from pcrecpp.cc:43: > /usr/include/c++/4.2/ext/new_allocator.h:37:15: error: new: No such > file or directory > In file included from /usr/include/c++/4.2/string:48, > from pcrecpp.cc:43: > /usr/include/c++/4.2/memory: In function 'std::pair<_Tp*, int> > std::__get_temporary_buffer(ptrdiff_t, _Tp*)': > /usr/include/c++/4.2/memory:83: error: 'nothrow' was not declared in th= is scope > /usr/include/c++/4.2/memory: In function 'void > std::return_temporary_buffer(_Tp*)': > /usr/include/c++/4.2/memory:123: error: 'nothrow' was not declared in t= his scope > *** Error code 1 Renato, works for me. Your system appears to have a broken gcc installation. It lacks /usr/include/c++/4.2/new, an include file dated Dec 4 2011 and sized 4041 bytes on my 9.0-RELEASE-p3 i386 system, which would also explain the nothrow-related errors. Anything in [/usr]/lost+found by chance? SHA1 (/usr/include/c++/4.2/new) =3D 0fa579e92a0c62da703a221fcb55c27b5f2bd= 88f Two excerpts from its contents: // The -*- C++ -*- dynamic memory management header. // Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, // 2003, 2004, 2005, 2006, 2007 // Free Software Foundation // This file is part of GCC. // [...] /** @file new * This is a Standard C++ Library header. * * The header @c new defines several functions to manage dynamic memory = and * handling memory allocation errors; see * http://gcc.gnu.org/onlinedocs/libstdc++/18_support/howto.html#4 for more. */ =2E.. HTH Matthias --------------enigECA1BA10D7D0172FA49A8D93 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAlAsCGMACgkQvmGDOQUufZVsZQCfR2WX6lwOPmnB0mCUNI7yR51p kT0AmwXOXqgyDskD4UWJsA7hJojBzk5P =/BEQ -----END PGP SIGNATURE----- --------------enigECA1BA10D7D0172FA49A8D93--