editors/libreoffice not building

Jung-uk Kim jkim at FreeBSD.org
Thu Oct 22 00:23:16 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 10/21/2015 19:46, Julian H. Stacey wrote:
> Hi office at FreeBSD.org
> 
> I have occasionaly built editors/libreoffice, (always a small 
> miracle, its so big).  Build has failed a few times lately, while I
> debugged other ports, & upgraded ports/, & now just this monster 
> libreoffice is left to do.
> 
> pkg info | wc -l 1136
> 
> uname -a FreeBSD lapr.js.berklix.net 11.0-CURRENT FreeBSD
> 11.0-CURRENT #12182: Mon Oct 19 23:57:08 CEST 2015 
> jhs at lapr.js.berklix.net:/usr/src/sys/amd64/compile/LAPR.small 
> amd64
> 
> cd /usr/ports/editors/libreoffice ; make
> 
> had been running for about a day with cd /usr/ports ; cat
> .svn_revision 399289
> 
> then it broke with
> 
> ===>  Building for libreoffice-5.0.2 gmake[2]: Entering directory
> '/data/release/11.0-CURRENT/usr/ports/editors/libreoffice/work/libreof
fice-5.0.2.2'
>
> 
Automatic fetching of external tarballs is disabled.
> mkdir -p
> /data/release/11.0-CURRENT/usr/ports/editors/libreoffice/work/libreoff
ice-5.0.2.2/instdir
>
> 
/data/release/11.0-CURRENT/usr/ports/editors/libreoffice/work/libreoffic
e-5.0.2.2/solenv/bin/install-gdb-printers
- -a
/data/release/11.0-CURRENT/usr/ports/editors/libreoffice/work/libreoffic
e-5.0.2.2/instdir
- -c
> gmake -j 1  -rs -f
> /data/release/11.0-CURRENT/usr/ports/editors/libreoffice/work/libreoff
ice-5.0.2.2/Makefile.gbuild
> all gmake[3]: Entering directory
> '/data/release/11.0-CURRENT/usr/ports/editors/libreoffice/work/libreof
fice-5.0.2.2'
>
> 
gmake[3]: *** No rule to make target
'/usr/ports/distfiles/libreoffice/4b87018f7fff1d054939d19920b751a0-colla
da2gltf-master-cb1d97788a.tar.bz2',
needed by
'/data/release/11.0-CURRENT/usr/ports/editors/libreoffice/work/libreoffi
ce-5.0.2.2/workdir/UnpackedTarget/4b87018f7fff1d054939d19920b751a0-colla
da2gltf-master-cb1d97788a.tar.bz2'.
 Stop.
> gmake[3]: Leaving directory
> '/data/release/11.0-CURRENT/usr/ports/editors/libreoffice/work/libreof
fice-5.0.2.2'
>
> 
Makefile:247: recipe for target 'build' failed
> gmake[2]: *** [build] Error 2 gmake[2]: Leaving directory
> '/data/release/11.0-CURRENT/usr/ports/editors/libreoffice/work/libreof
fice-5.0.2.2'
>
> 
*** Error code 1
> 
> Stop.
> 
> Grep "Automatic fetching of external tarballs is disabled"
> 
> work/libreoffice-5.0.2.2/Makefile.in 
> work/libreoffice-5.0.2.2/Makefile
> 
> So without wasting much time to understand this, I tried
> 
> make DO_FETCH_TARBALLS=YES fetch

It looks like your ${DISTDIR} is not ${PORTSDIR}/distfiles, i.e.,
${PORTSDIR} is /data/release/11.0-CURRENT/usr/ports and ${DISTDIR} is
/usr/ports/distfiles.  Is the former symlink'ed to /usr/ports?
Anyway, you may need to explicitly set DISTDIR or create yet another
symlink to make it correct, e.g., somthing like
/data/release/11.0-CURRENT/usr/ports/distfiles -> /usr/ports/distfiles.

