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]

gdb-5.0 on Solaris (SunOS 5.7)



Trying to install gdb-5.0 on Solaris
Solaris 5.7 Generic sun4m sparc
gcc version 2.95.1 19990816 (release)
GNU Make version 3.77

configure output looks normal/ok

make output:
make[1]: Entering directory `/usr/local1/bin/build/gdb-5.0/libiberty'
if [ x"no" = xyes ] && [ ! -d pic ]; then \
  mkdir pic; \
else true; fi
touch stamp-picdir
test x"no" != xyes || \
  gcc -c -DHAVE_CONFIG_H -I/usr/local1/include -I. -I./../include  -W -Wall -Wtraditional  argv.c -o pic/argv.o
gcc -c -DHAVE_CONFIG_H -I/usr/local1/include -I. -I./../include  -W -Wall -Wtraditional argv.c
In file included from argv.c:26:
../include/libiberty.h:22: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:22: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:22: warning: data definition has no type or storage class
../include/libiberty.h:31: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:31: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:31: warning: data definition has no type or storage class
../include/libiberty.h:48: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:48: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:48: warning: data definition has no type or storage class
../include/libiberty.h:65: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:65: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:65: warning: data definition has no type or storage class
../include/libiberty.h:69: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:69: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:69: warning: data definition has no type or storage class
../include/libiberty.h:120: parse error before `ATTRIBUTE_NORETURN'
../include/libiberty.h:120: warning: type defaults to `int' in declaration of `ATTRIBUTE_NORETURN'
../include/libiberty.h:120: warning: data definition has no type or storage class
In file included from argv.c:26:
../include/libiberty.h:136: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:136: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:136: warning: data definition has no type or storage class
../include/libiberty.h:147: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:147: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:147: warning: data definition has no type or storage class
../include/libiberty.h:151: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:151: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:151: warning: data definition has no type or storage class
../include/libiberty.h:155: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:155: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:155: warning: data definition has no type or storage class
../include/libiberty.h:188: parse error before `ATTRIBUTE_PRINTF_2'
../include/libiberty.h:188: warning: type defaults to `int' in declaration of `ATTRIBUTE_PRINTF_2'
../include/libiberty.h:188: warning: data definition has no type or storage class
../include/libiberty.h:194: parse error before `ATTRIBUTE_PRINTF'
../include/libiberty.h:194: warning: type defaults to `int' in declaration of `ATTRIBUTE_PRINTF'
../include/libiberty.h:194: warning: data definition has no type or storage class
make[1]: *** [argv.o] Error 1
make[1]: Leaving directory `/usr/local1/bin/build/gdb-5.0/libiberty'
make: *** [all-libiberty] Error 2


make -k results in repeats of the above each time libiberty.h is accessed.

There is one other error in the make -k output:
make[1]: *** [concat.o] Error 1
test x"no" != xyes || \
  gcc -c -DHAVE_CONFIG_H -I/usr/local1/include -I. -I./../include  -W -Wall -Wtraditional  cplus-dem.c -o pic/cplus-dem.o
gcc -c -DHAVE_CONFIG_H -I/usr/local1/include -I. -I./../include  -W -Wall -Wtraditional cplus-dem.c
In file included from cplus-dem.c:52:
../include/libiberty.h:22: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:22: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:22: warning: data definition has no type or storage class
../include/libiberty.h:31: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:31: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:31: warning: data definition has no type or storage class
../include/libiberty.h:48: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:48: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:48: warning: data definition has no type or storage class
../include/libiberty.h:65: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:65: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:65: warning: data definition has no type or storage class
../include/libiberty.h:69: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:69: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:69: warning: data definition has no type or storage class
../include/libiberty.h:120: parse error before `ATTRIBUTE_NORETURN'
../include/libiberty.h:120: warning: type defaults to `int' in declaration of `ATTRIBUTE_NORETURN'
../include/libiberty.h:120: warning: data definition has no type or storage class
In file included from cplus-dem.c:52:
../include/libiberty.h:136: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:136: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:136: warning: data definition has no type or storage class
../include/libiberty.h:147: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:147: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:147: warning: data definition has no type or storage class
../include/libiberty.h:151: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:151: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:151: warning: data definition has no type or storage class
../include/libiberty.h:155: parse error before `ATTRIBUTE_MALLOC'
../include/libiberty.h:155: warning: type defaults to `int' in declaration of `ATTRIBUTE_MALLOC'
../include/libiberty.h:155: warning: data definition has no type or storage class
../include/libiberty.h:188: parse error before `ATTRIBUTE_PRINTF_2'
../include/libiberty.h:188: warning: type defaults to `int' in declaration of `ATTRIBUTE_PRINTF_2'
../include/libiberty.h:188: warning: data definition has no type or storage class
../include/libiberty.h:194: parse error before `ATTRIBUTE_PRINTF'
../include/libiberty.h:194: warning: type defaults to `int' in declaration of `ATTRIBUTE_PRINTF'
../include/libiberty.h:194: warning: data definition has no type or storage class
cplus-dem.c:60: parse error before `ATTRIBUTE_NORETURN'
cplus-dem.c:60: warning: type defaults to `int' in declaration of `ATTRIBUTE_NORETURN'
cplus-dem.c:60: warning: data definition has no type or storage class
cplus-dem.c: In function `demangle_template_value_parm':
cplus-dem.c:1585: warning: implicit declaration of function `xmalloc'
cplus-dem.c:1585: warning: initialization makes pointer from integer without a cast
cplus-dem.c: In function `demangle_template':
cplus-dem.c:1700: warning: function `xmalloc' was previously declared within a block
cplus-dem.c:1725: warning: function `xmalloc' was previously declared within a block
cplus-dem.c:1725: warning: assignment makes pointer from integer without a cast
cplus-dem.c:1753: warning: function `xmalloc' was previously declared within a block
cplus-dem.c:1753: warning: assignment makes pointer from integer without a cast
cplus-dem.c:1799: warning: function `xmalloc' was previously declared within a block
cplus-dem.c:1799: warning: assignment makes pointer from integer without a cast
cplus-dem.c: In function `recursively_demangle':
cplus-dem.c:2601: warning: function `xmalloc' was previously declared within a block
cplus-dem.c: In function `do_hpacc_template_const_value':
cplus-dem.c:3509: parse error before `ATTRIBUTE_UNUSED'
cplus-dem.c:3509: warning: unused parameter `work'
cplus-dem.c: In function `do_hpacc_template_literal':
cplus-dem.c:3589: warning: function `xmalloc' was previously declared within a block
cplus-dem.c: In function `do_arg':
cplus-dem.c:3697: warning: function `xmalloc' was previously declared within a block
cplus-dem.c: In function `remember_type':
cplus-dem.c:3727: warning: function `xmalloc' was previously declared within a block
cplus-dem.c:3737: warning: function `xmalloc' was previously declared within a block
cplus-dem.c:3737: warning: assignment makes pointer from integer without a cast
cplus-dem.c: In function `remember_Ktype':
cplus-dem.c:3759: warning: function `xmalloc' was previously declared within a block
cplus-dem.c:3769: warning: function `xmalloc' was previously declared within a block
cplus-dem.c:3769: warning: assignment makes pointer from integer without a cast
cplus-dem.c: In function `register_Btype':
cplus-dem.c:3791: warning: function `xmalloc' was previously declared within a block
cplus-dem.c: In function `remember_Btype':
cplus-dem.c:3816: warning: function `xmalloc' was previously declared within a block
cplus-dem.c:3816: warning: assignment makes pointer from integer without a cast
cplus-dem.c: In function `string_need':
cplus-dem.c:4245: warning: function `xmalloc' was previously declared within a block
cplus-dem.c:4245: warning: assignment makes pointer from integer without a cast
make[1]: *** [cplus-dem.o] Error 1

Suggestions?

-Robert Lopez

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