Hi,

        I am having a bit of trouble compiling openbabel-2.2.3 from source 
on 64bit CentOS 5. The compilation fails at the linking stage with:

make[2]: Entering directory `/usr/local/src/openbabel-2.2.3/test'
/bin/sh ../libtool --tag=CXX   --mode=link g++  -g -O2   -o roundtrip 
roundtrip.o ../src/libopenbabel.la -ldl -lz -lm
libtool: link: g++ -g -O2 -o .libs/roundtrip roundtrip.o 
../src/.libs/libopenbabel.so -ldl -lz -lm -Wl,-rpath -Wl,/usr/local/lib
../src/.libs/libopenbabel.so: undefined reference to `ecrc32'
../src/.libs/libopenbabel.so: undefined reference to `edeflateInit2_'
../src/.libs/libopenbabel.so: undefined reference to `einflateEnd'
../src/.libs/libopenbabel.so: undefined reference to `einflateInit2_'
../src/.libs/libopenbabel.so: undefined reference to `einflate'
../src/.libs/libopenbabel.so: undefined reference to `edeflateEnd'
../src/.libs/libopenbabel.so: undefined reference to `edeflate'
collect2: ld returned 1 exit status
make[2]: *** [roundtrip] Error 1
make[2]: Leaving directory `/usr/local/src/openbabel-2.2.3/test'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/openbabel-2.2.3/test'
make: *** [all-recursive] Error 1

>From other sources, I think this is because the compilation is picking up 
conflicting zlib installations. I have 32 and 64 bit zlib libraries 
installed:

# rpm -qa | grep zlib
zlib-1.2.3-3
zlib-1.2.3-3
zlib-devel-1.2.3-3
zlib-devel-1.2.3-3

but also installed EMBOSS from source which installs its own zlib headers 
and libraries in /usr/local/include and /usr/local/lib, which is where the 
e... versions of the zlib functions are coming from. What I don't quite 
get is why openbabel is picking up these libraries at all the e... 
definitions are in /usr/local/include/zlibemboss.h and the EMBOSS zlib 
library is /usr/local/lib/libezlib*, so why should they ever be found by 
openbabel?

Thanks in advance for any suggestions.

-- 
Dr. Brian O. Smith ---------------------- Brian Smith at glasgow ac uk
School of Life Sciences, College of Medical, Vetinary & Life Sciences,
   Joseph Black Building, University of Glasgow, Glasgow G12 8QQ, UK.
Tel: 0141 330 5167/6459/3089                        Fax: 0141 330 4600
----------------------------------------------------------------------
The University of Glasgow, charity number SC004401

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to