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

Michael Meeks michael.meeks at novell.com
Thu Dec 2 03:01:02 PST 2010


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 -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




More information about the LibreOffice mailing list