incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Fischer ...@a-w-f.de>
Subject Re: [BUILD] CionMP/sccomp build issues on Fedora 16
Date Mon, 23 Jan 2012 10:21:55 GMT
Hi Arial,

On 21.01.2012 07:31, Ariel Constenla-Haile wrote:
> Hi there,
>
> I've met the following issues building on Fedora 16 64 bits:
>
> =============
> Building module sccomp
> =============
>
> Entering /mnt/build/openoffice/apache/trunk/main/sccomp/source/solver
>
> Making:    libsolver.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
> -Wl,-rpath,'$ORIGIN:$ORIGIN/../ure-link/lib'
> -shared -Wl,-O1
> -Wl,--version-script ../../unxlngx6/misc/component_solver.map
> -L../../unxlngx6/lib
> -L../lib
> -L/mnt/build/openoffice/apache/trunk/main/solenv/unxlngx6/lib
> -L/mnt/build/openoffice/apache/trunk/main/solver/340/unxlngx6/lib
> -L/mnt/build/openoffice/apache/trunk/main/solenv/unxlngx6/lib
> -L/usr/lib/jvm/java-1.6.0/lib64
> -L/usr/lib/jvm/java-1.6.0/jre/lib/amd64
> -L/usr/lib/jvm/java-1.6.0/jre/lib/amd64/server
> -L/usr/lib/jvm/java-1.6.0/jre/lib/amd64/native_threads
> -L/usr/lib64 ../../unxlngx6/slo/solver.o
> ../../unxlngx6/slo/solver_version.o
> -o ../../unxlngx6/lib/libsolver.so
> -lcomphelpgcc3
> -luno_cppuhelpergcc3
> -luno_cppu
> -luno_sal
> -ltl
> -lCoinMP -lCoinUtils -lClp -lCbc -lOsi -lOsiClp -lCgl -lCbcSolver -lz
> -Wl,--as-needed -ldl -lpthread -lm -Wl,--no-as-needed
>
>
> rm -f ../../unxlngx6/lib/check_libsolver.so
> mv ../../unxlngx6/lib/libsolver.so ../../unxlngx6/lib/check_libsolver.so
>
>
> /mnt/build/openoffice/apache/trunk/main/solenv/bin/checkdll.sh
> -L../../unxlngx6/lib
> -L/mnt/build/openoffice/apache/trunk/main/solver/340/unxlngx6/lib
> ../../unxlngx6/lib/check_libsolver.so
>
>
> Checking DLL ../../unxlngx6/lib/check_libsolver.so ...:
> ERROR: /mnt/build/openoffice/apache/trunk/main/solver/340/unxlngx6/lib/libCoinUtils.so.0:
undefined symbol: BZ2_bzRead
> dmake:  Error code 1, while making '../../unxlngx6/lib/libsolver.so'
> ERROR: error 65280 occurred while making /mnt/build/openoffice/apache/trunk/main/sccomp/source/solver
>
>
> -------------------------------------------------------------------------------
>
> Fixed this first issue, you get another one:
>
>
> =============
> Building module sccomp
> =============
>
> Entering /mnt/build/openoffice/apache/trunk/main/sccomp/source/solver
>
> Making:    libsolver.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
> -Wl,-rpath,'$ORIGIN:$ORIGIN/../ure-link/lib'
> -shared
> -Wl,-O1
> -Wl,--version-script ../../unxlngx6/misc/component_solver.map
> -L../../unxlngx6/lib
> -L../lib
> -L/mnt/build/openoffice/apache/trunk/main/solenv/unxlngx6/lib
> -L/mnt/build/openoffice/apache/trunk/main/solver/340/unxlngx6/lib
> -L/mnt/build/openoffice/apache/trunk/main/solenv/unxlngx6/lib
> -L/usr/lib/jvm/java-1.6.0/lib64
> -L/usr/lib/jvm/java-1.6.0/jre/lib/amd64
> -L/usr/lib/jvm/java-1.6.0/jre/lib/amd64/server
> -L/usr/lib/jvm/java-1.6.0/jre/lib/amd64/native_threads
> -L/usr/lib64 ../../unxlngx6/slo/solver.o
> ../../unxlngx6/slo/solver_version.o
> -o ../../unxlngx6/lib/libsolver.so
> -lcomphelpgcc3
> -luno_cppuhelpergcc3
> -luno_cppu
> -luno_sal
> -ltl
> -lCoinMP -lCoinUtils -lClp -lCbc -lOsi -lOsiClp -lCgl -lCbcSolver -lzlib
> -Wl,--as-needed -ldl -lpthread -lm -Wl,--no-as-needed
>
>
> rm -f ../../unxlngx6/lib/check_libsolver.so
> mv ../../unxlngx6/lib/libsolver.so ../../unxlngx6/lib/check_libsolver.so
>
> /mnt/build/openoffice/apache/trunk/main/solenv/bin/checkdll.sh
> -L../../unxlngx6/lib
> -L/mnt/build/openoffice/apache/trunk/main/solver/340/unxlngx6/lib
> ../../unxlngx6/lib/check_libsolver.so
>
> Checking DLL ../../unxlngx6/lib/check_libsolver.so ...:
> ERROR: /mnt/build/openoffice/apache/trunk/main/solver/340/unxlngx6/lib/libCoinUtils.so.0:
undefined symbol: gzopen
> dmake:  Error code 1, while making '../../unxlngx6/lib/libsolver.so'
> ERROR: error 65280 occurred while making /mnt/build/openoffice/apache/trunk/main/sccomp/source/solver
>
>
> -------------------------------------------------------------------------------
>
>
> The problem here is that CoinUtils is built with system's bzlib and zlib,
> if you happen to have bzlib devel package in your system, because pkg-config
> will find it.
>
> Of course, CoinMP should NOT be build with the system zlib
> if "$(SYSTEM_ZLIB)"!="YES"
>
> I think we could even disable the zlib support, CoinMP only uses these libaries
> for reading models from files in a special format; but AOO does not use this
> feature at all.
> See CoinMP-1.6/CoinUtils/src/CoinFileIO.cpp
>
>
> -------------------------------------------------------------------------------
>
> Resuming:
> I removed zlib from COINMPLIB in solenv/inc/libs.mk
> and added CONFIGURE_FLAGS=--disable-pkg-config --disable-bzlib --disable-zlib
> in ext_libraries/coinmp/makefile.mk

Sounds good.  Do you want to check this in?

In the meantime I will make a build on Fedora and check this.  I agree 
that using external zlib when "$(SYSTEM_ZLIB)"!="YES" is bad and I see 
why there may be problems when the office is installed on a computer 
without the b?zlib libraries.  What I do not yet understand is why 
CoinMP's configure detects zlib but later can not link against it.

Regards,
Andre

Mime
View raw message