You should be compiling against a .so not an .a, e.g. libpython2.6.so. On 5 March 2013 16:15, Peter Maas <peter.m...@specs.net> wrote: > Hi Noel, > > > > Sorry to bother you again. > > So I did try to compile against the system python. It’s giving a different > error but I guess the source is the same. It looks like a 32/64 bits issue > to me. > > > > Cheers, > > > > Peter > > > > > > make clean > > cmake ../openbabel-2.3.2 > -DEIGEN2_INCLUDE_DIR=/home/peter/lib/eigen-eigen-b23437e61a07 > -DPYTHON_BINDINGS=ON -DPYTHON_EXECUTABLE=/usr/bin/python2.4 > -DPYTHON_LIBRARY=/usr/lib/python2.4/config/libpython2.4.a > -DPYTHON_LIBRARY=/usr/lib/python2.4/config/libpython2.4.a > -DCMAKE_INSTALL_PREFIX=/home/peter/tools/openbabel -DCMAKE_BUILD_TYPE=DEBUG > > make > > > > > > Linking CXX shared module ../lib/_openbabel.so > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(abstract.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(boolobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(classobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(cobject.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(floatobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(intobject.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(iterobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(listobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(longobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(dictobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(moduleobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(object.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(obmalloc.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(sliceobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(stringobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(tupleobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(typeobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(weakrefobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(unicodeobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(unicodectype.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(exceptions.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(ceval.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(compile.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(codecs.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(errors.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(future.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(getargs.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(import.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(importdl.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(marshal.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(modsupport.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(mystrtoul.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(mysnprintf.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(pystate.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(pythonrun.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(random.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(symtable.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(sysmodule.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(traceback.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(pystrtod.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(dynload_shlib.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(thread.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(config.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(getpath.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(gcmodule.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(threadmodule.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(signalmodule.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(posixmodule.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(errnomodule.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(pwdmodule.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(_sre.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(_codecsmodule.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(zipimport.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(symtablemodule.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(acceler.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(grammar1.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(node.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(parsetok.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(tokenizer.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(bufferobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(cellobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(complexobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(descrobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(genobject.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(fileobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(frameobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(funcobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(methodobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(structseq.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(bltinmodule.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(frozen.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(getcopyright.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(getmtime.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(getplatform.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(getversion.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(graminit.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(structmember.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(getbuildinfo.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(parser.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(myreadline.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(enumobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(rangeobject.o)' is incompatible > with i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(setobject.o)' is incompatible with > i386:x86-64 output > > /usr/bin/ld: warning: i386 architecture of input file > `/usr/lib/python2.4/config/libpython2.4.a(getcompiler.o)' is incompatible > with i386:x86-64 output > > CMakeFiles/bindings_python.dir/python/openbabel-python.cpp.o: In function > `SWIG_From_unsigned_SS_int': > > /home/peter/downloads/openbabel/openbabel-2.3.2/scripts/python/openbabel-python.cpp:5037: > undefined reference to `PyInt_FromSize_t' > > CMakeFiles/bindings_python.dir/python/openbabel-python.cpp.o: In function > `SWIG_Python_SetModule': > > /home/peter/downloads/openbabel/openbabel-2.3.2/scripts/python/openbabel-python.cpp:2726: > undefined reference to `Py_InitModule4_64' > > CMakeFiles/bindings_python.dir/python/openbabel-python.cpp.o: In function > `init_openbabel': > > /home/peter/downloads/openbabel/openbabel-2.3.2/scripts/python/openbabel-python.cpp:57631: > undefined reference to `Py_InitModule4_64' > > /usr/lib/python2.4/config/libpython2.4.a(posixmodule.o): In function > `posix_forkpty': > > (.text+0x2fe9): undefined reference to `forkpty' > > /usr/lib/python2.4/config/libpython2.4.a(posixmodule.o): In function > `posix_openpty': > > (.text+0x3078): undefined reference to `openpty' > > collect2: ld returned 1 exit status > > make[2]: *** [lib/_openbabel.so] Error 1 > > make[1]: *** [scripts/CMakeFiles/bindings_python.dir/all] Error 2 > > make: *** [all] Error 2 > >
------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss