You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ben Laurie <be...@gonzo.ben.algroup.co.uk> on 1996/04/17 15:21:55 UTC

Re: WWW Form Bug Report: "mod_negociation does not compile" on AIX (fwd)

> 
> 
> not acked.

Ooops! Floating point numbers are used to initialize ints. Not exactly wrong
but definitely suboptimal. But, on the other hand, not all these errors are
caused by that (some of them are used to initialize floats). So I dunno whats
going on here, but I'll fix the bad initialisations.

Cheers,

Ben.

> 
> Message-Id: <19...@taz.hyperreal.com>
> From: mf@ircam.fr
> To: apache-bugs%apache.org@organic.com
> Date: Wed Apr 17  1:02:45 1996
> Subject: WWW Form Bug Report: "mod_negociation does not compile" on AIX
> 
> Submitter: mf@ircam.fr
> Operating system: AIX, version: 4.1
> Extra Modules used: n/a
> URL exhibiting problem: 
> 
> Symptoms:
> --
> The compilation of mod_negociation.c fails with:
> "mod_negotiation.c", line 212.33: 1506-189 (S) Floating point constant 0.0 is not valid.
> "mod_negotiation.c", line 213.24: 1506-189 (S) Floating point constant 0.0 is not valid.
> "mod_negotiation.c", line 214.32: 1506-189 (S) Floating point constant 0.0 is not valid.
> "mod_negotiation.c", line 215.21: 1506-189 (S) Floating point constant 0.0 is not valid.
> "mod_negotiation.c", line 216.26: 1506-189 (S) Floating point constant 0.0 is not valid.
> "mod_negotiation.c", line 297.23: 1506-189 (S) Floating point constant 1.0 is not valid.
> "mod_negotiation.c", line 298.25: 1506-189 (S) Floating point constant 0.0 is not valid.
> "mod_negotiation.c", line 299.21: 1506-189 (S) Floating point constant 0.0 is not valid.
> "mod_negotiation.c", line 322.29: 1506-189 (S) Floating point constant 0.0 is not valid.
> "mod_negotiation.c", line 323.25: 1506-189 (S) Floating point constant 2.0 is not valid.
> "mod_negotiation.c", line 325.25: 1506-189 (S) Floating point constant 2.0 is not valid.
> "mod_negotiation.c", line 327.25: 1506-189 (S) Floating point constant 3.0 is not valid.
> "mod_negotiation.c", line 424.25: 1506-189 (S) Floating point constant 0.0 is not valid.
> "mod_negotiation.c", line 425.29: 1506-189 (S) Floating point constant 0.0 is not valid.
> "mod_negotiation.c", line 432.27: 1506-189 (S) Floating point constant 1.0 is not valid.
> "mod_negotiation.c", line 433.25: 1506-189 (S) Floating point constant 0.0 is not valid.
> "mod_negotiation.c", line 434.29: 1506-189 (S) Floating point constant 0.0 is not valid.
> "mod_negotiation.c", line 889.43: 1506-189 (S) Floating point constant 1.0 is not valid.
> "mod_negotiation.c", line 946.26: 1506-189 (S) Floating point constant 0.0 is not valid.
> "mod_negotiation.c", line 973.22: 1506-189 (S) Floating point constant 0.0 is not valid.
> --
> 
> Backtrace:
> --
> 
> --
> 
> ----- End of forwarded message from mf@ircam.fr -----
> 
> -- 
> Rob Hartill (robh@imdb.com)
> The Internet Movie Database (IMDb)  http://www.imdb.com/
>            ...more movie info than you can poke a stick at.

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.

Re: WWW Form Bug Report: "mod_negociation does not compile" on AIX (fwd)

Posted by Tom Tromey <tr...@creche.cygnus.com>.
Ben> Ooops! Floating point numbers are used to initialize ints. Not
Ben> exactly wrong but definitely suboptimal. But, on the other hand,
Ben> not all these errors are caused by that (some of them are used to
Ben> initialize floats). So I dunno whats going on here, but I'll fix
Ben> the bad initialisations.

>> The compilation of mod_negociation.c fails with:
>> "mod_negotiation.c", line 212.33: 1506-189 (S) Floating point constant 0.0 is not valid.


I'm not sure, but I think I've heard that at least one AIX compiler
uses the locale to parse numeric constants.  So in some countries
"0.0" would have to be written "0,0".

So this is a compiler bug.  Setting (the env var) LANG=C for the
compile should probably fix it.

Tom
-- 
tromey@cygnus.com                 Member, League for Programming Freedom