GNUTLS Solaris 10

Simon Josefsson simon at josefsson.org
Sun Apr 19 20:11:58 CEST 2009


Tim Tessier <ttessier at swhistlesoft.com> 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





More information about the Gnutls-devel mailing list