On Fri, 3 Jul 2015 17:24:06 +0200
Marcus Meissner
On Fri, Jul 03, 2015 at 05:23:19PM +0200, Rusmir Duško wrote:
Hello
I get with
osc build ... [ 69s] /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: gtv.o: undefined reference to symbol 'XMoveWindow' [ 69s] /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: note: 'XMoveWindow' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line [ 69s] /usr/lib64/libX11.so.6: could not read symbols: Invalid operation [ 69s] collect2: error: ld returned 1 exit status [ 69s] make: *** [gtv] Error 1 [ 69s] make: *** Waiting for unfinished jobs.... [ 69s] error: Bad exit status from /var/tmp/rpm-tmp.0SijEP (%build) [ 69s] [ 69s] [ 69s] RPM build errors: [ 69s] Bad exit status from /var/tmp/rpm-tmp.0SijEP (%build)
I have tried more openSUSE Versions and x86_64 / i586
How to fix this, i have such on Internet but not found?
-lX11 needs to be on the linker commandline.
Ciao, Marcus
I have used now in spec
sed -i 's|LIBS@|LIBS@ -lm -lX11|' Makefile.am
and build fine.
--
nemysis / Rusmir Dusko