I would like to add this: i386-devel packages do not create the symlinks needed by ld to find a lib. ld -lX11 will search for libX11.so If you have libX11-devel.x86_64 installed there will be a symlink /usr/lib64/libX11.so -> /usr/lib64/libX11.so.6.2.0 which is ok and works. But if you have installed libX11-devel.i386 there is no symlink which results into ld is unable to find the lib. libX11 was just an example, this happens with ALL i386-devel packages.