GCC problems on HP-UX, inet_ntoa broken.

Arthur Bergman arthur@contiller.se
Wed Aug 29 05:24:00 GMT 2001


The problem with multihome on GCC + 64bit HP-UX11 seems to be the fact that
inet_ntoa always returns 0.0.0.0.

One explanation for this MIGHT be similar to the problems GCC have with
returnvalues smaller than 8byte on 64bit IRIX. I am crossposting this to
gcc-bugs@gcc.gnu.org hoping for some help.

To gcc people, we have a trouble with a perfectly sane inet_ntoa call
returning 0.0.0.0 and nothing else. Is this a known issue?


p5p: 

I propose the following fix.

If we are on HP-UX 11 with 64bit turned on and compiled with gcc we do our
own inet_ntoa. Otherwise we use the system inet_ntoa.

-- 
Arthur



More information about the Gcc-bugs mailing list