> make ... continued briefly then blew again:
> 
> no obvious way to instantiate implementation
> "com.sun.star.comp.CmisContentProvider" 
> /data/release/11.0-CURRENT/usr/ports/editors/libreoffice/work/libreoff
ice-5.0.2.2/postprocess/qa/services.cxx:310:N12_GLOBAL__N_14TestE::test
>
> 
forced failure
> - instantiating "com.sun.star.comp.Draw.CDRImportFilter" via
> "com.sun.star.comp.Draw.CDRImportFilter"  caused
> com.sun.star.loader.CannotActivateFactoryException "loading
> component library
> <file:///data/release/11.0-CURRENT/usr/ports/editors/libreoffice/work/
libreoffice-5.0.2.2/instdir/program/libwpftdrawlo.so>
> failed"
> 
> services.cxx:310:Assertion Test name: N12_GLOBAL__N_14TestE::test 
> forced failure - instantiating
> "com.sun.star.comp.Draw.CDRImportFilter" via
> "com.sun.star.comp.Draw.CDRImportFilter"  caused
> com.sun.star.loader.CannotActivateFactoryException "loading
> component library
> <file:///data/release/11.0-CURRENT/usr/ports/editors/libreoffice/work/
libreoffice-5.0.2.2/instdir/program/libwpftdrawlo.so>
> failed"
> 
> Failures !!! Run: 1   Failure total: 1   Failures: 1   Errors: 0
> 
> Error: a unit test failed, please do one of:
> 
> export DEBUGCPPUNIT=TRUE            # for exception catching export
> CPPUNITTRACE="gdb --args"    # for interactive debugging on Linux 
> export VALGRIND=memcheck            # for memory checking
> 
> and retry using: make CppunitTest_services
> 
> /data/release/11.0-CURRENT/usr/ports/editors/libreoffice/work/libreoff
ice-5.0.2.2/solenv/gbuild/CppunitTest.mk:87:
> recipe for target
> '/data/release/11.0-CURRENT/usr/ports/editors/libreoffice/work/libreof
fice-5.0.2.2/workdir/CppunitTest/services.test'
> failed gmake[3]: ***
> [/data/release/11.0-CURRENT/usr/ports/editors/libreoffice/work/libreof
fice-5.0.2.2/workdir/CppunitTest/services.test]
> Error 1 gmake[3]: Leaving directory
> '/data/release/11.0-CURRENT/usr/ports/editors/libreoffice/work/libreof
fice-5.0.2.2'
>
> 
Makefile:247: recipe for target 'build' failed
> gmake[2]: *** [build] Error 2 gmake[2]: Leaving directory
> '/data/release/11.0-CURRENT/usr/ports/editors/libreoffice/work/libreof
fice-5.0.2.2'
>
> 
*** Error code 1
...

I think you'll be able to bypass it with the attached patch.  However,
I am afraid you may have mixed binaries with different C++ ABIs.

Jung-uk Kim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJWKCxtAAoJEHyflib82/FG91QH/Ajndy3R10c2MKNPEiu451Jz
CUVYKa1MSlpRWW+jmZLbNn6WRlWjj+7VD7tm7Vl4GytGGu0zdOvJ0jW919kX6uDa
041mqvUrJdKHIu5emHLoaWUJH4u1apPX3CA5pU+wo/X+8aJ4HWUl/KH7GBnw6vy+
ppa8cqtDdXyjaI2/Gj9ncLdBrDagekWAKeF/dl2IF24pE1RYdbKEE+o/hReSmNQO
B4c8APkzjHOESN7u+EpaqaUPXqbgUteMWthQIVO5b/SQ7w5qG8frf/UytKSb011c
8rU8g9nBQ97y5R6/0iK+Yx1Dh170OYybjCjIJOLemZVvDCRpRUI5prsyLA7cbAw=
=U3l7
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lo.diff
Type: text/x-patch
Size: 269 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-office/attachments/20151021/be536d4e/attachment.bin>


More information about the freebsd-office mailing list