[Libreoffice] Problem with sal/cppunittester

Caolán McNamara caolanm at redhat.com
Fri Nov 5 14:36:40 PDT 2010


On Fri, 2010-11-05 at 21:10 +0000, Wols Lists wrote:
> Just doing an emerge cppunit.

It shouldn't be necessary to use system cppunit, cppunit should be built
as part of the build.

So, lets just document debugging this...

sal/cppunittester/makefile.mk has 

APP1STDLIBS = $(CPPUNITLIB) $(SALLIB)

in it, 

solenv/inc/libs.mk 
has 

CPPUNITLIB = -lcppunit

for the case where we build our own cppunit

check your solver/330/unxlng*.pro/lib/ and see is there a libcppunit.so
in there. You'll probably find that there isn't, but that there is a
libcppunit-1.12.so.1 but no libcppunit.so. Missing link maybe. Because
I'm not building from scratch everytime I happen to have the link from
earlier, which is probably also why a lot of other people don't see this
yet.

hmm, so cd cppunit and see what changed recently, 

git log -n 10

one of them (11c3398a91d7f65a45e08ad4ee33bdb5a7355111) says something a
modifications to "cppunit library name", hum ho, that sounds likely

git show 11c3398a91d7f65a45e08ad4ee33bdb5a7355111

shows a change to the prj/d.lst i.e.

+..\%__SRC%\lib\libcppunit-1.12.so.1.0 %_DEST%\lib%_EXT%
\libcppunit-1.12.so.1.0
+symlink: %_DEST%\lib%_EXT%\libcppunit-1.12.so.1.0 %_DEST%\lib%_EXT%
\libcppunit.so

revert that chunk, i.e. remove the symlink: line which mentions
libcppunit-1.12.so.1.0 (not the one that says libcppunit-1.12.so.1) and
it should work.

so apparently for some reason having *two* lines with symlink: in it
with the same target breaks (which is news to me). Someone should have a
look at deliver in the solenv to find what it does on seeing a
"symlink:" line and try and fix it to do the right thing.

C.



More information about the LibreOffice mailing list