gcc generates broken code for inet_ntoa() et al on IRIX 6.5
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1148
Reported by @grubba
From: Johan Hattne <firstname.lastname@example.org> To: email@example.com Date: Sun, 4 Feb 2001 21:00:12 +0100 Subject: IRIX 6.5
I wrote to this list some months ago complaining about roxen not working when compiled with gcc. There is a bug in gcc on IRIX that messes up the handling of IP-numbers (inet_ntoa and friends if I am not mistaken) so all requests seem to come from 0.0.0.0 or 255.255.255.255. The source still compiles nicely, but it is diffucult (impossible?) to bind the server to any very useful address.
So I compiled with cc (license required) and now things work. Problem is the IRIX binaries available from the roxen website show the same symptoms as my broken server did when compiled with gcc. Either these binaries are compiled with a broken gcc or I am doing something else wrong. If anybody has downloaded a working IRIX binary I will have to look over my configurations.
SysAdmin @ Biology Education Centre, Uppsala University