From owner-freebsd-ports@FreeBSD.ORG Wed Nov 13 18:51:11 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4D861428 for ; Wed, 13 Nov 2013 18:51:11 +0000 (UTC) Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [IPv6:2a01:e0c:1:1599::11]) by mx1.freebsd.org (Postfix) with ESMTP id AC0F5275D for ; Wed, 13 Nov 2013 18:51:08 +0000 (UTC) Received: from yggdrasil.alkumuna.eu (unknown [IPv6:2a01:e35:8a74:6e70:232:36ff:fe5c:3a87]) by smtp2-g21.free.fr (Postfix) with ESMTP id 417354B022F for ; Wed, 13 Nov 2013 19:51:02 +0100 (CET) Received: from localhost ([192.168.10.100]) (authenticated bits=0) by yggdrasil.alkumuna.eu (8.14.7/8.14.7) with ESMTP id rADIp0HU030143 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 13 Nov 2013 19:51:01 +0100 (CET) (envelope-from mazhe@alkumuna.eu) Date: Wed, 13 Nov 2013 19:50:47 +0100 From: Matthieu Volat To: freebsd-ports@freebsd.org Subject: Building specific ports with gcc in 10.0 Message-ID: <20131113195047.628d288a@alkumuna.eu> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd9.2) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/PV5gzJDOaTAi+z2WtInufth"; protocol="application/pgp-signature" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Nov 2013 18:51:11 -0000 --Sig_/PV5gzJDOaTAi+z2WtInufth Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi everybody, With the 10.0 release becoming more and more tangible, I tried to switch on= e laptop to 10.0-BETA3 and see how it would go. I fumbled into a problem that I have a hard time to resolve: I would like t= o build graphics/darktable with gcc (lang/gcc46 to be precise, through the = USE_GCC system) to benefit from openmp support.=20 Here's the problem : graphics/darktable, mostly C, uses graphics/exiv2 whic= h is written in C++, but built with clang++/libc++. So when I try to build = graphics/darktable, I get errors of unresolved symbols from exiv2 library: libdarktable.so: undefined reference to `Exiv2::XmpProperties::registerNs(s= td::basic_string, std::allocator > const= &, std::basic_string, std::allocator > c= onst&)' libdarktable.so: undefined reference to `Exiv2::XmpParser::encode(std::basi= c_string, std::allocator >&, Exiv2::XmpD= ata const&, unsigned short, unsigned int)' libdarktable.so: undefined reference to `Exiv2::ExifData::operator[](std::basic_string, std::allocator > const&)' [...] I suppose this comes from symbol naming conventions between clang++/libc++ = and g++/libstdc++ (wasn't C++ ABI supposed to be standard? I guess not). If= I build exiv2 with g++, I can build darktable, but I feel this way of doin= g things will be a PITA in the future. Does anybody knowledgeable with gcc know how to manage those issues? --=20 Matthieu Volat --Sig_/PV5gzJDOaTAi+z2WtInufth Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iEYEARECAAYFAlKDyhQACgkQ+ENDeYKZi34zvACfUG9SRrg3FzthhRCVSlGvXiLS aVgAn0/hAAPM+JMHydEaYLoPvq2Y2ali =BoRb -----END PGP SIGNATURE----- --Sig_/PV5gzJDOaTAi+z2WtInufth--