[MITgcm-support] snprintf$LDBLStub compilation problem
Ed Hill
ed at eh3.com
Mon Jun 12 13:14:39 EDT 2006
On Mon, 2006-06-12 at 12:12 -0400, Nicolas Wienders wrote:
>
> I just downloaded a fresh cvs version of MITgcm
> after doing an OS upgrade on one of our machine.
>
> I can compile an run every example, but as soon as i
> add "mnc" in the list of packages i get the following
> error at the very end of the compilation:
>
> /usr/bin/ld: Undefined symbols:
> _snprintf$LDBLStub
> make: *** [mitgcmuv] Error 1
>
> Any idea of where that could be coming from?
> Thanks a lot. nw
Hi Nicolas,
Apple ships its own modified version of GCC and some of the changes they
make are mighty bone-headed. If you google for the terms
Undefined symbols: printf$LDBLStub
you'll see that number of other folks have encountered this problem or
similar ones. It has something to do with Xcode and I think it can be
disabled with a compiler switch or an environment variable such as:
export MACOSX_DEVELOPMENT_TARGET=10.4
or maybe an additional
-lSystemStubs
[ http://forums.macosxhints.com/archive/index.php/t-43678.html ]
or something. I don't have access to a Mac right now and don't have
time to fight with it. Keep google-ing and I'm sure you can find a
better answer.
Ed
--
Edward H. Hill III, PhD
office: MIT Dept. of EAPS 54-1424; 77 Massachusetts Ave.
Cambridge, MA 02139-4307
emails: eh3 at mit.edu ed at eh3.com
URLs: http://web.mit.edu/eh3/ http://eh3.com/
phone: 617-253-0098
fax: 617-253-4464
More information about the MITgcm-support
mailing list