Disagreement between pkg-config python and python-config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python |
New
|
Unknown
|
|||
python2.7 (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
python3.2 (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
I've found a disagreement between:
$ python-config --libs
-lpthread -ldl -lutil -lm -lpython2.7
and
$ pkg-config python --static --libs
-lpthread -ldl -lutil -lpython2.7
It seems to me that pkg-config is missing is missing -lm. The full list of packages is also larger than specified here. An attempt to embed python interpreter in a hello-world library will fail with multiple linkage issues due to missing openssl, libz and a few other things.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: python-dev 2.7.3-0ubuntu2
ProcVersionSign
Uname: Linux 3.2.0-27-generic x86_64
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu11
Architecture: amd64
Date: Thu Jul 19 19:37:50 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120218)
ProcEnviron:
TERM=xterm-
PATH=(custom, user)
LANG=pl_PL.UTF-8
SHELL=/bin/bash
SourcePackage: python-defaults
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in python-defaults (Ubuntu): | |
importance: | Undecided → Medium |
affects: | python → obsolete-junk |
no longer affects: | obsolete-junk |
Changed in python: | |
status: | Unknown → New |
Changed in python3.2 (Ubuntu): | |
importance: | Undecided → Medium |
see the upstream issue.
For now to build an embedded interpreter, use SYSLIBS and MODLIBS directly (sysconfig. get_config_ var)