Problem 1033

Summary: library path length limitation of 128 characters, leads to silent truncation of lib list
Product: Geant4 Reporter: blyth
Component: configAssignee: Gunter.Folger
Status: RESOLVED FIXED    
Severity: minor CC: blyth
Priority: P5    
Version: 9.1   
Hardware: Other   
OS: Linux   

Description blyth 2008-11-10 10:15:40 CET
Relative paths lead to full link line with all libs :

./liblist -m . < libname.map | tr " " "\n" | wc
## 110 libs

Absolute -m path that is over 85-90 characters in length (max lib length
is 40 chars) leads to silent truncation of libs listed on the link line.

./liblist -m $PWD < libname.map | tr " " "\n" | wc
## 36 libs

From the config/liblist.c code it is clearly due to the use of
char libname[128]

Clearly the workaround is to use relative paths, but nevertheless ... a trivial fix could avoid others the chore of tracking this down in future.

Also using a really long path, will cause it to segment...

p=/data/env/local/dyb/releases/1.0.0-rc01/NuWa-1.0.0-rc01/../external/geant4/4.9.1.p01/uncharacterized_linux_debug/lib

$p/liblist -m $p < $p/libname.map
Segmentation fault

-Simon
Comment 1 Gunter.Folger 2011-03-18 16:17:13 CET
 fixed in 9.4 ref03