On Sun, 2010-06-20 at 14:04 -0700, tony mancill wrote:
> /bin/bash ../../libtool --tag=CXX --mode=link g++  -g -O2 -g -Wall -O2
> -lCoinUtils -o clp  ClpMain.o CbcOrClpParam.o MyEventHandler.o
> MyMessageHandler.o unitTest.o libClp.la -lm 
> g++ -g -O2 -g -Wall -O2 -o .libs/clp ClpMain.o CbcOrClpParam.o
> MyEventHandler.o MyMessageHandler.o
> unitTest.o  ./.libs/libClp.so /usr/lib/libCoinUtils.so -llapack -lz
> -lbz2 -lm
> /usr/bin/ld: cannot find -lz
> collect2: ld returned 1 exit status
> make[3]: *** [clp] Error 1 

The problem is that libCoinUtils is linked against -lz -lbz2

$ ldd /usr/lib/libCoinUtils.so
        linux-vdso.so.1 =>  (0x00007fff73167000)
        liblapack.so.3gf => /usr/lib/liblapack.so.3gf (0x00007ff03f3d9000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007ff03f1c2000)
        libbz2.so.1.0 => /lib/libbz2.so.1.0 (0x00007ff03efb1000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007ff03ec9d000)
        libm.so.6 => /lib/libm.so.6 (0x00007ff03ea1b000)
        libc.so.6 => /lib/libc.so.6 (0x00007ff03e6b9000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007ff03e4a3000)
        libblas.so.3gf => /usr/lib/libblas.so.3gf (0x00007ff03df4e000)
        libgfortran.so.3 => /usr/lib/libgfortran.so.3 (0x00007ff03dc61000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007ff03da45000)
        /lib64/ld-linux-x86-64.so.2 (0x00007ff040369000)


so it is a bug in configure wrongly adding -lz -lbz2 as linkflags.

Soeren
-- 
For the one fact about the future of which we can be certain is that it
will be utterly fantastic. -- Arthur C. Clarke, 1962

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to