LibreOffice build problem

Vladimir A. Petrov vaporg at gmail.com
Fri Jan 11 21:49:08 UTC 2013


Hello, again!

I workarounded this issue. Actually the root cause is attempt to link as

    gcc46 -o conftest -O2 -pipe -march=athlon64-sse3
-Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing
-I/usr/local/include -I/usr/local/include/db41 -L/usr/local/lib
-Wl,-rpath=/usr/local/lib/gcc46 conftest.c -ldb-  -lexpat -lcups

But there are no libdb.so in /usr/local/lib instead:

[vap at vapboo /usr/home/vap/work]$ ls /usr/local/lib/libdb*.so
/usr/local/lib/libdb-4.8.so      /usr/local/lib/libdb_cxx-4.8.so
/usr/local/lib/libdb41.so
/usr/local/lib/libdb41_cxx.so

So I just created simlink libdb.so to libdb-4.8.so in this directory.

Thanks!

2013/1/12 Vladimir A. Petrov <vaporg at gmail.com>:
> Hello!
>
> I've just faced with LibreOffice building problem from the ports
> collection. The build procedure fails on the configure stage with the
> following message:
>
> ===>  Configuring for libreoffice-3.5.7_1
> configure: WARNING: unrecognized options: --with-qt-includes,
> --with-qt-libraries, --with-extra-libs, --with-extra-includes
> ********************************************************************
> *
> *   Running LibreOffice build configuration.
> *
> ********************************************************************
> (...)
> checking whether db is at least 4.1... yes
> checking for dbopen in -ldb-... no
> checking for __db185_open in -ldb-... no
> checking for dbopen in -ldb... no
> checking for __db185_open in -ldb... no
> configure: error: db library not found. Use the correct -L flag,
> or install the Berkeley db development package.
> ===>  Script "configure" failed unexpectedly.
> Please report the problem to office at FreeBSD.org [maintainer] and attach the
> "/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.7.2/config.log"
> including the output of the failure of your make command. Also, it might be
> a good idea to provide an overview of all packages installed on your system
> (e.g. a /usr/sbin/pkg_info -Ea).
> *** Error code 1
>
> BTW the Berkley DP package does exist:
>
> [root at vapboo /usr/ports/editors/libreoffice]# pkg_info | grep -i berk
> db41-4.1.25_4       The Berkeley DB package, revision 4.1
> db48-4.8.30.0       The Berkeley DB package, revision 4.8
>
> Gzipped  /usr/ports/editors/libreoffice/work/libreoffice-core-3.5.7.2/config.log
> is attached as libreoffice.config.log.gz
>
> The output of /usr/sbin/pkg_info -Ea is attached as pkg_info-Ea.log.gz
>
> I'm trying to build it on the following system
> [vap at vapboo /usr/home/vap/tmp]$ uname -a
> FreeBSD vapboo 8.3-STABLE FreeBSD 8.3-STABLE #4: Fri Jan 11 11:57:27
> MSK 2013     root at vapboo:/usr/obj/usr/src/sys/VAPBOO  amd64
>
> I'm going to try to rezolve this issue by myself, however any advices
> from your side will be greatly appreciated.
>
> Thank you!
> --
> /vap/



-- 
/vap/


More information about the freebsd-office mailing list