incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ariel Constenla-Haile <arie...@apache.org>
Subject Re: smoketestoo_native
Date Wed, 18 Jan 2012 12:03:33 GMT
Hi linyi li,

On Wed, Jan 18, 2012 at 06:04:07PM +0800, linyi li wrote:
> > did you build the trunk/main/test module?
> >
> > When I  met the problem in smoketestoo_native module, I tried to build
> test module. But there were problems too. Here is the error message:
> 
> lily@lily-desktop:~/ooo/main$ cd test && build
> build -- version: 275224
> 
> 
> =============
> Building module test
> =============
> 
> Entering /home/lily/ooo/main/test/source/java/org/openoffice/test/tools
> 
> 
> Entering /home/lily/ooo/main/test/source/cpp
> 
> Making:    libtest.so
> g++ -Wl,-z,combreloc -Wl,-z,defs -Wl,-Bsymbolic-functions
> -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo
> -Wl,--hash-style=both -shared -L../../unxlngi6.pro/lib -L../lib
> -L/home/lily/ooo/main/solenv/unxlngi6/lib -L/home/lily/ooo/main/solver/340/
> unxlngi6.pro/lib -L/home/lily/ooo/main/solenv/unxlngi6/lib
> -L/usr/lib/jvm/java-6-sun/lib -L/usr/lib/jvm/java-6-sun/jre/lib/i386
> -L/usr/lib/jvm/java-6-sun/jre/lib/i386/client
> -L/usr/lib/jvm/java-6-sun/jre/lib/i386/native_threads -L/usr/lib ../../
> unxlngi6.pro/slo/getargument.o ../../unxlngi6.pro/slo/gettestargument.o../../
> unxlngi6.pro/slo/officeconnection.o ../../
> unxlngi6.pro/slo/toabsolutefileurl.o
> ../../unxlngi6.pro/slo/uniquepipename.o../../
> unxlngi6.pro/slo/test_version.o -o
> ../../unxlngi6.pro/lib/libtest.so-luno_cppuhelpergcc3 -luno_cppu
> -L/usr/local/lib -lcppunit -luno_sal
> -Wl,--as-needed -ldl -lpthread -lm -Wl,--no-as-needed -Wl,-Bdynamic
> -lstlport_gcc
> ../../unxlngi6.pro/slo/uniquepipename.o: In function
> `test::uniquePipeName(rtl::OUString const&)':
> uniquepipename.cxx:(.text+0xb9): undefined reference to
> `CppUnit::SourceLine::SourceLine(_STL::basic_string<char,
> _STL::char_traits<char>, _STL::allocator<char> > const&, int)'
> ../../unxlngi6.pro/slo/uniquepipename.o: In function `void
> CppUnit::assertEquals<oslProcessError>(oslProcessError const&,
> oslProcessError const&, CppUnit::SourceLine, _STL::basic_string<char,
> _STL::char_traits<char>, _STL::allocator<char> > const&)':
> uniquepipename.cxx:(.text._ZN7CppUnit12assertEqualsI15oslProcessErrorEEvRKT_S4_NS_10SourceLineERKN4_STL12basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEE[void
> CppUnit::assertEquals<oslProcessError>(oslProcessError const&,
> oslProcessError const&, CppUnit::SourceLine, _STL::basic_string<char,
> _STL::char_traits<char>, _STL::allocator<char> > const&)]+0x43): undefined
> reference to
> `CppUnit::AdditionalMessage::AdditionalMessage(_STL::basic_string<char,
> _STL::char_traits<char>, _STL::allocator<char> > const&)'
> uniquepipename.cxx:(.text._ZN7CppUnit12assertEqualsI15oslProcessErrorEEvRKT_S4_NS_10SourceLineERKN4_STL12basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEE[void
> CppUnit::assertEquals<oslProcessError>(oslProcessError const&,
> oslProcessError const&, CppUnit::SourceLine, _STL::basic_string<char,
> _STL::char_traits<char>, _STL::allocator<char> > const&)]+0x73): undefined
> reference to `CppUnit::Asserter::failNotEqual(_STL::basic_string<char,
> _STL::char_traits<char>, _STL::allocator<char> >, _STL::basic_string<char,
> _STL::char_traits<char>, _STL::allocator<char> >, CppUnit::SourceLine
> const&, CppUnit::AdditionalMessage const&, _STL::basic_string<char,
> _STL::char_traits<char>, _STL::allocator<char> >)'
> collect2: ld returned 1 exit status
> dmake:  Error code 1, while making '../../unxlngi6.pro/lib/libtest.so'
> ERROR: error 65280 occurred while making /home/lily/ooo/main/test/source/cpp
> 
> lily@lily-desktop:~/ooo/main/test$


Let's try first to find out if this is the usual error. If cppunit ended
in /usr/local/lib it means you compiled it yourself. You should have
seen the usual warning when installing cppunit:

----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

   If you ever happen to want to link against installed libraries
   in a given directory, LIBDIR, you must either use libtool, and
   specify the full pathname of the library, or use the `-LLIBDIR'
   flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------


An easy way to test this is adding /usr/local/lib to LD_LIBRARY_PATH before 
compiling:

]$ export LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}

Does linking work then?


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Mime
View raw message