* Re: gcc-3.3.1 build problem MAXHOSTNAMELEN undeclared
@ 2004-03-11 10:44 E. Stuart Hicks
0 siblings, 0 replies; 3+ messages in thread
From: E. Stuart Hicks @ 2004-03-11 10:44 UTC (permalink / raw)
To: gcc-help
This error is still in there as of 3.3.3 and appears under Solaris 9 as
well. I'm not sure why HAVE_NETDB_H isn't being properly set; however, 6
hours into a compile is not a good time to crash out - the little stuffed
dust puppy I had in my hand at the time almost didn't survive...
Stu
> As Dan points out, grep didn't show the whole
> story. I still don't understand the code well
> enough to explain it, but I did get gcc to build
> by just inserting the
> #define MAXHOSTNAMELEN 256
> line in the natInetAddress.cc file. Thanks for
> your consideration,
>
> Bec
>
> Dan Kegel wrote:
>>
>> Becky Sander wrote:
>> > I'm having problems building gcc3.3.1 on solaris 2.7. ...
>> > ../../../gcc-3.3.1/libjava/java/net/natInetAddress.cc:338:error:
`MAXHOSTNAMELEN' undeclared (first use this function)
>> > ...
>> > # grep MAXHOST /usr/include/netdb.h
>> > #define MAXHOSTNAMELEN 256
>> >
>> > I've added /usr/include with CPPFLAGS environment
>> > variable, but the build still crashes here. And,
>> > I can't seem to locate where buffer is defined,
>> > either. I'm completely stuck. Any suggestions are
>> > greatly appreciated!
>>
>> Grep doesn't tell the whole story. Look at the previous ten lines:
>>
>> #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
>> #define NO_ADDRESS NO_DATA /* no address, look for MX record
*/
>>
>> /* BIND */
>> #define NETDB_INTERNAL -1 /* see errno */
>> #define NETDB_SUCCESS 0 /* no problem */
>> /* End BIND */
>>
>> #define MAXHOSTNAMELEN 256
>>
>> Maybe gcc doesn't define __EXTENSIONS__. You could try setting
>> CXXFLAGS="-g -O2 -D__EXTENSIONS__" when running gcc's configure;
>> not sure if that's how to jam that define in there, but it sounds
>> good to me.
>> - Dan
>>
>> --
>> Dan Kegel
>> http://www.kegel.com
>> http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
>
> --
> Becky Sander CSU Special Projects
> rknigh@xxxxxxxxxx 505.844.1164
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gcc-3.3.1 build problem MAXHOSTNAMELEN undeclared
[not found] <3F865665.3030307@kegel.com>
@ 2003-10-10 12:13 ` Becky Sander
0 siblings, 0 replies; 3+ messages in thread
From: Becky Sander @ 2003-10-10 12:13 UTC (permalink / raw)
To: gcc-help
As Dan points out, grep didn't show the whole
story. I still don't understand the code well
enough to explain it, but I did get gcc to build
by just inserting the
#define MAXHOSTNAMELEN 256
line in the natInetAddress.cc file. Thanks for
your consideration,
Bec
Dan Kegel wrote:
>
> Becky Sander wrote:
> > I'm having problems building gcc3.3.1 on solaris 2.7. ...
> > ../../../gcc-3.3.1/libjava/java/net/natInetAddress.cc:338:error: `MAXHOSTNAMELEN' undeclared (first use this function)
> > ...
> > # grep MAXHOST /usr/include/netdb.h
> > #define MAXHOSTNAMELEN 256
> >
> > I've added /usr/include with CPPFLAGS environment
> > variable, but the build still crashes here. And,
> > I can't seem to locate where buffer is defined,
> > either. I'm completely stuck. Any suggestions are
> > greatly appreciated!
>
> Grep doesn't tell the whole story. Look at the previous ten lines:
>
> #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
> #define NO_ADDRESS NO_DATA /* no address, look for MX record */
>
> /* BIND */
> #define NETDB_INTERNAL -1 /* see errno */
> #define NETDB_SUCCESS 0 /* no problem */
> /* End BIND */
>
> #define MAXHOSTNAMELEN 256
>
> Maybe gcc doesn't define __EXTENSIONS__. You could try setting
> CXXFLAGS="-g -O2 -D__EXTENSIONS__" when running gcc's configure;
> not sure if that's how to jam that define in there, but it sounds
> good to me.
> - Dan
>
> --
> Dan Kegel
> http://www.kegel.com
> http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
--
Becky Sander CSU Special Projects
rknigh@sandia.gov 505.844.1164
^ permalink raw reply [flat|nested] 3+ messages in thread
* gcc-3.3.1 build problem MAXHOSTNAMELEN undeclared
@ 2003-10-08 15:00 Becky Sander
0 siblings, 0 replies; 3+ messages in thread
From: Becky Sander @ 2003-10-08 15:00 UTC (permalink / raw)
To: gcc-help
Good morning,
I'm having problems building gcc3.3.1 on solaris
2.7. This same error is posted twice to the gcc
mailing list about a year ago, but I don't see a
resolution posted. Has anyone figured this out?
# This directory was configured as follows:
../gcc-3.3.1/configure
--with-gcc-version-trigger=/nfs/p1/share/src/build/gcc-3.3.1/gcc/version.c
--host=sparc-sun-solaris2.7
--prefix=/usr/tags/arch
--with-local-prefix=/usr/tags/arch --with-gnu-as
--with-as=/usr/tags/arch/gnu/bin/as --with-gnu-ld
--with-ld=/usr/tags/arch/gnu/bin/ld
--disable-multilib --norecursion
# uname -a
SunOS monster 5.7 Generic_106541-08 sun4u sparc
SUNW,Ultra-80
# as --version
GNU assembler 2.14 20030612
# ld --version
GNU ld version 2.14 20030612
binutils-2.14
# make --version
GNU Make 3.80
CONFIG_SHELL=/bin/ksh
A make bootstrap stops here;
../../../gcc-3.3.1/libjava/java/net/natInetAddress.cc:338:
error: `
MAXHOSTNAMELEN' undeclared (first use this
function)
../../../gcc-3.3.1/libjava/java/net/natInetAddress.cc:338:
error: (Each
undeclared identifier is reported only once for
each function it appears
in.)
../../../gcc-3.3.1/libjava/java/net/natInetAddress.cc:339:
error: `buffer'
undeclared (first use this function)
make[3]: *** [java/net/natInetAddress.lo] Error 1
make[3]: Leaving directory
`/nfs/p1/share/src/build/gcc-sol/sparc-sun-solaris2.7/libjava'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/nfs/p1/share/src/build/gcc-sol/sparc-sun-solaris2.7/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory
`/nfs/p1/share/src/build/gcc-sol'
make: *** [bootstrap] Error 2
# grep MAXHOST /usr/include/netdb.h
#define MAXHOSTNAMELEN 256
I've added /usr/include with CPPFLAGS environment
variable, but the build still crashes here. And,
I can't seem to locate where buffer is defined,
either. I'm completely stuck. Any suggestions are
greatly appreciated!
--
Becky Sander
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-03-10 23:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-11 10:44 gcc-3.3.1 build problem MAXHOSTNAMELEN undeclared E. Stuart Hicks
[not found] <3F865665.3030307@kegel.com>
2003-10-10 12:13 ` Becky Sander
-- strict thread matches above, loose matches on Subject: below --
2003-10-08 15:00 Becky Sander
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).