From owner-freebsd-ports@FreeBSD.ORG Wed Feb 20 23:43:00 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 868888E0; Wed, 20 Feb 2013 23:43:00 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by mx1.freebsd.org (Postfix) with ESMTP id 6B013323; Wed, 20 Feb 2013 23:43:00 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.6/8.14.6) with ESMTP id r1KNh0RC051953; Wed, 20 Feb 2013 15:43:00 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.6/8.14.6/Submit) id r1KNh0Fi051952; Wed, 20 Feb 2013 15:43:00 -0800 (PST) (envelope-from sgk) Date: Wed, 20 Feb 2013 15:43:00 -0800 From: Steve Kargl To: Baptiste Daroussin Subject: Re: Building libreoffice dies with logl@GLIBCXX_3.4 Message-ID: <20130220234300.GA29997@troutmask.apl.washington.edu> References: <20130220225555.GB44319@troutmask.apl.washington.edu> <20130220230246.GB48099@ithaqua.etoilebsd.net> <20130220231023.GA45309@troutmask.apl.washington.edu> <20130220231239.GD48099@ithaqua.etoilebsd.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130220231239.GD48099@ithaqua.etoilebsd.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-office@freebsd.org, freebsd-ports@freebsd.org 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: Wed, 20 Feb 2013 23:43:00 -0000 On Thu, Feb 21, 2013 at 12:12:39AM +0100, Baptiste Daroussin wrote: > On Wed, Feb 20, 2013 at 03:10:23PM -0800, Steve Kargl wrote: > > On Thu, Feb 21, 2013 at 12:02:46AM +0100, Baptiste Daroussin wrote: > > > On Wed, Feb 20, 2013 at 02:55:55PM -0800, Steve Kargl wrote: > > > > Why is libreoffice looking for glibc? > > > > > > > > > > It is not looking for glibc but libstdc++ it happends because you have mixed > > > compilers on your system, meaning that some of the dependencies of libreoffice > > > are not linked against the based libstdc++ while libreoffice is trying to link > > > to it. > > > > Which compilers? I have removed all of base clang and completely > > rebuilt this system with gcc. The only compilers available are > > base gcc and lang/gcc. > > Some of the dependencies of libreoffice are being linked against > libstdc++ that comes with base gcc while others are linked against > libstdc++ from lang/gcc, and they are not compatible at some point. Thanks for the explanation. It would seem to me that if editors/libreoffice/Makefile contains .if defined(WITH_GCC) USE_GCC= 4.6+ DISTFILES+= bd30e9cf5523cdfc019b94f5e1d7fd19-cppunit-1.12.1.tar.gz:ext CONFIGURE_ENV+= CXXCPP="${CPP}" .else .if exists(/usr/bin/clang) && ${OSVERSION} >= 900014 CC= /usr/bin/clang CPP= /usr/bin/clang-cpp CXX= /usr/bin/clang++ CONFIGURE_ENV+= CXXCPP="${CPP}" .else # XXX Clang PR13308 (http://llvm.org/bugs/show_bug.cgi?id=13308) BUILD_DEPENDS+= clang>=3.2:${PORTSDIR}/lang/clang CC= ${LOCALBASE}/bin/clang CPP= ${CC} -E CXX= ${LOCALBASE}/bin/clang++ CONFIGURE_ENV+= CXXCPP="${CXX} -E" .endif then textproc/clucene/Makefile should contain at least .if defined(WITH_GCC) USE_GCC= 4.6+ .endif Although this may also be insufficient, because I just rebuilt clucene with lang/gcc and it yield ptop:kargl[217] ls *lucene*.so libclucene-contribs-lib.so@ libclucene-shared.so@ libclucene-core.so@ laptop:kargl[218] ldd libclucene-contribs-lib.so | grep libstd libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x48c00000) laptop:kargl[219] ldd libclucene-core.so | grep libstd libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x48c00000) laptop:kargl[220] ldd libclucene-shared.so | grep libstd libstdc++.so.6 => /usr/local/lib/gcc46/libstdc++.so.6 (0x48208000) which means clucene does not honor CXX etc. -- Steve