Re: Re: Problem Compiling QuantLib 0.3.11 on Solaris 5.8
Posted by
Xavier.Abulker on
URL: http://quantlib.414.s1.nabble.com/Re-Problem-Compiling-QuantLib-0-3-11-on-Solaris-5-8-tp4359p4360.html
Hi Luigi,
My problem is getting better, the Boost
User group gave me this good advice:
The following SUN patches are required:
in http://developers.sun.com/prodtech/cc/downloads/patches/ss11_patches.html
| Sun Studio 11 Compilers
|
| Compilers Back-End
|
| Sun Studio 11 Compilers
|
| C++ |
Maybe you could add this in the "required"
section of the Quantlib installation. |
Another small problem,
There is something in the ql/Math/generalstatistics.hpp
that CC doesn't like:
"../../ql/Math/generalstatistics.hpp",
line 129: Error: Cannot use std::pair<QuantLib::Null<double>,
int> to initialize std::pair<double, unsigned>.
"../../ql/Math/generalstatistics.hpp",
line 129: Error: Cannot use std::pair<QuantLib::Null<double>,
int> to initialize std::pair<double, unsigned>.
"../../ql/Math/generalstatistics.hpp",
line 129: Error: Cannot use std::pair<QuantLib::Null<double>,
int> to initialize std::pair<double, unsigned>.
"../../ql/Math/generalstatistics.hpp",
line 129: Error: Cannot use std::pair<QuantLib::Null<double>,
int> to initialize std::pair<double, unsigned>.
4 Error(s) and 1 Warning(s) detected.
*** Error code 1
make: Fatal error: Command failed for
target `generalstatistics.lo'
I changed this part of the code:
if (N == 0)
return std::make_pair(Null<Real>(),0);
else
return std::make_pair(num/den,N);
I removed the return std::make_pair(Null<Real>(),0);
and it works well.
I know this is not clean but I don't
have enough time to do better.
Thank you for your help
Xavier
| Xavier ABULKER/BAN/PAR/FIMAT
30/01/2006 11:37
|
|
To
| Luigi Ballabio <[hidden email]>
|
|
cc
| [hidden email],
[hidden email]
|
|
Subject
| Re: [Quantlib-users] Re: Problem Compiling
QuantLib 0.3.11 on Solaris 5.8<a href=Notes:///C1256BC2003A1421/DABA975B9FB113EB852564B5001283EA/416F3E19768196B6C12571060038B244>Link |
|
Hello Luigi,
OK I have to see with the
mailing list Boost if someone can help.
Searching "Assertion:
(../lnk/init.cc, line 1032)" with google gives me 2 interesting links:
1) there is a patch for Sun Studio
10 solving the error:
6313010 BOOST: Assertion:
(../lnk/init.cc, line 1032)
(see http://sunsolve.sun.com/search/advsearch.do?collection=PATCH&type=collections&max=50&language=en&queryKey5=117830&toDocument=yes)
2) Someone has reported the same
error on Boost:
sunpro-C++-action
../../../bin/boost/libs/filesystem/build/libboost_filesystem.a/sunpro/release/operations_posix_windows.o
>> Assertion: (../lnk/init.cc, line 1032)
(see http://lists.boost.org/boost-testing/2005/11/2309.php) |
Regards
Xavier Abulker
On 1/30/06, [hidden email] <[hidden email]>
wrote:
> >> Assertion: (../lnk/init.cc, line 1032)
> while processing ../../ql/history.hpp at line 135.
> *** Error code 1
>
> It looks this is a Boost error already reported but I don't find any
patch for sun5.9.
> I'd like to know if I can disable boost when I compile Quantlib with
> --disable-FEATURE
> Do you know how I can do that?
No, I'm sorry---Boost is required. What did you find about the
reported Boost error? What is it exactly?
Later,
Luigi
> Best Regards
>
> Xavier
>
>
>
>
> Luigi Ballabio <[hidden email]>
> Sent by: [hidden email]
>
> 18/01/2006 16:01
>
> To "[hidden email]" <[hidden email]>
>
> cc [hidden email]
>
> Subject [Quantlib-users] Re: Problem Compiling QuantLib 0.3.11 on
Solaris 5.8
>
>
>
>
>
>
>
>
> On 1/18/06, [hidden email] <[hidden email]>
wrote:
> > the error is still the same:
> >
> > >> Assertion: (../lnk/init.cc, line
1032)
> > while processing ../../ql/history.hpp at
line 135.
> > *** Error code 1
>
> Hmm, I see. It seems that I followed a red herring.
> As to the above error, it seems more like an assertion error
in the
> linker. It's given something it doesn't like, and just croaks
on you
> instead of issuing an error.
>
>
> > I'm wondering if I correclty setup the environement variables.
> > Whta I use is:
> > export CPPFLAGS='-I/usr/local/include/boost-1_33_1/ -I/
/export/home/xavier/studio/SUNWspro/include -L/usr/local/lib –L/export/home/xavier/studio/SUNWspro/include
'
> >
> > export LDFLAGS='-I/usr/local/include/boost-1_33_1/ -I/
/export/home/xavier/studio/SUNWspro/lib –I/usr/local/lib'
>
> Yes, I think so.
>
> Later,
> Luigi
> áŠÄ…ë^™¨¥ŠË)¢{(ç[É*eºyÀèÊ‹ êm†º.‚hø¥zÇè(r)šènW¦±+h¤:0žZvØ^ì$ìyªÜ…éàŠw…«fjG¬±æ«r§ƒ*.(r)Z
~)^±«jÌš²Ë«~)à¶°y°ÎXÒÎ4-CJ†Ûiÿû•«.±ö¥'¨'zßìzW&vYä''uÓ~7Ù¸Û}8ó§Z·]µë¹(c)í–&î±ê왨¥Šx%ŠËP¹(c)í–&î±êì–+-²Ê.ÇŸ¢¸ëa¶Úlÿùb²Û,¢êÜyú+éÞ·ùb²Û?–+-Šwèþ«šžÙbnë(r)
>
> *************************************************************************
> Ce message et toutes les pieces jointes (ci-apres le "message")
sont
> confidentiels et etablis a l'intention exclusive de ses destinataires.
> Toute utilisation ou diffusion non autorisee est interdite.
> Tout message electronique est susceptible d'alteration.
> La FIMAT et ses filiales declinent toute responsabilite
> au titre de ce message s'il a ete altere, deforme ou falsifie.
> ********
> This message and any attachments (the "message") are
confidential and
> intended solely for the addressees.
> Any unauthorised use or dissemination is prohibited.
> E-mails are susceptible to alteration.
> Neither FIMAT nor any of its subsidiaries or affiliates
> shall be liable for the message if altered,
> changed or falsified.
>
>
>
> *************************************************************************
> Ce message et toutes les pieces jointes (ci-apres le "message")
sont
> confidentiels et etablis a l'intention exclusive de ses destinataires.
> Toute utilisation ou diffusion non autorisee est interdite.
> Tout message electronique est susceptible d'alteration.
> La FIMAT et ses filiales declinent toute responsabilite
> au titre de ce message s'il a ete altere, deforme ou falsifie.
> ********
> This message and any attachments (the "message") are confidential
and
> intended solely for the addressees.
> Any unauthorised use or dissemination is prohibited.
> E-mails are susceptible to alteration.
> Neither FIMAT nor any of its subsidiaries or affiliates
> shall be liable for the message if altered,
> changed or falsified.
>
>
N?HY隊X???'???u???[???????
ަ?k??!???W?~?鮆?zk??C?
塧m??Þ?@^ǚ??^??z?Z?f?z?j?!?x2??å??ë??É?,???a{??,?H?Ô4?m?????Z??jY?w??ǥrge?I"w]7?}??ݷӏ:u?u?^?????bn??ɚ?X??X?????bn???b??,??Üy?+??Þ?m??ÿ?+-??.?ǟ?????+-??b?ا~?깩?&?ê?
*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message")
sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
La FIMAT et ses filiales declinent toute responsabilite
au titre de ce message s'il a ete altere, deforme ou falsifie.
********
This message and any attachments (the "message") are confidential
and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.
Neither FIMAT nor any of its subsidiaries or affiliates
shall be liable for the message if altered,
changed or falsified.
*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
La FIMAT et ses filiales declinent toute responsabilite
au titre de ce message s'il a ete altere, deforme ou falsifie.
********
This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.
Neither FIMAT nor any of its subsidiaries or affiliates
shall be liable for the message if altered,
changed or falsified.
|