SCI Seg3D Mailing List

Text archives Help

Re: [Seg3D] Cmake error linking python static libraries

Chronological Thread 
  • From: Ayla Khan <>
  • To: "Duke, Daniel J." <>
  • Cc: "" <>
  • Subject: Re: [Seg3D] Cmake error linking python static libraries
  • Date: Tue, 23 Feb 2016 14:26:32 -0700

Hi Daniel,

Can you try building 2.3.0 RC1 ( and see if you get the same error?


On Feb 23, 2016, at 2:04 PM, Duke, Daniel J. wrote:

Hi guys 

I am compiling Seg3D on several Red Hat Enterprise Linux machines. Everything builds fine up until the very final step where the Seg3D2 binary is linked, then I get this:

Linking CXX executable ../Seg3D2
/local/fuelspray/Seg3D-2.2.1/bin/Externals/Source/Boost_external/lib/libboost_python-mt.a(builtin_converters.o): In function `boost::python::converter::(anonymous namespace)::signed_int_rvalue_from_python_base::get_pytype()':
builtin_converters.cpp:(.text+0x13): undefined reference to `PyInt_Type'
and many other similar errors follow (PyString_Type, PyString_Size, etc are undefined).

Looks to me like a missing static libpython, but looking at the CMakeCache files, it looks like the right libraries are being linked. Maybe libraries linked out-of-order?
This seems like some kind of bug in the cmake scripts, since there is nothing special about my Linux setup that should cause hassle. We've compiled Seg3D on other machines in the past without trouble.

OS is Red Hat Enterprise 6.7. Compiler version is gcc 4.8.2 20140120
uname output: 2.6.32-573.8.1.el6.x86_64 #1 SMP Fri Sep 25 19:24:22 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
My shell has LDFLAGS and CFLAGS unset. 
LD_LIBRARY_PATH is pointing to my gcc 4.8.2 libs, LD_LIBRARY_PATH=opt/rh/devtoolset-2/root/usr/lib64:/opt/rh/devtoolset-2/root/usr/lib, since otherwise Red Hat will use gcc 4.4.7 by default.
Is this likely to cause trouble for the python3.2 build inside Seg3D?
I have attached a complete log of the build process. Let me know what other information I can provide to help solve the issue. It's a great program by the way.

Dr Daniel Duke

Postdoctoral Appointee
Energy Systems Division
Argonne National Laboratory
Seg3d mailing list:
To unsubscribe, email with the "unsubscribe seg3d" in the message body.

Archive powered by MHonArc 2.6.18.

Top of page