Problem building libgcj-2.95

Oleg Moroz moroz@metahood.ru
Thu Aug 5 06:38:00 GMT 1999


This one is easy: 1) Cygwin b20.1 headers do not declare in_addr_t (which
should be unsigned long), and 2) cygwin/in.h defines some of the IPv6 thigs
w/o full support for it, so configure picks up HAVE_INET6 which it
shouldn't. Quick and dirty fixes work.

There are couple more minor quirks as well - first, the make process tries
to invoke /bin/pwd, which isn't there in the default installation of Cygwin,
and then natGregorianCalendar.c (file name from memory) tries to use
variable "timezone" (which clashes with the function name) instead of
"_timezone".

After fixing these, libgcj 2.95 builds OK under Mumit Khan's port of gcc
2.95 to cygwin.

There are some troubles with linking programs with gcj though that I can't
yet fix; this is all on my home computer, so I'll investigate more this
night.

Oleg Moroz
Software Engineer
MetaHood

----- Original Message -----
From: Corneil du Plessis <Corneil@afa.co.za>
To: <egcs-bugs@egcs.cygnus.com>; <java-discuss@sourceware.cygnus.com>
Sent: Thursday, August 05, 1999 5:27 PM
Subject: Problem building libgcj-2.95


> I have the following installation
> cygwin32.b20.1
> gcc 2.95
>
> I ran:
> mkdir libgcj
> cd libgcj
> ../libgcj-2.95/configure
> make
>
> I get the following error:
> c++ -DHAVE_CONFIG_H -I. -I/cygnus/libgcj-2.95/libjava -I./include
> -Iinclude -I/cygnus/libgcj-2.95/libjava/include
> -I/cygnus/libgcj-2.95/libjava/../boehm-gc -I./../boehm-gc -DSILENT=1
> -DNO_SIGNALS=1 -DNO_DEBUGGING=1 -DJAVA_FINALIZATION=1
> -I/cygnus/libgcj-2.95/libjava/../compat-include
> -I/cygnus/libgcj-2.95/libjava/../zlib -fno-rtti -fvtable-thunks
> -fpermissive -ffloat-store -W -Wall -g -O2 -c  -DPIC
> /cygnus/libgcj-2.95/libjava/java/net/natInetAddress.cc -o
> java/net/.libs/natInetAddress.lo
>
> /cygnus/libgcj-2.95/libjava/java/net/natInetAddress.cc: In function
> `static class JArray<__java_byte> * java::net::InetA
> ddress::aton(java::lang::String *)':
> /cygnus/libgcj-2.95/libjava/java/net/natInetAddress.cc:74: `in_addr_t'
> undeclared (first use this function)
> /cygnus/libgcj-2.95/libjava/java/net/natInetAddress.cc:74: (Each
> undeclared identifier is reported only once
> /cygnus/libgcj-2.95/libjava/java/net/natInetAddress.cc:74: for each
> function it appears in.)
> /cygnus/libgcj-2.95/libjava/java/net/natInetAddress.cc:74: parse error
> before `='
> /cygnus/libgcj-2.95/libjava/java/net/natInetAddress.cc:75: `laddr'
> undeclared (first use this function)
> /cygnus/libgcj-2.95/libjava/java/net/natInetAddress.cc: In function
> `static class JArray<java::net::InetAddress *> * jav
> a::net::InetAddress::lookup(java::lang::String *, java::net::InetAddress
> *, __java_boolean)':
> /cygnus/libgcj-2.95/libjava/java/net/natInetAddress.cc:179: `AF_INET6'
> undeclared (first use this function)
> /cygnus/libgcj-2.95/libjava/java/net/natInetAddress.cc:168: warning:
> `int type' might be used uninitialized in this function
>
> I am at a loss
>
>
> Corneil du Plessis
> corneil@afa.co.za
> AFA Systems International
> Tel +27 11 886-6938
> Fax +27 11 789-4907




More information about the Gcc-bugs mailing list