Disagreement between pkg-config python and python-config

Bug #1026723 reported by Zygmunt Krynicki
8
This bug affects 1 person
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
ProcVersionSignature: Ubuntu 3.2.0-27.43-generic 3.2.21
Uname: Linux 3.2.0-27-generic x86_64
NonfreeKernelModules: fglrx
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-256color
 PATH=(custom, user)
 LANG=pl_PL.UTF-8
 SHELL=/bin/bash
SourcePackage: python-defaults
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Zygmunt Krynicki (zyga) wrote :
Changed in python-defaults (Ubuntu):
importance: Undecided → Medium
Curtis Hovey (sinzui)
affects: python → obsolete-junk
no longer affects: obsolete-junk
Revision history for this message
Matthias Klose (doko) wrote :

see the upstream issue.

For now to build an embedded interpreter, use SYSLIBS and MODLIBS directly (sysconfig.get_config_var)

affects: python-defaults (Ubuntu) → python2.7 (Ubuntu)
Changed in python2.7 (Ubuntu):
status: New → Confirmed
Changed in python3.2 (Ubuntu):
status: New → Triaged
Changed in python2.7 (Ubuntu):
status: Confirmed → Triaged
Changed in python:
status: Unknown → New
Matthias Klose (doko)
Changed in python3.2 (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.