View Issue Details

IDProjectCategoryView StatusLast Update
0005131DarkRadiantCompilation/Buildpublic08.11.2020 18:35
Reporterjonri Assigned Togreebo  
Status closedResolutionfixed 
Product Version2.7.0 
Fixed in Version2.8.0 
Summary0005131: Python 3.8 does not get linked
DescriptionWhen I built darkradiant, the scripting function was missing, with errors about undefined symbols printed to the log. It turns out that as of python 3.8, python-config --libs does not provide the argument to link python itself. A new --embed option was added which provides this instead.

$ python-config --libs
 -lcrypt -lpthread -ldl -lutil -lm -lm

$ python-config --libs --embed
-lpython3.8 -lcrypt -lpthread -ldl -lutil -lm -lm

Here's the python commit that added --embed:
Steps To ReproduceBuild darkradiant on a system with python 3.8
Additional InformationAdding --embed in addition to --libs fixed the problem for me, but I have not tested whether this is backwards-compatible to earlier versions of python. If --embed causes earlier versions to fail, you may need to have a fallback to call --libs only.
TagsNo tags attached.




21.01.2020 07:27

administrator   ~0012155

Thanks for the heads up!


22.03.2020 11:36

administrator   ~0012290

Should be fixed in e9fc31ef1

Related Changesets

DarkRadiant: master e9fc31ef

2020-03-22 05:43:49


Details Diff
Resolve 0005131: Add Python.m4 automake macro. Add --embed switch to python-config if Python version is higher or equal than 3.8 Affected Issues
mod - Diff File
add - m4/python.m4 Diff File

Issue History

Date Modified Username Field Change
20.01.2020 19:58 jonri New Issue
21.01.2020 07:27 greebo Status new => acknowledged
21.01.2020 07:27 greebo Note Added: 0012155
22.03.2020 11:35 greebo Assigned To => greebo
22.03.2020 11:35 greebo Status acknowledged => assigned
22.03.2020 11:35 greebo Changeset attached => DarkRadiant master e9fc31ef
22.03.2020 11:35 greebo Resolution open => fixed
22.03.2020 11:35 greebo Fixed in Version => 2.8.0
22.03.2020 11:36 greebo Status assigned => resolved
22.03.2020 11:36 greebo Note Added: 0012290
08.11.2020 18:35 greebo Status resolved => closed