httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: WWW Form Bug Report: "mod_status.c doesn't compile" on SunOS 4.x
Date Tue, 23 Apr 1996 14:39:15 GMT
Rob Hartill wrote:
> 
> 
> thanks. A few people have pointed this out now.
> 
> Hopefully it'll be added to a "known bugs" page on the Apache site.
> 
> regards,
> rob
> 
> >Submitter: babafou@hsc.fr
> >Operating system: SunOS 4.x, version: 
> >Version of Apache Used: 1.1b1
> >Extra Modules used: 
> >URL exhibiting problem: 
> >
> >Symptoms:
> >--
> >gcc -c -O -DSUNOS4 mod_status.c
> >mod_status.c: In function `show_time':
> >mod_status.c:119: invalid operands to binary +
> >mod_status.c:121: invalid operands to binary +
> >mod_status.c:123: invalid operands to binary +
> >mod_status.c:125: invalid operands to binary +
> >make: *** [mod_status.o] Error 1
> >
> >because sprintf() is char *sprintf().  I've compiled
> >Apache 1.1b1 on NetBSD 1.0 (hey, it isn't in your
> >list above!) and it works fine.

sprintf() should not be char *. It should be int. At least, that's what my
man pages say (and always have done). According to my man page, every major
standard agrees with this!

Cheers,

Ben.

-- 
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.

Mime
View raw message