Felix Geyer | 5 Aug 2012 14:49
Picon
Favicon

Bug#683920: FTBFS with ld --as-needed

Source: makehuman
Version: 1.0.0~alpha6-5
Tags: patch
User: debian-gcc <at> lists.debian.org
Usertags: ld-as-needed

makehuman fails to build when ld defaults to --as-needed because it puts libraries
before the objects that use them.
See http://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries

This is already fixed upstream:
http://code.google.com/p/makehuman/source/diff?spec=svn3555&old=2071&r=3160&format=unidiff&path=%2Ftrunk%2Fmakehuman%2FMakefile.Linux

Build log:

> linking as makehuman.real .
> src/core.o: In function `RegisterObject3D':
> /build/buildd/makehuman-1.0.0~alpha6/src/core.c:150: undefined reference to `PyType_Ready'
> /build/buildd/makehuman-1.0.0~alpha6/src/core.c:154: undefined reference to `PyModule_AddObject'
> src/core.o: In function `Object3D_init':
> /build/buildd/makehuman-1.0.0~alpha6/src/core.c:236: undefined reference to `PyArg_ParseTuple'
> /build/buildd/makehuman-1.0.0~alpha6/src/core.c:240: undefined reference to `PyList_Size'
> [...]

Gmane