[Slackbuilds-users] ois build error

Karel Venken k.venken at online.be
Sat Jul 4 13:49:12 UTC 2015


I tried to build ois on a 64 bit multilib system. After the ./configure, 
the make stops with an error

...
mv -f .deps/LinuxMouse.Tpo .deps/LinuxMouse.Plo
/bin/sh ../libtool --tag=CXX   --mode=link g++  -O2 -fPIC -release 
1.3.0   -o libOIS.la -rpath /usr/lib64 OISInputManager.lo OISObject.lo 
OISEffect.lo OISJoyStick.lo OISKeyboard.lo OISForceFeedback.lo 
OISException.lo EventHelpers.lo LinuxInputManager.lo 
LinuxJoyStickEvents.lo LinuxForceFeedback.lo LinuxKeyboard.lo 
LinuxMouse.lo  -L/usr/X11R6/lib -lX11
libtool: link: g++  -fPIC -DPIC -shared -nostdlib 
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../lib64/crti.o 
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/crtbeginS.o 
.libs/OISInputManager.o .libs/OISObject.o .libs/OISEffect.o 
.libs/OISJoyStick.o .libs/OISKeyboard.o .libs/OISForceFeedback.o 
.libs/OISException.o .libs/EventHelpers.o .libs/LinuxInputManager.o 
.libs/LinuxJoyStickEvents.o .libs/LinuxForceFeedback.o 
.libs/LinuxKeyboard.o .libs/LinuxMouse.o   -Wl,-rpath 
-Wl,/usr/lib64/../lib -Wl,-rpath -Wl,/usr/lib64/../lib -L/usr/X11R6/lib 
/usr/lib/libX11.so -L/usr/lib /usr/lib/libxcb.so /usr/lib/libXau.so 
/usr/lib/libXdmcp.so -ldl -L/usr/lib64/gcc/x86_64-slackware-linux/4.8.2 
-L/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../lib64 
-L/lib/../lib64 -L/usr/lib/../lib64 
-L/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../.. 
/usr/lib64/../lib/libstdc++.so -lm -lc -lgcc_s 
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/crtendS.o 
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../lib64/crtn.o 
-O2   -Wl,-soname -Wl,libOIS-1.3.0.so -o .libs/libOIS-1.3.0.so
/usr/lib/libX11.so: could not read symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[1]: *** [libOIS.la] Error 1
make[1]: Leaving directory `/tmp/SBo/ois-v1-3/src'
make: *** [all-recursive] Error 1

I think the relevant part is here the /usr/lib/libX11.so, which is

bash-4.2$ ls -l /usr/lib/libX11.so
lrwxrwxrwx 1 root root 15 Nov 24  2014 /usr/lib/libX11.so -> libX11.so.6.3.0
bash-4.2$ file /usr/lib/libX11.so.6.3.0
/usr/lib/libX11.so.6.3.0: ELF 32-bit LSB  shared object, Intel 80386, 
version 1 (SYSV), dynamically linked, stripped

I believe this should be a 64 bit version to link against? Actually, 
make should use the one in /usr/lib64 instead. Could this have been 
caused by installing multilib?

K.





More information about the SlackBuilds-users mailing list