Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687596 - dev-dotnet/libgdiplus-5.6.1 build failed in linking phase because missing libX11
Summary: dev-dotnet/libgdiplus-5.6.1 build failed in linking phase because missing libX11
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-06-07 19:45 UTC by Jiří Moravec
Modified: 2019-06-10 06:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
correction of missing 'test' command in configure file (libgdiplus-5.6.1-configure-test.patch,584 bytes, patch)
2019-06-07 19:47 UTC, Jiří Moravec
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jiří Moravec 2019-06-07 19:45:34 UTC
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 '&&'.
Comment 1 Jiří Moravec 2019-06-07 19:47:36 UTC
Created attachment 579164 [details, diff]
correction of missing 'test' command in configure file