You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Oliver-Rainer Wittmann <or...@googlemail.com> on 2012/01/04 09:23:25 UTC

Re: smoketestoo_native

Hi,

On 29.12.2011 09:40, linyi li wrote:
> After finishing a build I want to do smoketest over Ubuntu. But thers is
> some problem.
>
> My step is:
>
> source LinuxX86Env.Set.sh
>
> cd smoketestoo_native&&  build
>
>
> But error occured while making smoketest.obj. The reason is that some files
> do not exist,such as cppunit/TestAssert.h,  cppunit/TestFixture.h, etc.
>
> I redid "./configure" with "--with-system-cppunit" and builded again. But
> the error is still there.
>
> I downloaded cppunit-cvs-repo-archive.tar.bz2 from internet and put the
> desired files under folder smoketestoo_native, but other errors occured. I
> think maybe I put it in a wrong directory.
>
> Doea anybody know how to fix this problem?
>

Hm.. I did not have such a problem.

I had setup an Ubuntu 11.10, 32bit in a virtual machince using VirtualBox under 
Window 7, 64bit.
My configure options are:
--with-dmake-url=http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2 
\
--with-epm-url=http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz \
--without-junit \
--with-system-cppunit \
--disable-binfilter \
--disable-odk \
--enable-category-b \
--disable-build-mozilla \
--disable-gstreamer \
--without-stlport
After a complete build a 'build' in smoketestoo_native works fine - the test was 
successful.

Do you have some more information about your environment?

Best regards, Oliver.

Re: smoketestoo_native

Posted by Ariel Constenla-Haile <ar...@apache.org>.
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

Re: smoketestoo_native

Posted by linyi li <li...@gmail.com>.
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$

Re: smoketestoo_native

Posted by Ariel Constenla-Haile <ar...@apache.org>.
Hi linyi li,

On Tue, Jan 17, 2012 at 10:00:07AM +0800, linyi li wrote:
> Hi Ariel,
> 
> My problem is the same like L'oiseau de mer.
> 
> The variable CPPUNIT_CFLAGS    is set to: -I/usr/local/include
> The variable CPPUNIT_LIBS      is set to: -L/usr/local/lib -lcppunit


is /usr/local/lib in the linker search path?

* does your system set the environment variable LD_LIBRARY_PATH
  Try echo $LD_LIBRARY_PATH 

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


> The full output of the command when building smoketestoo_native is:
> lily@lily-desktop:~/ooo/main$ cd smoketestoo_native && build
> build -- version: 275224
> 
> 
> =============
> Building module smoketestoo_native
> =============
> 
> Entering /home/lily/ooo/main/smoketestoo_native
> 
> dmake: Executing shell macro: ls
> $(installationtest_instset)/OOo_*_install-arc_$(defaultlangiso).tar.gz
> Making:    libsmoketest.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 -Wl,-O1 -Wl,--version-script ./
> unxlngi6.pro/misc/version_smoketest.map -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/smoketest.o ./unxlngi6.pro/slo/smoketest_version.o -o ./
> unxlngi6.pro/lib/libsmoketest.so -luno_cppuhelpergcc3 -luno_cppu
> -L/usr/local/lib -lcppunit -luno_sal -ltest -Wl,--as-needed -ldl -lpthread
> -lm -Wl,--no-as-needed -Wl,-Bdynamic -lstlport_gcc
> /usr/bin/ld: cannot find -ltest

did you build the trunk/main/test module?


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Re: smoketestoo_native

Posted by linyi li <li...@gmail.com>.
Hi Ariel,

My problem is the same like L'oiseau de mer.

The variable CPPUNIT_CFLAGS    is set to: -I/usr/local/include
The variable CPPUNIT_LIBS      is set to: -L/usr/local/lib -lcppunit

The full output of the command when building smoketestoo_native is:
lily@lily-desktop:~/ooo/main$ cd smoketestoo_native && build
build -- version: 275224


=============
Building module smoketestoo_native
=============

Entering /home/lily/ooo/main/smoketestoo_native

dmake: Executing shell macro: ls
$(installationtest_instset)/OOo_*_install-arc_$(defaultlangiso).tar.gz
Making:    libsmoketest.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 -Wl,-O1 -Wl,--version-script ./
unxlngi6.pro/misc/version_smoketest.map -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/smoketest.o ./unxlngi6.pro/slo/smoketest_version.o -o ./
unxlngi6.pro/lib/libsmoketest.so -luno_cppuhelpergcc3 -luno_cppu
-L/usr/local/lib -lcppunit -luno_sal -ltest -Wl,--as-needed -ldl -lpthread
-lm -Wl,--no-as-needed -Wl,-Bdynamic -lstlport_gcc
/usr/bin/ld: cannot find -ltest
collect2: ld returned 1 exit status
dmake:  Error code 1, while making './unxlngi6.pro/lib/libsmoketest.so'
ERROR: error 65280 occurred while making
/home/lily/ooo/main/smoketestoo_native

lily@lily-desktop:~/ooo/main/smoketestoo_native$



2012/1/12 Ariel Constenla-Haile <ar...@apache.org>

