gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUTLS Solaris 10


From: Simon Josefsson
Subject: Re: GNUTLS Solaris 10
Date: Sun, 19 Apr 2009 20:11:58 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.90 (gnu/linux)

Tim Tessier <address@hidden> writes:

> Hello,
>
> There appears to be a very small bug when compiling gnutls on solaris
> in regards to the value HUGE_VAL and -HUGE_VAL.
> Solaris defines this value as a function pointer instead of an actual
> value

I think it is older versions of gcc that have the bug, see earlier
discussions:

http://article.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/2939

> and it was suggested on a site to use DBL_MAX instead. The file in
> question is ( src/cfg/shared.c ) line 727. I did this change and ran
> the make check command and all tests passed so I am assuming
> everything to be ok.

It's not correct, but I don't think you'll run into that particular
corner case anyway.

The proper solution is to upgrade your gcc.  As a workaround, replace
HUGE_VAL with HUGE_VAL().  Possibly gnulib could contain a module that
detects and works around this problem, but I don't have access to a
system with this problem so it is difficult to develop.

/Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]