Dear all,

I am trying to build version 3.6.2.1 from source on a Linux box.

I want to use headers already on system and system installed versions of libraries as much as possible, so I pass --with-system-headers --with-system-libs to ./configure.

The external dependencies are installed in /opt, so I
export CPPFLAGS="-I/opt/include"
export LDFLAGS="-L/opt/lib"
before running ./autogen.sh

I also have
export LD_LIBRARY_PATH="/opt/lib"

In general, this seems to work, but there are a few problems:



In sal, this command:
--------------------------------------------------
S=/home/kaarpux/KX_OO/kaarpux/linux/build/opt/libreoffice-core-3.6.2.1 && O=$S/solver/unxlngi6.pro && W=$S/workdir/unxlngi6.pro && mkdir -p $W/CppunitTest/ && (LD_LIBRARY_PATH="$O/lib":$O/lib/sqlite DBGSV_ERROR_OUT=shell STAR_RESOURCEPATH=$O/bin/ $O/bin/cppunit/cppunittester $W/LinkTarget/CppunitTest/libtest_Module_DLL.so --headless > $W/CppunitTest/Module_DLL.test.log 2>&1 || (cat $W/CppunitTest/Module_DLL.test.log && echo; echo "Error: a unit test failed, please do one of:"; echo; echo "export DEBUGCPPUNIT=TRUE # for exception catching"; echo "export GDBCPPUNITTRACE=\"gdb --args\" # for interactive debugging"; echo "export VALGRIND=memcheck # for memory checking" ; echo "and retry." && false))
--------------------------------------------------

generates this error:
--------------------------------------------------
/home/kaarpux/KX_OO/kaarpux/linux/build/opt/libreoffice-core-3.6.2.1/solver/unxlngi6.pro/bin/cppunit/cppunittester: error while loading shared libraries: libcppunit-1.12.so.1: cannot open shared object file: No such file or directory
--------------------------------------------------
Even though the shared library IS present under /opt/lib, and the symlinks are not broken.
Workaround: --without-system-cppunit





In tail_build, this command:
--------------------------------------------------
S=/home/kaarpux/KX_OO/kaarpux/linux/build/opt/libreoffice-core-3.6.2.1 && O=$S/solver/unxlngi6.pro && W=$S/workdir/unxlngi6.pro && rm -rf $W/Extension/presenter-screen/root/help/en-US && mkdir $W/Extension/presenter-screen/root/help/en-US && LD_LIBRARY_PATH="$O/lib" $O/bin/HelpLinker -mod help -extlangsrc $W/Extension/presenter-screen/help/en-US -sty $O/bin/embed.xsl -extlangdest $W/Extension/presenter-screen/root/help/en-US -idxcaption $O/bin/idxcaption.xsl -idxcontent $O/bin/idxcontent.xsl com.sun.PresenterScreen-linux_x86/presenter.xhp && (cd $W/Extension/presenter-screen/help/en-US && zip -r $W/Extension/presenter-screen/root/help/en-US/help.jar com.sun.PresenterScreen-linux_x86/presenter.xhp) && LD_LIBRARY_PATH="$O/lib" $O/bin/HelpIndexer -lang en-US -mod help -dir $W/Extension/presenter-screen/root/help/en-US && touch $W/Extension/presenter-screen/root/help/en-US.done
--------------------------------------------------

generates this error:
--------------------------------------------------
/home/kaarpux/KX_OO/kaarpux/linux/build/opt/libreoffice-core-3.6.2.1/solver/unxlngi6.pro/bin/HelpLinker: error while loading shared libraries: libclucene-core.so.1: cannot open shared object file: No such file or directory
--------------------------------------------------
Even though the shared library IS present under /opt/lib, and the symlinks are not broken.
Workaround: --without-system-clucene




In tail_build, this command:
--------------------------------------------------
LD_LIBRARY_PATH="$O/lib":$O/lib/sqlite DBGSV_ERROR_OUT=shell STAR_RESOURCEPATH=$O/bin/ $O/bin/cppunit/cppunittester $W/LinkTarget/CppunitTest/libtest_basic_scanner.so --headless > $W/CppunitTest/basic_scanner.test.log 2>&1
--------------------------------------------------

generates this error:
--------------------------------------------------
Aborted (core dumped)
terminate called after throwing an instance of 'CppUnit::DynamicLibraryManagerException' what(): Failed to load dynamic library: /home/kaarpux/KX_OO/kaarpux/linux/build/opt/libreoffice-core-3.6.2.1/workdir/unxlngi6.pro/LinkTarget/CppunitTest/libtest_basic_scanner.so
--------------------------------------------------




It seems to me that in all 3 cases, the LibreOffice build fails to set -L/opt/lib, and it even forces it's own LD_LIBRARY_PATH, which does not include /opt/lib.

Running
--------------------------------------------------
S=/home/kaarpux/KX_OO/kaarpux/linux/build/opt/libreoffice-core-3.6.2.1 O=$S/solver/unxlngi6.pro W=$S/workdir/unxlngi6.pro LD_LIBRARY_PATH="$O/lib" ldd /home/kaarpux/KX_OO/kaarpux/linux/build/opt/libreoffice-core-3.6.2.1/workdir/unxlngi6.pro/LinkTarget/CppunitTest/libtest_basic_scanner.so | grep "not found"
--------------------------------------------------
gives
--------------------------------------------------
    libgraphite2.so.2.0.0 => not found
--------------------------------------------------
whereas
--------------------------------------------------
S=/home/kaarpux/KX_OO/kaarpux/linux/build/opt/libreoffice-core-3.6.2.1 O=$S/solver/unxlngi6.pro W=$S/workdir/unxlngi6.pro LD_LIBRARY_PATH="/opt/lib:$O/lib" ldd /home/kaarpux/KX_OO/kaarpux/linux/build/opt/libreoffice-core-3.6.2.1/workdir/unxlngi6.pro/LinkTarget/CppunitTest/libtest_basic_scanner.so | grep "not found"
--------------------------------------------------
returns no output, ie. all libraries found.




Any suggestions on how to fix this would be most appreciated.

/Henrik

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to