Opened 8 years ago

Closed 7 years ago

#53508 closed defect (fixed)

python36 @3.6.0_0+readline: python3.6-config --ldflags overlinks with gettext

Reported by: jdswinbank (John Swinbank) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: python36

Description

To illustrate:

$ python3.6-config --ldflags
-L/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/config-3.6m-darwin -lpython3.6m -lintl -ldl -framework CoreFoundation

$ c++ test.cc $(python3.6-config --ldflags)  # for trivial test.cc
ld: library not found for -lintl
clang: error: linker command failed with exit code 1 (use -v to see invocation)

libintl.dylib lives in /opt/local/lib, which isn't searched by default: I'd expect python3.6-config to output it if necessary (which it is).

Change History (4)

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Cc: jwa@… removed
Owner: set to jyrkiwahlstedt
Status: newassigned

comment:2 Changed 7 years ago by jmroot (Joshua Root)

Owner: changed from jyrkiwahlstedt to jmroot

comment:3 Changed 7 years ago by jmroot (Joshua Root)

Summary: python36 @3.6.0_0+readline: python3.6-config --ldflags does not provide complete library search pathpython36 @3.6.0_0+readline: python3.6-config --ldflags overlinks with gettext

comment:4 Changed 7 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

In 40f10c73c5dbe5aa8e0372f12d6e547232baa476/macports-ports:

python36: update to 3.6.5

Likewise py36-gdbm and py36-tkinter. Also fix removal of -arch flags
from sysconfig, and remove -lintl as well to prevent overlinking.

Fixes: #53508

Note: See TracTickets for help on using tickets.