Fixing USE_GCC for LibreOffice on i386

Tijl Coosemans tijl at coosemans.org
Sat May 11 10:17:22 UTC 2013


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.
> 
> 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.
> 
> In ports/178041, the submitter converted the WITH_GCC knob to a
> user-configurable option (via `make config`).
> 
> 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.
> 
> 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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-office/attachments/20130511/12f9a2ed/attachment.sig>


More information about the freebsd-office mailing list