Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 596686

Summary: games-action/minetest-0.4.14 fails to build: ld: CMakeFiles/minetest.dir/porting.cpp.obj: undefined reference to symbol 'XOpenDisplay', /usr/lib64/libX11.so.6: error adding symbols: DSO missing from command line
Product: Gentoo Linux Reporter: stephane.goujet
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: account-disabled-uid-86422, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 600678    
Bug Blocks:    
Attachments: build.log

Description stephane.goujet 2016-10-09 13:21:29 UTC
Created attachment 449662 [details]
build.log

I had a build error (log attached). It seems it doesn't link with libX11.

  So I went to:

/var/tmp/portage/games-action/minetest-0.4.14/work/minetest-0.4.14_build/src/CMakeFiles/minetest.dir/link.txt

  and added "-lX11" to the (single but long) command line it contains.

  Then I could launch again:

cd /var/tmp/portage/games-action/minetest-0.4.14/work/minetest-0.4.14_build/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/minetest.dir/link.txt --verbose=1

  and then:

/var/tmp/portage/games-action/minetest-0.4.14/work/minetest-0.4.14_build
make
make install

  and it was OK (it built OK, and the program is running fine).


  I don't know about ebuilds (or cmake), so I don't know how to fix it cleanly so that it tells cmake to generate the right command line (I guess that's what should be done?). I hope you can find a way.
Comment 1 Tomáš Mózes 2016-10-11 05:32:07 UTC
Please attach the output of emerge --info.
Comment 2 Pacho Ramos gentoo-dev 2017-09-05 09:16:02 UTC
please retry with 0.4.16