bug in src/shared.c

Simon Josefsson simon at josefsson.org
Tue Jan 13 17:40:40 CET 2009


Stefan Janssen <stefan.janssen at uni-bielefeld.de> writes:

> Hi,
>
> I tried to compile gnuTLS on my Solaris SunOS 5.10 i386 machine. Make
> crashed, because in the file src/shared.c in line 727 the symbol
> HUGE_VAL is used twice. After I added Parentesis behind HUGE_VAL
> everything compiled fine. Maybe you could change this line in your
> source from
>
>            if (double_val == +HUGE_VAL || double_val == -HUGE_VAL)
>
> to
>
>            if (double_val == +HUGE_VAL() || double_val == -HUGE_VAL())

Hi.  Thanks for the report.  Which gcc version do you use?  We've seen
this before, and then it was a gcc bug:

http://thread.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/2495/focus=2933
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19933

Changing the code the way you proposed will break on many platforms, so
it is not an option:

cfg/shared.c:727: error: called object ‘+Inf’ is not a function

Does either of the suggested fix in the thread above solve the problem
for you?

/Simon





More information about the Gnutls-devel mailing list