>cd examples/extended/electromagnetic/TestEm1/ >gmake Making dependency for file TestEm1.cc... Making dependency for file src/Em1VisManager.cc ... ... Compiling Em1DetectorConstruction.cc ... Compiling Em1DetectorMessenger.cc ... ... reating/replacing object files in /home/vinni/geant4/tmp/Linux-g++/TestEm1/libTestEm1.a Compiling TestEm1.cc ... Using granular libraries ... Linking TestEm1 ... /cern/lib/libpacklib.a(cfopen.o): In function `cfopen_': cfopen.o(.text+0x15): undefined reference to `G77_lnblnk_0' /cern/lib/libpacklib.a(cfstat.o): In function `cfstat_': cfstat.o(.text+0x12): undefined reference to `G77_lnblnk_0' /cern/lib/libpacklib.a(ypgetacctent.o): In function `ypgetacctent': ypgetacctent.o(.text+0x20a): undefined reference to `yp_get_default_domain' ypgetacctent.o(.text+0x267): undefined reference to `yp_match' ypgetacctent.o(.text+0x2d0): undefined reference to `yp_match' ypgetacctent.o(.text+0x366): undefined reference to `yp_all' /usr/bin/../lib/libf2c.so: undefined reference to `MAIN__' collect2: ld returned 1 exit status gmake: *** [/home/vinni/geant4/bin/Linux-g++/TestEm1] Error 1 all novice examples linked ok and work to perfectly i use Linux, RH6.2 with f2c-19990728-1.i386.rpm when ls -la /usr/lib/libf2* -rw-r--r-- 1 root root 227396 2 1999 /usr/lib/libf2c.a lrwxrwxrwx 1 root root 14 23 21:57 /usr/lib/libf2c.so -> libf2c.so.0.22 lrwxrwxrwx 1 root root 14 23 21:57 /usr/lib/libf2c.so.0 -> libf2c.so.0.22 -rwxr-xr-x 1 root root 120013 2 1999 /usr/lib/libf2c.so.0.22
This problem is already fixed in a development version (config-V01-01-00) which will be available in the next public release. In geant4/config/architecture.gmk you need to substitute the following line, under the block for "Linux-g++": FCLIBS := -lg2c -lnsl Thanks for reporting the problem, anyway.