incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From linyi li <lilinyi921...@gmail.com>
Subject Re: smoketestoo_native
Date Wed, 18 Jan 2012 10:04:07 GMT
Hi Ariel,


is /usr/local/lib in the linker search path?
>
>  Can you tell me how to put /usr/local/lib in the linker search path.


* does your system set the environment variable LD_LIBRARY_PATH
>  Try echo $LD_LIBRARY_PATH
>
> My system did not set the environment variable LD_LIBRARY_PATH, the echo
result is NULL.


* does your system add this path in the ld configuration? Usually
>  /etc/ld.so.conf and /etc/ld.so.conf.d/*.conf
>
>
> If /usr/local/lib is not on the linker search path you will always get
> undefined references.
> Adding -L/usr/local/lib to the linker command is not enough.
>
> 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

echo Manifest-Version: 1.0 > ../../../../../../
unxlngi6.pro/class/test-tools/META-INF/MANIFEST.MF
echo "Class-Path: juh.jar ridl.jar unoil.jar" >> ../../../../../../
unxlngi6.pro/class/test-tools/META-INF/MANIFEST.MF
echo "Solar-Version: 340m1(Build:9584)" >> ../../../../../../
unxlngi6.pro/class/test-tools/META-INF/MANIFEST.MF
cd ../../../../../../unxlngi6.pro/class/test-tools && zip  -u -rX
../test-tools.jar META-INF/MANIFEST.MF  || ret=$?; if [[ "$ret" != "12" &&
"$ret" != "1" ]] ; then exit $ret ; fi && echo "Nothing to update for zip"
updating: META-INF/MANIFEST.MF (deflated 14%)
cd ../../../../../../unxlngi6.pro/class && zip  -u -rX test-tools.jar
org/openoffice/test/tools  || ret=$?; if [[ "$ret" != "12" && "$ret" != "1"
]] ; then exit $ret ; fi && echo "Nothing to update for zip"
Nothing to update for zip

Entering /home/lily/ooo/main/test/source/java/org/openoffice/test

echo Manifest-Version: 1.0 > ../../../../../
unxlngi6.pro/class/test/META-INF/MANIFEST.MF
echo "Class-Path: juh.jar ridl.jar unoil.jar" >> ../../../../../
unxlngi6.pro/class/test/META-INF/MANIFEST.MF
echo "Solar-Version: 340m1(Build:9584)" >> ../../../../../
unxlngi6.pro/class/test/META-INF/MANIFEST.MF
cd ../../../../../unxlngi6.pro/class/test && zip  -u -rX ../test.jar
META-INF/MANIFEST.MF -x "org/openoffice/test/tools/*" || ret=$?; if [[
"$ret" != "12" && "$ret" != "1" ]] ; then exit $ret ; fi && echo "Nothing
to update for zip"
updating: META-INF/MANIFEST.MF (deflated 14%)
cd ../../../../../unxlngi6.pro/class && zip  -u -rX test.jar
org/openoffice/test -x "org/openoffice/test/tools/*" || ret=$?; if [[
"$ret" != "12" && "$ret" != "1" ]] ; then exit $ret ; fi && echo "Nothing
to update for zip"
Nothing to update for zip

Entering /home/lily/ooo/main/test/inc


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$

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message