This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project.


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

Problems building 5.0 on Solaris 8 x86


I just downloaded the new 5.0 release, and it failed to build, the same
way that 4.18 did.  Has anyone else seen this?  I downloaded a snapshot
dated 4/19, and it worked, but a newer snapshot failed, so the 4/19
snapshot is what I have to work with.

I tracked this down once, and if I remember correctly, it turned out to
be a missing declaration of bool if you were using a certain combination
of curses and other things.  Ok, so I don't really remember, and I never
did figure out how to fix it without getting tons of warnings about
redeclarations and the like.  Here's the compile failure:

gcc -c -O3    -I. -I. -I./config -DHAVE_CONFIG_H -I./../include/opcode
-I./../readline/.. -I../bfd -I./../bfd  -I./../include -I../intl
-I./../intl -I./tui  -DUSE_INCLUDED_REGEX   utils.c
In file included from utils.c:31:
/usr/include/term.h:1034: parse error before `bool'
/usr/include/term.h:1034: warning: no semicolon at end of struct or
union
/usr/include/term.h:1035: warning: data definition has no type or
storage class
/usr/include/term.h:1060: parse error before `SGTTY'
/usr/include/term.h:1060: warning: no semicolon at end of struct or
union
/usr/include/term.h:1081: parse error before `sgr_mode'
/usr/include/term.h:1081: warning: data definition has no type or
storage class
/usr/include/term.h:1082: parse error before `sgr_faked'
/usr/include/term.h:1082: warning: data definition has no type or
storage class
/usr/include/term.h:1092: parse error before `funckeystarter'
/usr/include/term.h:1092: warning: data definition has no type or
storage class
/usr/include/term.h:1094: parse error before `_fl_rawmode'
/usr/include/term.h:1097: warning: data definition has no type or
storage class
/usr/include/term.h:1101: parse error before `_input_queue'
/usr/include/term.h:1101: warning: data definition has no type or
storage class
/usr/include/term.h:1108: parse error before `*'
/usr/include/term.h:1108: warning: data definition has no type or
storage class
/usr/include/term.h:1111: parse error before `bit_vector'
/usr/include/term.h:1111: warning: data definition has no type or
storage class
/usr/include/term.h:1115: parse error before `check_turn_off'
/usr/include/term.h:1115: warning: data definition has no type or
storage class
/usr/include/term.h:1116: parse error before `non_faked_mode'
/usr/include/term.h:1116: warning: data definition has no type or
storage class
/usr/include/term.h:1117: parse error before `_cur_pair'
/usr/include/term.h:1117: warning: data definition has no type or
storage class
/usr/include/term.h:1118: parse error before `*'
/usr/include/term.h:1118: warning: data definition has no type or
storage class
/usr/include/term.h:1120: parse error before `}'
/usr/include/term.h:1207: parse error before `int'
/usr/include/term.h:1207: `vidputs' declared as function returning a
function
/usr/include/term.h:1207: parse error before `)'
make[1]: *** [utils.o] Error 1

Here's the machine/compiler data:

bosch:/usr/local/src/gdb-5.0:108> uname -a
SunOS bosch 5.8 Generic i86pc i386 i86pc
bosch:/usr/local/src/gdb-5.0:109> gcc --version
2.95.2
bosch:/usr/local/src/gdb-5.0:110> gcc -v
Reading specs from /usr/gnu/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/specs
gcc version 2.95.2 19991024 (release)
bosch:/usr/local/src/gdb-5.0:111>

This is the final version of Solaris, not one of the early access
versions, although the same problem existed there.  The compiler was
created using 'make bootstrap'.

The configure line I used was:

bosch:/usr/local/src/gdb-5.0:111> CC=gcc CFLAGS=-O3 ./configure
--prefix=/usr/gnu

(And, replacing CFLAGS with -g gets the same results.)

I would really prefer to be on a released version, so if anyone knows
what's up with this, I'd appreciate some help.  Also, why this
flip-flopped between 4.18, the 4/19 snapshot, and later snapshots/5.0
kinda confuses me.  Did something get backed out of the source, since
that's what it looks like?

Mike



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