Hi,
I am trying to compile RD kit on an enterprise-Linux machine.
When I run make in the $RDBASE/build directory, I get the following
error:
-------------------
[ 3%] Building CXX object
Code/RDBoost/Wrap/CMakeFiles/rdBase.dir/RDBase.cpp.o
Linking CXX shared module rdBase.so
/usr/bin/ld:
/usr/local/lib/python2.6/config/libpython2.6.a(boolobject.o): relocation
R_X86_64_32 again
st `a local symbol' can not be used when making a shared object;
recompile with -fPIC
/usr/local/lib/python2.6/config/libpython2.6.a: could not read symbols:
Bad value
collect2: ld returned 1 exit status
make[2]: *** [Code/RDBoost/Wrap/rdBase.so] Error 1
make[1]: *** [Code/RDBoost/Wrap/CMakeFiles/rdBase.dir/all] Error 2
make: *** [all] Error 2
------------------------------------------
It has created
$RDBASE/build/Code/RDBoost/Wrap/CMakeFiles/rdBase.dir/RDBase.cpp.o
The error message suggests recompiling with -fPIC flag. But the file:
$RDBASE/CMakeLists.txt has already -fPIC
In the compilation flag:
# setup our compiler flags:
if(CMAKE_COMPILER_IS_GNUCXX)
ADD_DEFINITIONS("-Wno-deprecated -Wno-unused-function
-fno-strict-aliasing -fPIC")
endif()
If you know the solution, I'd highly appreciate that.
BTW, for whatever reason, I also had to run the cmake command with
python include libraries etc.
in the command line for the compiler to work, in spite of these
specified in my .cshrc.
Thanks,
Dam
-------------------------------------------
Komath Damodaran
Consultant, TRAP
Telik, Inc.
3165 Porter Drive
Palo Alto, CA 94304
Tel: (650) 845-7836, Fax: 650-845-7800
===========================================
CONFIDENTIAL: This transmission, including all attachments, is intended solely
for the addressee(s). Its content is confidential. If you are not an intended
recipient, you are requested to:
(a) refrain from reading, disclosing, reproducing, or using the transmission,
(b) notify the sender by reply e-mail, and
(c) delete the message in its entirety.
Delivery of this transmission to any person other than the intended
recipient(s) is not intended to waive any privilege or confidentiality
restriction.
------------------------------------------------------------------------------
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss