Fwd: libreoffice-4.0.1_1 failed on i386 8

Tijl Coosemans tijl at coosemans.org
Thu Apr 11 16:33:53 UTC 2013


On 2013-04-02 06:52, Martin Wilke wrote:
> Begin forwarded message:
>
>> Excerpt from the build log at
>>
>> http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/a.8.20130402010859.pointyhat/libreoffice-4.0.1_1.log
>>
>>  [... lines trimmed ...]
>>
>> [build CXX] sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
>> [build CXX] sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
>> [build LNK] StaticLibrary/libooopathutils.a
>> [build LNK] Library/libuno_sal.so
>> [build LNK] StaticLibrary/libcodemaker_cpp.a
>> [build LNK] StaticLibrary/libcodemaker.a
>> [build CXX] registry/tools/fileurl.cxx
>> [build CXX] registry/tools/options.cxx
>> aclocal-1.12: warning: autoconf input should be named 'configure.ac', not 'configure.in'
>> local symbol 0: discarded in section `.text._ZN3osl5MutexD1Ev' from /tmp/lobuild/workdir/unxfbsdi.pro/CxxObject/sal/rtl/source/logfile.o
>> clang: error: linker command failed with exit code 1 (use -v to see invocation)

After a bit of googling I found similar errors reported here:
http://llvm.org/bugs/show_bug.cgi?id=9758

That page says it's a bug in ld fixed here:
http://sourceware.org/ml/binutils-cvs/2004-06/msg00130.html
http://sourceware.org/ml/binutils-cvs/2004-07/msg00002.html (fixup)

The first patch was also submitted here:
http://www.freebsd.org/cgi/query-pr.cgi?pr=gnu/161869

Libreoffice is built with clang from ports but that still uses ld
from base which is quite old on FreeBSD 8. I think it's too late
and too risky to start patching binutils in stable/8 and releng/8.4
now (Dimitry?), so maybe it's best to build Libreoffice on 8.x with
ports gcc (which uses ports binutils). See attached patch.
-------------- next part --------------
Index: editors/libreoffice/Makefile
===================================================================
--- editors/libreoffice/Makefile	(revision 315781)
+++ editors/libreoffice/Makefile	(working copy)
@@ -348,7 +348,7 @@
 
 .include <bsd.port.pre.mk>
 
-.if defined(WITH_GCC)
+.if ${OSVERSION} < 900033 || defined(WITH_GCC)
 USE_GCC=	4.6+
 CONFIGURE_ENV+=	CXXCPP="${CPP}"
 .else
-------------- 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/20130411/d5ec6d6a/attachment.sig>


More information about the freebsd-office mailing list