Peter,
On 2005 Jan 26 , at 10.33, Peter W. Draper wrote:
> that's interesting. Yesterday I switched GAIA over to using libtool for
> the final linking stages (I wanted to do a static link for some
> pre-release, libtool actually turned out to be the simplest way to do
> this) and now I'm missing the symbols:
>
> _f__xargc
> _f__xargv
Wey-hey! I managed to get that far with GAIA by adding a -lcc_dynamic
(the magic restFP fix) to GAIA's link line, but at that point gave up
in despair, as I really couldn't give a convincing explanation of why
that would have made any difference at all, much less making one of the
problems go away (I was actually trying to see if I could get a
full-house of linker error messages, and instead the most truculent one
disappeared!).
I've sent a long message to a Fortran-on-OSX list, but haven't had any
enlightenment yet.
> Better look back at your mail message about how to fix that...
Ah, the fix that worked for me with DIPSO and CCDPACK was to use a
Fortran main, instead of a C main calling the Fortran RTL (the Fortran
main calls a routine which initialises the argv). Since GAIA's
currently linked using C++, this might be trickier to arrange....
However the g77 RTL does the initialisation through a call to a routine
f_setarg(argc,argv), which might be a rather nasty --
compiler-dependent -- fallback if there's no more principled way of
arranging this.
Norman
--
----------------------------------------------------------------------
Norman Gray : Physics & Astronomy, Glasgow University, UK
http://www.astro.gla.ac.uk/users/norman/ : www.starlink.ac.uk
|