[issue18096] bad library order returned by python-config.in
Matthias Klose added the comment: fixed in 2.7, 3.4 and 3.5 -- resolution: - fixed status: open - closed versions: +Python 2.7 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18096 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18096] bad library order returned by python-config.in
Logan Chien added the comment: It seems that this is still reproducible with Python 3.5 (dev) by running: $ gcc test.c `python3-config --includes --ldflags` cpython-install/lib/python3.5/config-3.5m/libpython3.5m.a(pytime.o): In function `_PyTime_ObjectToTime_t': cpython-build/../cpython/Python/pytime.c:371: undefined reference to `ceil' cpython-build/../cpython/Python/pytime.c:373: undefined reference to `floor' ... skipped ... I have slightly revised the patch to include Misc/python-config.sh.in as well. Please have a look. Thanks. -- keywords: +patch nosy: +Logan.Chien versions: +Python 3.5 Added file: http://bugs.python.org/file36767/fix-undef-ref.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18096 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18096] bad library order returned by python-config.in
Roundup Robot added the comment: New changeset 6316475af62d by doko in branch '2.7': - Issue #18096: Fix library order returned by python-config. https://hg.python.org/cpython/rev/6316475af62d New changeset b826ba76d1ce by doko in branch '3.4': - Issue #18096: Fix library order returned by python-config. https://hg.python.org/cpython/rev/b826ba76d1ce New changeset 8db7fcf6c67d by doko in branch 'default': - Issue #18096: Fix library order returned by python-config. https://hg.python.org/cpython/rev/8db7fcf6c67d -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18096 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18096] bad library order returned by python-config.in
Changes by Georg Brandl ge...@python.org: -- nosy: +barry, ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18096 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18096] bad library order returned by python-config.in
Changes by Antoine Pitrou pit...@free.fr: -- components: +Build, Demos and Tools nosy: +dmalcolm, doko stage: - patch review versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18096 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18096] bad library order returned by python-config.in
New submission from David Taylor: Misc/python-config.in returns a bad library order when given the --ldflags or --libs arguments. A library should be listed *BEFORE* those libraries that it depends upon. The python library depends upon all the other libraries listed, but it is listed last -- it should be first. When linking with shared libraries, you can generally get away with the current behaviour. When linking with static libraries, it fails -- components: Library (Lib) files: xx messages: 190319 nosy: taylor priority: normal severity: normal status: open title: bad library order returned by python-config.in type: behavior versions: Python 3.3 Added file: http://bugs.python.org/file30414/xx ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18096 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com