libtool: link: x86_64-pc-linux-gnu-gcc -march=bdver2 -mtune=bdver2 -O2 -pipe -mno-tbm -mvzeroupper -fuse-ld=gold -fgraphite-identity -ftree-loop-distribution -floop-nest-optimize -ftree-vectorize -ftree-slp-vectorize -pthread -march=bdver2 -mtune=bdver2 -O2 -pipe -mno-tbm -mvzeroupper -fuse-ld=gold -fgraphite-identity -ftree-loop-distribution -floop-nest-optimize -ftree-vectorize -ftree-slp-vectorize -Wl,--as-needed -Wl,--hash-style=gnu -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/testpng testpng.o ../src/.libs/libgdiplus.so -lm -lglib-2.0 -lcairo -lfontconfig -lfreetype -ljpeg -L/usr -ltiff -lgif -lpng16 -lz -lexif -pthread ../src/.libs/libgdiplus.so: error: undefined reference to 'XOpenDisplay' ../src/.libs/libgdiplus.so: error: undefined reference to 'XGetDefault' ../src/.libs/libgdiplus.so: error: undefined reference to 'XCloseDisplay' ../src/.libs/libgdiplus.so: error: undefined reference to 'XSetErrorHandler' ../src/.libs/libgdiplus.so: error: undefined reference to 'XGetGeometry' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:668: testgraphics] Error 1 make[2]: *** Waiting for unfinished jobs.... In configure phase there is error in log: −−− checking for libpng16... yes checking X11 support... yes ./configure: line 14136: xyes: command not found checking for LIBEXIF... yes checking that generated files are newer than configure... done −−− This failure is result of error in configure file: 14135 # Add xrender here so that we don't fail to find glib if we won't have xrender.pc 14136 if test "x$no_x" != "xyes" && "x$x11_available" = "xyes"; then 14137 GDIPLUS_LIBS="$GDIPLUS_LIBS `$PKG_CONFIG --libs xrender `" In line 14136 there is missing 'test' command right after '&&'.
Created attachment 579164 [details, diff] correction of missing 'test' command in configure file