In order for the linker to link the 64-bit libraries for X11/Motif and MesaGL, the /lib64 directory must be included for the linker in addition or instead of the /lib directory on 64-bit machines having installed both the 32-bit and the 64-bit libraries. Otherwise the program won't link even though the 32-bit libraries are present in the /lib directories searched since these libraries are not compatible. The /architecture/Linux-g++.gmk needs to be modified for that purpose, I can send my version or the Linux-g++.gmk for as a reference if needed. The way I have solved the problem the linker has to skip the incompatible libraries first so you get a lot of "skipping"-messages before the linker looks at the right directory: ... /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a when searching for -lX11 ... For nervous users only the lib64-directories could be searched by the linker... I guess this bug could be marked as solved at the same time I report it (since I solved it for my machine already) but ther information might be useful for others. Wolfram Stiller
Hello, Can you please send me your modified Linux-g++.gmk ? Gunter
Since release 8.0 of Geant4 it is possible to explicitely specify the lib path and libraries to X11/Xm/GL with X11LIBS, XMLIBS, OGLLIBS, e.g.: X11LIBS = "-L/usr/X11R6/lib64 -lXmu -lXt -lXext -lX11 -lSM -lICE" XMLIBS = "-L/usr/X11R6/lib64 -lXm -lXpm" OGLLIBS = "-L/usr/lib64 -lGLU -lGL" etc ...