On Thu, Nov 24, 2011 at 11:11 AM, JP <[email protected]> wrote:
> Building RDKit 2011.09.1 on CentOs 5.6 (final) - share my pain
> (And having seen http://code.google.com/p/rdkit/wiki/BuildingOnCentOS)
>
> Using python 2.7 which is in /opt which comes with the distribution
> (this is the ROCKS, Centos distirbution) (I would not like to rebuild
> this -- if possible I would like to use this version out of the box)
>
> Both
> cmake -D PYTHON_LIBRARY=/opt/python/lib/libpython2.7.a -D
> PYTHON_INCLUDE_DIR=/opt/python/include/python2.7 -D
> CMAKE_C_FLAGS="-fPIC" -D CMAKE_CXX_FLAGS="-fPIC"..
> and
> cmake -D PYTHON_LIBRARY=/opt/python/lib/libpython2.7.a -D
> PYTHON_INCLUDE_DIR=/opt/python/include/python2.7 ..
>
> from the build dir - fail with the same error (at 4% with)
>
> [  4%] Building CXX object Code/RDBoost/CMakeFiles/RDBoost.dir/Wrap.cpp.o
> Linking CXX shared library ../../lib/libRDBoost.so
> /usr/bin/ld: /opt/python/lib/libpython2.7.a(exceptions.o): relocation
> R_X86_64_32 against `_Py_NoneStruct' can not be used when making a
> shared object; recompile with -fPIC

It seems libpython2.7.a was not compiled with -fPIC (that's why you
get the same error, compiling rdkit with or witout -fPIC does not
affect libpython).

I think the easiest solution would be to use the dynamic library
libpython2.7.so instead, which I hope is included in the ROCKS
distribution.



-- 
Gianluca Sforna

http://morefedora.blogspot.com
http://identi.ca/giallu - http://twitter.com/giallu

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to