> Hi linyi li,
>
> On Mon, Jan 09, 2012 at 05:59:07PM +0800, linyi li wrote:
> > Hi Oliver,
> > I tried you configure options, but the entire build can not work well.
> >
> > My configure options is:
> >
> > ./configure --with-jdk-home=/usr/lib/jvm/java-6-sun --with-system-python
> > --enable-verbose --with-epm-url="
> > http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz"
> >
> >
> > I downloaded cppunit_1.12.1.orig.tar.gz and installed manually. The error
> > of missing files is gone, but it stoped by the following error:
> >
> > /usr/bin/ld: cannot find -ltest
> >
> > collect2: ld returned 1 exit status
> >
> > dmake: Error code 1, while making './unxlngi6.pro/lib/libsmoketest.so'
> >
> > Then I tried to build in test module, but it prompted: "cppunit disabled.
> > Nothing to do".
> >
> > But if I added "--with-system-cppunit" in the configure, it can not be
> > built successfully.
>
> can you post the content of CPPUNIT_CFLAGS and CPPUNIT_LIBS, and the
> full output of the command when building that module?
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>

Re: smoketestoo_native

Posted by Ariel Constenla-Haile <ar...@apache.org>.
Hi linyi li,

On Mon, Jan 09, 2012 at 05:59:07PM +0800, linyi li wrote:
> Hi Oliver,
> I tried you configure options, but the entire build can not work well.
> 
> My configure options is:
> 
> ./configure --with-jdk-home=/usr/lib/jvm/java-6-sun --with-system-python
> --enable-verbose --with-epm-url="
> http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz"
> 
> 
> I downloaded cppunit_1.12.1.orig.tar.gz and installed manually. The error
> of missing files is gone, but it stoped by the following error:
> 
> /usr/bin/ld: cannot find -ltest
> 
> collect2: ld returned 1 exit status
> 
> dmake: Error code 1, while making './unxlngi6.pro/lib/libsmoketest.so'
> 
> Then I tried to build in test module, but it prompted: "cppunit disabled.
> Nothing to do".
> 
> But if I added "--with-system-cppunit" in the configure, it can not be
> built successfully.

can you post the content of CPPUNIT_CFLAGS and CPPUNIT_LIBS, and the
full output of the command when building that module?

Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Re: smoketestoo_native

Posted by Ariel Constenla-Haile <ar...@apache.org>.
Hi L'oiseau de mer

On Thu, Jan 12, 2012 at 11:18:58AM +0800, L'oiseau de mer wrote:
> I have also meet this problem, my platform is solaris x86:
> =============
> Building module smoketestoo_native
> =============
> 
> Entering /UNIX-LAB/ooo/main/smoketestoo_native
> 
> dmake: Executing shell macro: ls
> $(installationtest_instset)/OOo_*_install-arc_$(defaultlangiso).tar.gz
> Making:    libsmoketest.so
> ld: fatal: library -ltest: not found

It seems you didn't build trunk/main/test/ where libtest.so is built.
If you do build --all in smoketestoo_native the test module will be 
built, because it is in the test moudle build.lst


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Re: smoketestoo_native

Posted by L'oiseau de mer <oi...@gmail.com>.
I have also meet this problem, my platform is solaris x86:
=============
Building module smoketestoo_native
=============

Entering /UNIX-LAB/ooo/main/smoketestoo_native

dmake: Executing shell macro: ls
$(installationtest_instset)/OOo_*_install-arc_$(defaultlangiso).tar.gz
Making:    libsmoketest.so
ld: fatal: library -ltest: not found
ld: fatal: file processing errors. No output written to
./unxsoli4.pro/lib/libsmoketest.so
dmake:  Error code 2, while making './unxsoli4.pro/lib/libsmoketest.so'
---* tg_merge.mk *---

1 module(s):
        smoketestoo_native
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making /UNIX-LAB/ooo/main/smoketestoo_native

When you have fixed the errors in that module you can resume the build
by running:

        build --all:smoketestoo_native


2012/1/10 Oliver-Rainer Wittmann <or...@googlemail.com>:
> Hi,
>
>
> On 09.01.2012 10:59, linyi li wrote:
>>
>> Hi Oliver,
>> I tried you configure options, but the entire build can not work well.
>>
>> My configure options is:
>>
>> ./configure --with-jdk-home=/usr/lib/jvm/java-6-sun --with-system-python
>> --enable-verbose --with-epm-url="
>> http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz"
>>
>>
>> I downloaded cppunit_1.12.1.orig.tar.gz and installed manually. The error
>> of missing files is gone, but it stoped by the following error:
>>
>> /usr/bin/ld: cannot find -ltest
>>
>> collect2: ld returned 1 exit status
>>
>> dmake: Error code 1, while making './unxlngi6.pro/lib/libsmoketest.so'
>>
>> Then I tried to build in test module, but it prompted: "cppunit disabled.
>> Nothing to do".
>>
>> But if I added "--with-system-cppunit" in the configure, it can not be
>> built successfully.
>>
>>
>> Do you have any idea about this?
>>
>>
>
> I do not have any information about your environment, except that you are
> working on Ubuntu.
>
> Regarding the build error it seems you are hit by the linker problem under
> Ubuntu 11.10 - have a look at thread "ld: gold vs bfd" on ooo-dev mailing
> list. Are you using Ubuntu 11.10?
>
> Which configure options are working or not working on your environment
> depends on your system setup. Thus, my configure options along with the
> information about the system which I am using are meant to give you some
> hints about an environment which worked fine.
>
> I am not an expert on Ubuntu. To get my AOO build running in my environment
> I was following the information given on certain threads on ooo-dev mailing
> list and in the building guide in our wiki. I also needed some try-and-error
> rounds in order to succeed.
>
>
> Best regards, Oliver.

