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 packages | Assignee: |
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
|
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.