[Bug 1582218] Re: libboost_python-py35.so: undefined reference to `PyModule_Create2'

Chad Miller chad.miller at canonical.com
Mon May 16 18:11:00 UTC 2016


** Package changed: boost-defaults (Ubuntu) => python3.5 (Ubuntu)

** Summary changed:

- libboost_python-py35.so: undefined reference to `PyModule_Create2'
+ python3.5dm-config --libs causes undefined reference to `PyModule_Create2'

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.5 in Ubuntu.
https://bugs.launchpad.net/bugs/1582218

Title:
  python3.5dm-config --libs causes undefined reference to
  `PyModule_Create2'

Status in python3.5 package in Ubuntu:
  New

Bug description:
  Part of building libtorrent-rasterbar

  Autoconf test for

  conftest.cpp
  | /* defs elided */
  | /* confdefs.h */
  |
  | #include <boost/python/module.hpp>
  | BOOST_PYTHON_MODULE(test) { throw "Boost::Python test."; }
  | int
  | main ()
  | {
  |
  |   ;
  |   return 0;
  | }

  
  $ g++ -o conftest -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -ftemplate-depth=120 -fvisibility=hidden -fvisibility-inlines-hidden -I/usr/include -I/usr/include/python3.5dm -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -fvisibility=hidden -fvisibility-inlines-hidden conftest.cpp -lboost_python-py35 -lboost_chrono -lboost_random -lpthread   -L/usr/lib -lpython3.5dm
  /usr/lib/x86_64-linux-gnu/libboost_python-py35.so: undefined reference to `PyModule_Create2'

  
  checking whether the Boost::Python library is available... yes
  checking whether boost_python-py35 is the correct library... no

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.5/+bug/1582218/+subscriptions



More information about the foundations-bugs mailing list