This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcc-3.2 build problem in the java area
- From: <cyan at obrien dot cc dot rochester dot edu>
- To: Andrew Haley <aph at redhat dot com>
- Cc: charles dot yanaitis at rochester dot edu, java at gcc dot gnu dot org
- Date: Thu, 10 Oct 2002 13:22:05 -0400 (EDT)
- Subject: Re: gcc-3.2 build problem in the java area
- Reply-to: charles dot yanaitis at rochester dot edu
Andrew,
On Thu, 10 Oct 2002, Andrew Haley wrote:
> cyan@obrien.cc.rochester.edu writes:
>> Andrew
>>
>> On Thu, 10 Oct 2002, Andrew Haley wrote:
>>
>> cyan@obrien.cc.rochester.edu writes:
>>>> Hi,
>>>>
>>>> I'm having consistent problem compiling gcc-3.2 on a Solaris 7 box.
>>>> The problem seems to be with libjava/java/net/natInetAddress.cc and
>>>> the make bombs out with:
>>>>
>>>> ./../../../libjava/java/net/natInetAddress.cc: In static member function
>>>> `static java::lang::String* java::net::InetAddress::getLocalHostname()':
>>>> ../../../../libjava/java/net/natInetAddress.cc:338: `MAXHOSTNAMELEN'
>>>> undeclared
>>>> (first use this function)
>>>> ../../../../libjava/java/net/natInetAddress.cc:339: `buffer' undeclared
>>>> (first use this function)
>>>> make[5]: *** [java/net/natInetAddress.lo] Error 1
>>>>
>>>> I'm compiling on an E420R, Solaris 7, kernel Generic_106541-21.
>>>
>>> You should find this in /usr/include/netdb.h:
>>>
>>> #define MAXHOSTNAMELEN 256
>>>
>>> Is it there?
>>>
>>> Andrew.
>>
>> Yes, that is one of the things I did check. How to I get the make
>> to recognize this? I tried fooling it by by setting CFLAGS to
>> -DMAXHOSTNAMELEN=256, but the make still bombed out in the same
>> place.
>
> Look for HAVE_NETDB_H in i686-pc-linux-gnu/libjava/include/config.h
>
> Andrew.
HAVE_NETDB_H in sparc-sun-solaris2.7/libjava/include/config.h, but when I
manually defined it and performed the make again, it still bombed out with
the same errors.
Thanks for the tips anyways!
Charlie
----------------------------------------------------------------------
Charlie Yanaitis charles.yanaitis@rochester.edu
Systems Analyst/Programmer (585) 275-4189
Information Technology Services University of Rochester
----------------------------------------------------------------------