Re: smoketestoo_native

Posted by Oliver-Rainer Wittmann <or...@googlemail.com>.
Hi,

On 09.01.2012 10:59, linyi li wrote:
> Hi Oliver,
> I tried you configure options, but the entire build can not work well.
>
> My configure options is:
>
> ./configure --with-jdk-home=/usr/lib/jvm/java-6-sun --with-system-python
> --enable-verbose --with-epm-url="
> http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz"
>
>
> I downloaded cppunit_1.12.1.orig.tar.gz and installed manually. The error
> of missing files is gone, but it stoped by the following error:
>
> /usr/bin/ld: cannot find -ltest
>
> collect2: ld returned 1 exit status
>
> dmake: Error code 1, while making './unxlngi6.pro/lib/libsmoketest.so'
>
> Then I tried to build in test module, but it prompted: "cppunit disabled.
> Nothing to do".
>
> But if I added "--with-system-cppunit" in the configure, it can not be
> built successfully.
>
>
> Do you have any idea about this?
>
>

I do not have any information about your environment, except that you are 
working on Ubuntu.

Regarding the build error it seems you are hit by the linker problem under 
Ubuntu 11.10 - have a look at thread "ld: gold vs bfd" on ooo-dev mailing list. 
Are you using Ubuntu 11.10?

Which configure options are working or not working on your environment depends 
on your system setup. Thus, my configure options along with the information 
about the system which I am using are meant to give you some hints about an 
environment which worked fine.

I am not an expert on Ubuntu. To get my AOO build running in my environment I 
was following the information given on certain threads on ooo-dev mailing list 
and in the building guide in our wiki. I also needed some try-and-error rounds 
in order to succeed.


Best regards, Oliver.

Re: smoketestoo_native

Posted by linyi li <li...@gmail.com>.
Hi Oliver,
I tried you configure options, but the entire build can not work well.

My configure options is:

./configure --with-jdk-home=/usr/lib/jvm/java-6-sun --with-system-python
--enable-verbose --with-epm-url="
http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz"


I downloaded cppunit_1.12.1.orig.tar.gz and installed manually. The error
of missing files is gone, but it stoped by the following error:

/usr/bin/ld: cannot find -ltest

collect2: ld returned 1 exit status

dmake: Error code 1, while making './unxlngi6.pro/lib/libsmoketest.so'

Then I tried to build in test module, but it prompted: "cppunit disabled.
Nothing to do".

But if I added "--with-system-cppunit" in the configure, it can not be
built successfully.


Do you have any idea about this?


2012/1/4 Oliver-Rainer Wittmann <or...@googlemail.com>

> Hi,
>
>
> On 29.12.2011 09:40, linyi li wrote:
>
>> After finishing a build I want to do smoketest over Ubuntu. But thers is
>> some problem.
>>
>> My step is:
>>
>> source LinuxX86Env.Set.sh
>>
>> cd smoketestoo_native&&  build
>>
>>
>>
>> But error occured while making smoketest.obj. The reason is that some
>> files
>> do not exist,such as cppunit/TestAssert.h,  cppunit/TestFixture.h, etc.
>>
>> I redid "./configure" with "--with-system-cppunit" and builded again. But
>> the error is still there.
>>
>> I downloaded cppunit-cvs-repo-archive.tar.**bz2 from internet and put the
>> desired files under folder smoketestoo_native, but other errors occured. I
>> think maybe I put it in a wrong directory.
>>
>> Doea anybody know how to fix this problem?
>>
>>
> Hm.. I did not have such a problem.
>
> I had setup an Ubuntu 11.10, 32bit in a virtual machince using VirtualBox
> under Window 7, 64bit.
> My configure options are:
> --with-dmake-url=http://dmake.**apache-extras.org.codespot.**
> com/files/dmake-4.12.tar.bz2<http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2>\
> --with-epm-url=http://ftp.**easysw.com/pub/epm/3.7/epm-3.**7-source.tar.gz<http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz>\
> --without-junit \
> --with-system-cppunit \
> --disable-binfilter \
> --disable-odk \
> --enable-category-b \
> --disable-build-mozilla \
> --disable-gstreamer \
> --without-stlport
> After a complete build a 'build' in smoketestoo_native works fine - the
> test was successful.
>
> Do you have some more information about your environment?
>
> Best regards, Oliver.
>