Problem 697 - Path to /lib64 libraries (X11/Motif and GL) for 64-bit machines
Summary: Path to /lib64 libraries (X11/Motif and GL) for 64-bit machines
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: config (show other problems)
Version: 6.2
Hardware: PC Linux
: P2 normal
Assignee: Gunter.Folger
URL:
Depends on:
Blocks:
 
Reported: 2004-12-03 01:35 CET by w.stiller
Modified: 2006-10-06 09:22 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description w.stiller 2004-12-03 01:35:33 CET
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
Comment 1 Gunter.Folger 2005-02-08 07:51:59 CET
Hello,

Can you please send me your modified Linux-g++.gmk ?

Gunter
Comment 2 Gabriele Cosmo 2006-10-06 09:22:59 CEST
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 ...