From owner-freebsd-office@FreeBSD.ORG Mon Jul 23 19:19:23 2012 Return-Path: Delivered-To: freebsd-office@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D6B521065703; Mon, 23 Jul 2012 19:19:23 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 72BC08FC16; Mon, 23 Jul 2012 19:19:23 +0000 (UTC) Message-ID: <500DA3BA.30604@FreeBSD.org> Date: Mon, 23 Jul 2012 15:19:22 -0400 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120626 Thunderbird/13.0.1 MIME-Version: 1.0 To: freebsd-office@freebsd.org References: <500D91AA.70502@FreeBSD.org> In-Reply-To: <500D91AA.70502@FreeBSD.org> X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: [RFC] LibreOffice build issues X-BeenThere: freebsd-office@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Office applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2012 19:19:24 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2012-07-23 14:02:18 -0400, Jung-uk Kim wrote: > Over the weekend, I have tried various environments to build > LibreOffice. Basically, it is really tricky to do the right thing > in 7 and 8 branches. > > devel/boost-libs in ports tree (1.48) is newer than bundled one > (1.44). Unfortunately, Boost 1.48 has various issues in C++98 > mode. That's why LibreOffice had to be built with C++11 mode in the > first place. Alas, C++11 support for libstdc++ in the base system > doesn't exist and 7 & 8 is worse than 9, I think. The only way to > build it cleanly for me on 7.4 and 8.2 was with bundled Boost + > base GCC in default mode[1] (but I believe you may experience > run-time problems). llvm/clang/binutils combo from ports may be > able to build it[2] but I don't think we can guarantee its > correctness. > > So, I am stuck here. What do we do now? :-( > > Jung-uk Kim > > [1] devel/boost-libs had to be removed first because it is > *always* picked up first with "-I/usr/local/include" in the > CXXFLAGS. ... I found a solution for this specific problem. We can add CPPFLAGS to CONFIGURE_ENV, rather than directly define it in the port Makefile, not to pick up random files from ${LOCALBASE}/include or ${LOCALBASE}/lib. Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlANo7oACgkQmlay1b9qnVMcuwCfdtN+qlxBXoErmV6zZXtCKkiz zzQAoJpEoilNl5QfIG1sIEqQRXplJ9ut =myCj -----END PGP SIGNATURE-----