Message: Link errors under FreeBSD 6.2 with gcc 3.4.6 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Link errors under FreeBSD 6.2 with gcc 3.4.6 

Keywords: FreeBSD link error
Forum: Installation and Configuration
Date: 01 Apr, 2008
From: Mark Looper <Mark Looper>

Hello--

A month or so ago I posted a query and received some help getting Geant4 9.1.p01 installed on an unsupported platform, a cluster running FreeBSD 6.2-RELEASE-p4 with gcc 3.4.6. I was able to figure out the problem I was having, with suggestions from a couple of experts here; however, my user codes were still failing at the link stage. I went back to my old (and working) version 7.1 installation, but I recently realized that I really need a more recent version to do elastic scattering properly, and I really need hundreds of processors rather than the four on my Mac Pro (where I do have 9.1.p01 running). Thus I must ask for help again with the link problems.

Specifically, I have copied example N01 to my $G4WORKDIR, and upon compilation I get the following:

...
Compiling exampleN01.cc ...
warning: this program uses gets(), which is unsafe.
Using granular libraries ...
Linking exampleN01 ...
/home/looper/geant4.9.1.p01/lib/Linux-g++/libG4navigation.a(G4TransportationMana
ger.o)(.text+0x1bec): In function `G4TransportationManager::G4TransportationMana
ger()':
: undefined reference to `G4FieldManager::G4FieldManager(G4Field*, G4ChordFinder
*, bool)'
...

... followed by hundreds more undefined reference errors. I checked the g4make.log file for several of the source files, and they appear to have had dependencies made and been compiled without errors; the library files that contain the references are present in $G4LIB/$G4SYSTEM as expected, and that directory is in my $LD_LIBRARY_PATH as well. I note that I had to attach it (and $CLHEP_LIB_DIR) to my $LD_LIBRARY_PATH manually -- they aren't handled by the env.csh script that I source -- if that's a clue as to what I have set up wrong here. Can somebody suggest what I need to do to help Geant4 find its links?

Thanks--

Mark Looper

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 More: Re: Link errors under FreeBSD 6.2 with gcc 3.4.6   (Gabriele Cosmo - 02 Apr, 2008)
(_ None: Re: Link errors under FreeBSD 6.2 with gcc 3.4.6   (Mark Looper - 02 Apr, 2008)
(_ Feedback: Re: Link errors under FreeBSD 6.2 with gcc 3.4.6   (Gabriele Cosmo - 02 Apr, 2008)
(_ Agree: Re: Link errors under FreeBSD 6.2 with gcc 3.4.6   (Mark Looper - 02 Apr, 2008)
 Add Message Add Message
to: "Link errors under FreeBSD 6.2 with gcc 3.4.6"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]