Bugs item #1304830, was opened at 2005-09-26 15:20
Message generated for change (Comment added) made by akesson
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=1304830&group_id=12740Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: akesson (akesson)
Assigned to: Nobody/Anonymous (nobody)
Summary: Compiling on Mac OS X 10.4.2 fails
Initial Comment:
Hi there,
I am trying to compile QuantLib 3.10 on my Mac. I get the following
compiler error
ld: warning multiple definitions of symbol ___eprintf
and the compiler is complaining about some other multiple
definitions.
Anyone any idea what I am doing wrong ?
Logfile of the make is attached ...
Cheers
Fredrik
----------------------------------------------------------------------
>Comment By: akesson (akesson)
Date: 2005-10-10 14:41
Message:
Logged In: YES
user_id=1351881
The --disable-shared part did it for me (thanks for the advice). This
solves the problem I had with multiple definitions of 'core' symbols
from libgcc.
The big question is why the linker tries to link both the static AND
dynamic libgcc when trying to compile the shared libs for QuantLib.
This can not work ...
----------------------------------------------------------------------
Comment By: Patrick Klein (paklein)
Date: 2005-10-08 23:59
Message:
Logged In: YES
user_id=507736
After a little probing, I found that for some reason
calendar.o was being omitted from QuantLib libraries, though
I couldn't tell why from looking at the Makefile's. The
ugly fix was to list it twice in ql/Makefile:
am_libQuantLib_la_OBJECTS = calendar.lo calendar.lo
currency.lo date.lo
Don't know why, but that seems to fix it.
----------------------------------------------------------------------
Comment By: Patrick Klein (paklein)
Date: 2005-10-08 19:44
Message:
Logged In: YES
user_id=507736
It looks like the configure script is not picking up the
version of 10.4 correctly, and this was causing the wrong
linker flags to be used. I found that if I set
setenv MACOSX_DEPLOYMENT_TARGET 10.4
then re-ran configure, everything built -- except the
examples. I'm trying now with --disable-shared, but I'm
still getting some linker errors.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=1304830&group_id=12740