bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/30350] New: compilation fails on skyos, gethostbyname_r


From: peter dot speybrouck at gmail dot com
Subject: [Bug classpath/30350] New: compilation fails on skyos, gethostbyname_r has less arguments
Date: 2 Jan 2007 01:13:22 -0000

when trying to compile classpath on skyos I get the following error:

in file  native/jni/native-lib/cpnet.c:
in function cpnet_getHostByName:
error: too many arguments to function 'gethostbyname_r'

the function prototype on skyos is:
int gethostbyname_r __P((const char *, struct hostent *, struct hostent_data
*));
so it's the variant with 3 arguments.

robilad suggested on irc: a better way to fix gethostname_r issues would be to
use http://www.skynet.ie/~caolan/Fragments/gethostbyname_r.html I think.

for now I used the alternative with gethostbyname which works.


-- 
           Summary: compilation fails on skyos, gethostbyname_r has less
                    arguments
           Product: classpath
           Version: 0.93
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: peter dot speybrouck at gmail dot com
 GCC build triplet: i586-pc-skyos
  GCC host triplet: i586-pc-skyos
GCC target triplet: i586-pc-skyos


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30350





reply via email to

[Prev in Thread] Current Thread [Next in Thread]