This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the GCJ project. See the GCJ home page for more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libgcj ,OFS1 on alpha




On Thu, 15 Apr 1999, Anthony Green wrote:

...

> Try the following patch:

...

> -- 
> Anthony Green                                               Cygnus Solutions
>                                                        Sunnyvale, California

Done, now java/lang compiles!
Next problem is when make tries

c++ -DHAVE_CONFIG_H -I. -I../../../libgcj/libjava -I./include -Iinclude
-I../../../libgcj/libjava/include -I../../../libgcj/libjava/../boehm-gc
-I./../boehm-gc  -DSILENT=1 -DNO_SIGNALS=1 -DNO_DEBUGGING=1
-DJAVA_FINALIZATION=1   -I../../../libgcj/libjava/../compat-include
-fno-rtti -fvtable-thunks   -W -Wall -g -O2 -c -o
java/net/natInetAddress.o 
../../../libgcj/libjava/java/net/natInetAddress.cc

which gives

../../../libgcj/libjava/java/net/natInetAddress.cc: In function `static
class JArray<java::net::InetAddress *> *
java::net::InetAddress::lookup(java::lang::String *,
java::net::InetAddress *, __java_boolean)':
../../../libgcj/libjava/java/net/natInetAddress.cc:125: implicit
declaration of function `int gethostbyname_r(...)'
../../../libgcj/libjava/java/net/natInetAddress.cc:125: assignment to
`hostent *' from `int' lacks a cast
../../../libgcj/libjava/java/net/natInetAddress.cc:173: implicit
declaration of function `int gethostbyaddr_r(...)'
../../../libgcj/libjava/java/net/natInetAddress.cc:173: assignment to
`hostent *' from `int' lacks a cast


I tried to to run with -E -dM again which shows that HAVE_NETDB_H is
defined. According to the man page for gethostbyname_r should <netdb.h>
contain this function. GETHOSTBYNAME_R_RETURNS_INT is not defined but
the manpage states that gethostbyname_r returns int. The same for
GETHOSTBYADDR_R_RETURNS_INT and gethostbyaddr_r.

David