[Libreoffice] Building problem, cppunit, libcppunit undefined reference to dlopen

Joost Eekhoorn joost.eekhoorn at gmail.com
Thu Dec 2 10:04:38 PST 2010


Hi Michael,

This is the end of strace output:

Process 8798 resumed
Process 8799 detached
[pid  8798] --- SIGCHLD (Child exited) @ 0 (0) ---
Process 8797 resumed
Process 8798 detached
--- SIGCHLD (Child exited) @ 0 (0) ---
open("/usr/share/locale-langpack/en_US.UTF-8/LC_MESSAGES/make.mo", O_RDONLY)
= -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/make.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale-bundle/en_US.UTF-8/LC_MESSAGES/make.mo", O_RDONLY) =
-1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_US.utf8/LC_MESSAGES/make.mo", O_RDONLY)
= -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/make.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale-bundle/en_US.utf8/LC_MESSAGES/make.mo", O_RDONLY) =
-1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_US/LC_MESSAGES/make.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale-bundle/en_US/LC_MESSAGES/make.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en.UTF-8/LC_MESSAGES/make.mo", O_RDONLY) =
-1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale-bundle/en.UTF-8/LC_MESSAGES/make.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en.utf8/LC_MESSAGES/make.mo", O_RDONLY) =
-1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale-bundle/en.utf8/LC_MESSAGES/make.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en/LC_MESSAGES/make.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/share/locale-bundle/en/LC_MESSAGES/make.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
make: *** [all] Error 1
chdir("/home/joost/work/git/libo")      = 0

My /usr/share has locale and locale-bundle, but not locale-langpack.
My /usr/share/locale has en_US, but not en_US.UTF-8.

Thanks, Joost


2010/12/2 Michael Meeks <michael.meeks at novell.com>

> Hi Joost,
>
> On Thu, 2010-12-02 at 08:28 +0100, Joost Eekhoorn wrote:
> > I missed the e-mail about moving from rawbuild to native build, so I
> > did remove the old installation.
>
>        :-)
>
> > Then I did a new Native Build installation as described on the wiki
> > page.
>
>         Great.
>
> > make[2]: Entering directory
> > `/home/joost/work/git/libo/clone/libs-extern/cppunit/
> unxlngx6.pro/misc/build/cppunit-1.12.1/src/DllPlugInTester'
> > /bin/sh ../../libtool --tag=CXX   --mode=link g++   -ldl  -o
> > DllPlugInTester DllPlugInTester.o
> > CommandLineParser.o ../../src/cppunit/libcppunit.la -lm
> > g++ -o .libs/DllPlugInTester DllPlugInTester.o CommandLineParser.o
> > -ldl ../../src/cppunit/.libs/libcppunit.so -lm  -Wl,--rpath
> > -Wl,/home/joost/work/git/libo/clone/libs-extern/cppunit/
> unxlngx6.pro/misc/build/cppunit-1.12.1/ooo-install/lib
> > ../../src/cppunit/.libs/libcppunit.so: undefined reference to `dlsym'
> > ../../src/cppunit/.libs/libcppunit.so: undefined reference to `dlopen'
> > ../../src/cppunit/.libs/libcppunit.so: undefined reference to
> > `dlclose'
> > collect2: ld returned 1 exit status
>
>         That is rather odd. My equivalent line is:
>
> /bin/sh ../../libtool --tag=CXX   --mode=link /opt/icecream/bin/g++
> -I/data/opt/OpenOffice/bootstrap/solver/330/unxlngi6.pro/inc/stl
> -DGXX_INCLUDE_PATH=/usr/include/c++/4.5<http://unxlngi6.pro/inc/stl%0A-DGXX_INCLUDE_PATH=/usr/include/c++/4.5>-ldl
> -L/data/opt/OpenOffice/bootstrap/solver/330/unxlngi6.pro/lib -o
> DllPlugInTester DllPlugInTester.o
> CommandLineParser.o ../../src/cppunit/libcppunit.la -Wl,-Bdynamic
> -lstlport_gcc -lm -lstdc++  -lm
>
>        It looks like you're missing a some -L<library path>s in there - but
> surely they cannot affect this - /usr/lib will be in the compiler
> library search paths (surely).
>
>        I assume you have a /usr/lib/libdl.so (and lib64) and that you have
> glibc-devel packages installed [ it would be hard not to I think ].
>
>        Most odd; ;-) perhaps an "strace -f -e file make" output will be
> more
> helpful, showing you which libdl (if any) it is finding.
>
>        Thanks,
>
>                Michael.
>
> --
>  michael.meeks at novell.com  <><, Pseudo Engineer, itinerant idiot
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20101202/8f3b6977/attachment.html>


More information about the LibreOffice mailing list