From owner-freebsd-ports@FreeBSD.ORG Thu May 30 17:21:30 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by hub.freebsd.org (Postfix) with ESMTP id 45F6A102; Thu, 30 May 2013 17:21:30 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Message-ID: <51A78A98.10106@FreeBSD.org> Date: Thu, 30 May 2013 13:21:28 -0400 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130517 Thunderbird/17.0.6 MIME-Version: 1.0 To: Waitman Gobble Subject: Re: FreeBSD Port: textproc/libvisio References: <20130530022559.1FD8D36F6C6A@dx.burplex.com> In-Reply-To: <20130530022559.1FD8D36F6C6A@dx.burplex.com> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org, Mike Jakubik X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 May 2013 17:21:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2013-05-29 22:25:59 -0400, Waitman Gobble wrote: > On Wed, 29 May 2013 11:39:55 -0400, Mike Jakubik > wrote: >> >> On 05/29/13 03:56, Waitman Gobble wrote: >>> On Mon, 27 May 2013 13:10:52 -0400, Mike Jakubik >>> wrote: >>>> Hello, >>>> >>>> I am unable to compile this port, below is the output from >>>> gcc48 and clang 3.2. >>>> >>>> 9.1-STABLE FreeBSD 9.1-STABLE #0: Wed May 15 17:07:33 EDT >>>> 2013 >>>> >>>> gmake[4]: Entering directory ../../lib/.libs/libvisio-0.0.so: >>>> undefined reference to `std::ctype::_M_widen_init() >>>> const' collect2: error: ld returned 1 exit status gmake[4]: >>>> *** [vsd2raw] Error 1 >>>> >>>> >>>> >>> Hi, >>> >>> Check that /etc/libmap.conf is empty or non-existent, >>> deinstall,rebuild and reinstall graphics/libwpg then build > textproc/libvisio >>> It seems to work with clang (ports version) on FreeBSD >>> 10.0-CURRENT >>> >>> >> >> Hello, >> >> I am using clang for base and gcc48 for ports, i have populated >> /etc/libmap.conf per the freebsd handbook with the following: >> >> libgcc_s.so.1 gcc48/libgcc_s.so.1 libgomp.so.1 >> gcc48/libgomp.so.1 libobjc.so.3 gcc48/libobjc.so.2 libssp.so.0 >> gcc48/libssp.so.0 libstdc++.so.6 gcc48/libstdc++.so.6 >> >> Is this not the right way for clang and gcc to co-exist? >> >> Thank you. > > Hi, > > Yes, what you have in libmap.conf appears to be correct (I'm > presuming those are the correct library versions). Actually, it is really a bad idea to map incompatible libraries like this. For example, gcc48/libstdc++.so.6 is ABI incompatible with the one from the base. > I have not yet had the time to figure out why, but I had a similar > build problem, using clang in ports to rebuild libwpg first, then > libvisio seems to work. That is the correct way to fix it. Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iQEcBAEBAgAGBQJRp4qXAAoJECXpabHZMqHOSRAH/jIEosUwL7mgSlLfdCo4fJx1 Z67/DZJpegizJXP4kc3h4mAsPXSMrnkK1joC0/N0M5kGaGhQXXzlaYZFV2txhEKn yyqBKLRU6hG/v7v8wMH7VOH95PN2WZe7ejvBi/hH1ZhqWrxL5Qra3dXPMfown3hJ fOesTDBLlVdwXR+MGDL3dpODeL8lenXIFWj2Z8HYkLyF6dgk8wmdrRy2b5zia9/U ViBNdxuPU3gWk+ccpIF4wUB1RCBYLArl/ElDnnT+so7vlHkAvJj3GZYxugCEtoni UH9dfDTKMo/ZcynRAp5NkGG6GCg57pTeIHrYr3tyId3KnjzWezPJnHcMLKJ0Ay8= =puRy -----END PGP SIGNATURE-----