From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6459 invoked by alias); 10 Oct 2002 15:10:08 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 6452 invoked from network); 10 Oct 2002 15:10:07 -0000 Received: from unknown (HELO obrien.cc.rochester.edu) (128.151.219.34) by sources.redhat.com with SMTP; 10 Oct 2002 15:10:07 -0000 Received: from localhost (cyan@localhost) by obrien.cc.rochester.edu (8.11.6/8.11.6) with ESMTP id g9AFA1B28238; Thu, 10 Oct 2002 11:10:02 -0400 (EDT) Date: Thu, 10 Oct 2002 10:25:00 -0000 From: cyan@obrien.cc.rochester.edu Reply-To: charles.yanaitis@rochester.edu To: Andrew Haley cc: charles.yanaitis@rochester.edu, gcc@gcc.gnu.org Subject: Re: gcc-3.2 build problem in the java area In-Reply-To: <15781.38525.112250.301901@cuddles.cambridge.redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-10/txt/msg00545.txt.bz2 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. Thanks! ---------------------------------------------------------------------- Charlie Yanaitis charles.yanaitis@rochester.edu Systems Analyst/Programmer (585) 275-4189 Information Technology Services University of Rochester ----------------------------------------------------------------------