Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 May 2013 11:42:52 +0200
From:      Tijl Coosemans <tijl@coosemans.org>
To:        office@freebsd.org
Subject:   Re: Fixing USE_GCC for LibreOffice on i386
Message-ID:  <518E129C.9010208@coosemans.org>
In-Reply-To: <518D61C1.7020402@gmail.com>
References:  <518D61C1.7020402@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
------enig2ARMDLIEMGGMUQVERUPCN
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 2013-05-10 23:08, Kevin Zheng wrote:
> This issue was discussed quite a bit on this list a little while ago,
> and I'd like to figure out what we should do to fix the problem.
>=20
> In ports/176967, Gabor (pgj@) pointed out that the WITH_GCC knob fixes
> LibreOffice by using GCC instead of Clang. This fix works for me.
>=20
> In ports/178041, the submitter converted the WITH_GCC knob to a
> user-configurable option (via `make config`).
>=20
> Instead, I'm thinking that we add some logic to the Makefile that
> requires GCC when ARCH is i386. This way, users won't have to wrestle
> with the knob or configurable option. In addition, this let us keep
> using Clang on the systems where it actually works.
>=20
> Ideas/suggestions/comments? If not, I'd like to send in a PR with my
> proposed changes.

It has always worked fine for me on i386 with clang. I suspect that
some libreoffice dependency got compiled with lang/gcc* and therefore
links with /usr/local/lib/gcc*/libstdc++.so.6 while a clang compiled
libreoffice links with /usr/lib/libstdc++.so.6.

If that's the case it might help to create /etc/libmap.conf and add
the following line (adjust the '47'):

libstdc++.so.6	gcc47/libstdc++.so.6




------enig2ARMDLIEMGGMUQVERUPCN
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iF4EAREIAAYFAlGOEqIACgkQfoCS2CCgtivVNgD9EPDjD7ZUHTHM55UatWbSMejK
jNwofuNfVmLzK3o84gYBAIeR2oDaNrR06I0wl37FeXB7pKa1C74ndybSYLO6+IP6
=Ks6S
-----END PGP SIGNATURE-----

------enig2ARMDLIEMGGMUQVERUPCN--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?518E129C.9010208>