Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 596686 - 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
Summary: games-action/minetest-0.4.14 fails to build: ld: CMakeFiles/minetest.dir/port...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on: 600678
Blocks:
  Show dependency tree
 
Reported: 2016-10-09 13:21 UTC by stephane.goujet
Modified: 2018-04-04 01:49 UTC (History)
2 users (show)

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


Attachments
build.log (minetest-0.4.14__build.log,276.00 KB, text/plain)
2016-10-09 13:21 UTC, stephane.goujet
Details

Note You need to log in before you can comment on or make changes to this bug.
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