Re: pyilmbase 2.2.0 build - boost::python test program failure

"f.michal" <[email protected]> Mon, 10 Oct 2016 15:38:39 +0200
Newsgroups gmane.comp.video.openexr.devel
Message-ID <[email protected]>
I just realised I replied directly to
Peter instead to the list. So again, here's my post with solution:

I turned out I needed to rebuild python with --enable-shared
configure path.

Otherwise I was missing some default system libs. Example from
config.log:

configure:16122: checking for boost::python

configure:16168: g++ -o conftest -g -O2Â
-I/home/mfratczak/dev/projs/python/Python-2.7.12_gcc482/install/include/python2.7
-g -O2Â
-I/home/mfratczak/dev/projs/python/Python-2.7.12_gcc482/install/include/python2.7Â Â
-L/home/mfratczak/dev/libs/OpenEXR/2.2.0/install3/lib
-L/usr/local/lib
-L/home/mfratczak/dev/libs/boost/boost_1_61_0/stage/lib
-L/home/mfratczak/dev/projs/python/Python-2.7.12_gcc482/install/libÂ
-L/home/mfratczak/dev/libs/OpenEXR/2.2.0/install3/lib
-L/usr/local/lib
-L/home/mfratczak/dev/libs/boost/boost_1_61_0/stage/lib
-L/home/mfratczak/dev/projs/python/Python-2.7.12_gcc482/install/lib
conftest.cpp -ldl -lpthread -lpython2.7 -lboost_python -ldl
-lpthread -lpython2.7 >&5

/home/mfratczak/dev/projs/python/Python-2.7.12_gcc482/install/lib/libpython2.7.a(posixmodule.o):
In function `posix_tmpnam':

/home/mfratczak/dev/projs/python/Python-2.7.12_gcc482/./Modules/posixmodule.c:7631:
warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'

/home/mfratczak/dev/projs/python/Python-2.7.12_gcc482/install/lib/libpython2.7.a(posixmodule.o):
In function `posix_tempnam':

/home/mfratczak/dev/projs/python/Python-2.7.12_gcc482/./Modules/posixmodule.c:7578:
warning: the use of `tempnam' is dangerous, better use `mkstemp'

/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld:
/home/mfratczak/dev/projs/python/Python-2.7.12_gcc482/install/lib/libpython2.7.a(posixmodule.o):
undefined reference to symbol 'forkpty@@GLIBC_2.2.5 '

/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld:
note: 'forkpty@@GLIBC_2.2.5 ' is
defined in DSO /lib64/libutil.so.1 so try adding it to the linker
command line

/lib64/libutil.so.1: could not read symbols: Invalid operation

collect2: error: ld returned 1 exit status

configure:16172: $? = 1

configure: program exited with status 1

So, all seems to be OK now.

Are there any other python flags relevant for us (maya/exr users)?
I think I saw some other, possibly enabling utf support AFAIR...

thanks!

-michal

W dniu 2016-10-06 o 02:36, Peter Hillman pisze:

The config.log file should give more detail. It's very verbose,
so search for "boost::python" related entries in it - somewhere
around one of those you should get the actual error the compiler
gave when trying to link the test program.

My guess would be that boost-lib-dir or boost-python-libname
are incorrect, or there's some incompatibility between the
pyilmbase compile and boost or python. It's also possible it's
somehow muddling up two different boost or python builds on your
system. Again, the config.log file should give the fully
resolved include and library paths it attempted to use for
compiling and linking the test program.

On 05/10/16 21:39, f.michal wrote:

Hello !

I'm trying to build pyilmbase 2.2.0 against custom builds of
boost and python, and I fail with this error message:

checking for boost::python... no

*** Could not run the boost::python test program, checking
why...

*** The boost::python test program could be compiled, but
could not be dynamically.

*** or statically linked.

I have LD_LIBRARY_PATH pointing where it should
(boost/stage/lib, python libs etc.)

I also tried ./configure with these options:

    --with-boost-include-dir

    --with-boost-lib-dir

    --with-boost-python-libname

...nothing helps. I've seen a similar problem post but didn't
find solution. Also I looked into configure script but I got
hearth attack :)

Can I do anything to push this or help debug ?

I'm under CentOS 6.5 and building with Red Hat
DTS 2.1 (g++ v4.8.2) - as required by Maya2017 docs...

thanks

-michal

_______________________________________________
Openexr-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/openexr-devel

_______________________________________________
Openexr-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/openexr-devel

_______________________________________________
Openexr-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/openexr-devel