cairo-1.10.0 fails to build when ld emits debug logging
Submitted by Jeremy Huddleston Sequoia
Assigned to Chris Wilson @ickle
Description
cairo assumes that pthreads are not available, then it fails to build:
./configure --prefix=/opt/X11 --disable-static --disable-dependency-tracking --disable-nls --cache-file=/tmp/X11libs.roots/X11libs~obj/configure.cache --x-include=$X11_PREFIX/include --x-lib=$X11_PREFIX/lib --disable-quartz --enable-xlib --enable-xlib-xrender --enable-xcb --disable-specs --disable-devel-docs
...
config.log shows that the conftest.c tests succeeded, but you still chose to
configure:32573: checking for cairo's pthread featureconfigure:32685: gcc -I/tmp/X11libs.roots/X11libs~dst/opt/X11/include/pixman-1 -I/tmp/X11libs.roots/X11libs~dst/opt/X11/include/libpng14 -I/tmp/X11libs.roots/X11libs~dst/opt/X11/include -o conftest -D_REENTRANT -D__DEBUG__ -D_FORTIFY_SOURCE=2 -pipe
-L/tmp/X11libs.roots/X11libs~dst/opt/X11/lib conftest.c -lpthread >&5
[Logging for XBS] Used dynamic library: /usr/lib/libSystem.B.dylib
[Logging for XBS] Used dynamic library: /usr/lib/libSystem.B.dylib
[Logging for XBS] Used indirect dynamic library: /usr/lib/system/libmathCommon.A.dylib
configure:32685: $? = 0configure:32804: gcc -I/tmp/X11libs.roots/X11libs~dst/opt/X11/include/pixman-1 -I/tmp/X11libs.roots/X11libs~dst/opt/X11/include/libpng14 -I/tmp/X11libs.roots/X11libs~dst/opt/X11/include -o conftest -pthread -D__DEBUG__ -D_FORTIFY_SOURCE=2 -pipe -L
/tmp/X11libs.roots/X11libs~dst/opt/X11/lib conftest.c >&5
[Logging for XBS] Used dynamic library: /usr/lib/libSystem.B.dylib
[Logging for XBS] Used indirect dynamic library: /usr/lib/system/libmathCommon.A.dylib
configure:32804: $? = 0configure:32885: gcc -I/tmp/X11libs.roots/X11libs~dst/opt/X11/include/pixman-1 -I/tmp/X11libs.roots/X11libs~dst/opt/X11/include/libpng14 -I/tmp/X11libs.roots/X11libs~dst/opt/X11/include -o conftest -D_REENTRANT -D__DEBUG__ -D_FORTIFY_SOURCE=2 -pipe
-L/tmp/X11libs.roots/X11libs~dst/opt/X11/lib conftest.c >&5
[Logging for XBS] Used dynamic library: /usr/lib/libSystem.B.dylib
[Logging for XBS] Used indirect dynamic library: /usr/lib/system/libmathCommon.A.dylib
configure:32885: $? = 0
configure:32951: checking whether cairo's pthread feature could be enabled
configure:32955: result: no (can't link with -lpthread or -pthread)
Passing --enable-pthread to force it on fails:
checking for cairo's pthread feature...
configure: error: pthread requested but not found
returned code 1 at ./build line 21.
Version: 1.10.1