Problem 932 - config/liblist.c give no output on OSX as doesnt look for lib*.dylib
Summary: config/liblist.c give no output on OSX as doesnt look for lib*.dylib
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: config (show other problems)
Version: 8.1
Hardware: All Other
: P2 normal
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2007-03-14 01:39 CET by blyth
Modified: 2007-03-14 03:52 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description blyth 2007-03-14 01:39:29 CET
The liblist utility ...
   ${GEANT_LIBDIR}/liblist -m ${GEANT_LIBDIR} < ${GEANT_LIBDIR}/libname.map

gives no output on OSX, as it only looks for lib*.a , lib*.so but not lib*.dylib
rather than giving the expected output of :

-lG4detutils -lG4persistency -lG3toG4 -lG4readout -lG4gflash -lG4RayTracer -lG4visHepRep -
lG4geomdivision -lG4FR -lG4decay -lG4brep -lG4OpenGL -lG4visXXX -lG4Tree -lG4muons etc....

Also a harmless warning :
   "warning: this program uses gets(), which is unsafe."
can easily be removed by using ..
   fgets( buffer , LINE_BUF_SIZE, stdin);   instead of gets()
Comment 1 Gabriele Cosmo 2007-03-14 03:52:59 CET
The problem with OSX is already fixed in release 8.2.
From release notes for 8.2:
"- Fixed issue on MacOS for -ldlibs option to the Configure script:
    added .dylib search in liblist.c for list of libraries.
    Addressing problem report #885."
Please, try updating to release 8.2.
Thanks for the suggestion on gets()!