Help: gdb can't be compile under solaris8

Kun Li likun@asiainfo.com
Thu Jun 13 20:45:00 GMT 2002


Hi, everybody, I'm compile gdb under solaris8 with gcc.
then get the following error, who can tell me what's the matter?

any help will be sincerely appreciated
likun

gcc -c -g -O2    -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   procfs.c
In file included from procfs.c:33:
/usr/include/sys/procfs.h:153: parse error before "taskid_t"
/usr/include/sys/procfs.h:157: parse error before '}' token
/usr/include/sys/procfs.h:269: parse error before "taskid_t"
/usr/include/sys/procfs.h:271: conflicting types for `pr_filler'
/usr/include/sys/procfs.h:155: previous declaration of `pr_filler'
/usr/include/sys/procfs.h:272: conflicting types for `pr_lwp'
/usr/include/sys/procfs.h:156: previous declaration of `pr_lwp'
/usr/include/sys/procfs.h:273: parse error before '}' token
procfs.c:257: parse error before "gdb_prstatus_t"
procfs.c:257: warning: data definition has no type or storage class
procfs.c:335: parse error before "gdb_prstatus_t"
procfs.c:335: warning: no semicolon at end of struct or union
procfs.c:343: parse error before ':' token
procfs.c:344: parse error before ':' token
procfs.c:345: parse error before ':' token
procfs.c:346: parse error before ':' token
procfs.c:347: warning: data definition has no type or storage class
procfs.c:353: parse error before '*' token
procfs.c:353: warning: data definition has no type or storage class
procfs.c:354: parse error before '*' token
procfs.c:354: warning: data definition has no type or storage class
procfs.c:355: parse error before '*' token
procfs.c:355: warning: data definition has no type or storage class
procfs.c:356: parse error before '*' token
procfs.c:357: parse error before '*' token
procfs.c:359: parse error before '*' token
procfs.c:360: parse error before '*' token
procfs.c:363: parse error before '*' token
procfs.c:363: warning: data definition has no type or storage class
procfs.c:373: parse error before '*' token
procfs.c: In function `find_procinfo':
procfs.c:378: `pi' undeclared (first use in this function)
procfs.c:378: (Each undeclared identifier is reported only once
procfs.c:378: for each function it appears in.)
procfs.c: At top level:
procfs.c:408: parse error before '*' token
procfs.c: In function `find_procinfo_or_die':
procfs.c:413: `pi' undeclared (first use in this function)
procfs.c:413: invalid lvalue in assignment
procfs.c: At top level:
procfs.c:443: parse error before "procinfo"
procfs.c:443: `pi' used prior to declaration
procfs.c:443: warning: data definition has no type or storage class
procfs.c:445: parse error before '{' token
procfs.c:506: parse error before '->' token
procfs.c:506: warning: data definition has no type or storage class
procfs.c:513: `tmp' undeclared here (not in a function)
procfs.c:513: initializer element is not constant
procfs.c:513: warning: data definition has no type or storage class
procfs.c:514: parse error before "if"
procfs.c:521: parse error before string constant
procfs.c:521: warning: data definition has no type or storage class
procfs.c:522: redefinition of `fd'
procfs.c:513: `fd' previously defined here
procfs.c:522: `tmp' undeclared here (not in a function)
procfs.c:522: initializer element is not constant
procfs.c:522: warning: data definition has no type or storage class
procfs.c:523: parse error before "if"
procfs.c:532: redefinition of `fd'
procfs.c:522: `fd' previously defined here
procfs.c:532: `tmp' undeclared here (not in a function)
procfs.c:532: initializer element is not constant
procfs.c:532: warning: data definition has no type or storage class
procfs.c:533: parse error before "if"
procfs.c:598: parse error before '*' token
procfs.c: In function `create_procinfo':
procfs.c:603: invalid operands to binary *
procfs.c:603: `parent' undeclared (first use in this function)
procfs.c:614: parse error before ')' token
procfs.c:616: request for member `pid' in something not a structure or union
procfs.c:617: request for member `tid' in something not a structure or union
procfs.c:622: request for member `pathname' in something not a structure or
union
procfs.c:623: request for member `next' in something not a structure or
union
procfs.c:629: request for member `pathname' in something not a structure or
union
procfs.c:633: request for member `next' in something not a structure or
union
procfs.c: At top level:
procfs.c:647: parse error before "procinfo"
procfs.c:647: warning: data definition has no type or storage class
procfs.c:648: parse error before '{' token
procfs.c:668: parse error before "procinfo"
procfs.c:668: warning: data definition has no type or storage class
procfs.c:669: parse error before '*' token
procfs.c:669: warning: data definition has no type or storage class
procfs.c:670: parse error before '{' token
procfs.c:677: warning: data definition has no type or storage class
procfs.c:677: invalid type argument of `->'
procfs.c:677: parse error before ')' token
procfs.c:685: warning: parameter names (without types) in function
declaration
procfs.c:685: conflicting types for `close_procinfo_files'
procfs.c:360: previous declaration of `close_procinfo_files'
procfs.c:685: warning: data definition has no type or storage class
procfs.c:688: warning: parameter names (without types) in function
declaration
procfs.c:688: conflicting types for `free'
/opt/AISIbasedev/gcc32/lib/gcc-lib/sparc-sun-solaris2.7/3.0.1/include/stdlib
.h:167: previous declaration of `free'
procfs.c:688: warning: data definition has no type or storage class
procfs.c:689: parse error before '}' token
procfs.c:693: parse error before "procinfo"
procfs.c:693: warning: data definition has no type or storage class
procfs.c:694: parse error before '{' token
procfs.c:700: parse error before '&' token
procfs.c:700: warning: data definition has no type or storage class
procfs.c:708: parse error before '&' token
procfs.c:708: warning: data definition has no type or storage class
procfs.c:724: parse error before "procinfo"
procfs.c:724: warning: data definition has no type or storage class
procfs.c:727: parse error before '{' token
procfs.c:737: warning: parameter names (without types) in function
declaration
procfs.c:737: conflicting types for `print_sys_errmsg'
defs.h:496: previous declaration of `print_sys_errmsg'
procfs.c:737: warning: data definition has no type or storage class
procfs.c:738: parse error before '}' token
procfs.c:742: warning: parameter names (without types) in function
declaration
procfs.c:742: conflicting types for `destroy_procinfo'
procfs.c:356: previous declaration of `destroy_procinfo'
procfs.c:742: warning: data definition has no type or storage class
procfs.c:743: warning: parameter names (without types) in function
declaration
procfs.c:743: conflicting types for `error'
defs.h:828: previous declaration of `error'
procfs.c:743: warning: data definition has no type or storage class
procfs.c:744: parse error before '}' token
procfs.c:762: parse error before '*' token
procfs.c:763: parse error before '*' token
procfs.c:764: parse error before '*' token
procfs.c:765: parse error before '*' token
procfs.c:766: parse error before '*' token
procfs.c:767: parse error before '*' token
procfs.c:768: parse error before '*' token
procfs.c:769: parse error before '*' token
procfs.c:770: parse error before '*' token
procfs.c:771: parse error before '*' token
procfs.c:772: parse error before '*' token
procfs.c:773: parse error before '*' token
procfs.c:774: parse error before '*' token
procfs.c:775: parse error before '*' token
procfs.c:776: parse error before '*' token
procfs.c:777: parse error before '*' token
procfs.c:778: parse error before '*' token
procfs.c:779: parse error before '*' token
procfs.c:780: parse error before '*' token
procfs.c:781: parse error before '*' token
procfs.c:782: parse error before '*' token
procfs.c:783: parse error before '*' token
procfs.c:784: parse error before '*' token
procfs.c:785: parse error before '*' token
procfs.c:786: parse error before '*' token
procfs.c:787: parse error before '*' token
procfs.c:788: parse error before '*' token
procfs.c:789: parse error before '*' token
procfs.c:790: parse error before '*' token
procfs.c:792: parse error before '*' token
procfs.c:793: parse error before '*' token
procfs.c:793: parse error before '*' token
procfs.c:793: `proc_iterate_over_threads' declared as function returning a
function
procfs.c:799: parse error before '*' token
procfs.c:800: parse error before '*' token
procfs.c:801: parse error before '*' token
procfs.c:802: parse error before '*' token
procfs.c:803: parse error before '*' token
procfs.c:804: parse error before '*' token
procfs.c:805: parse error before '*' token
procfs.c:806: parse error before '*' token
procfs.c:807: parse error before '*' token
procfs.c:810: parse error before '*' token
procfs.c:811: parse error before '*' token
procfs.c:815: parse error before "procinfo"
procfs.c:815: warning: data definition has no type or storage class
procfs.c:818: parse error before '{' token
procfs.c:820: warning: parameter names (without types) in function
declaration
procfs.c:820: warning: data definition has no type or storage class
procfs.c:821: parse error before '}' token
procfs.c:825: parse error before "procinfo"
procfs.c:825: warning: data definition has no type or storage class
procfs.c:828: parse error before '{' token
procfs.c:830: warning: parameter names (without types) in function
declaration
procfs.c:830: conflicting types for `perror_with_name'
defs.h:494: previous declaration of `perror_with_name'
procfs.c:830: warning: data definition has no type or storage class
procfs.c:831: parse error before '}' token
procfs.c:847: parse error before "procinfo"
procfs.c:847: warning: data definition has no type or storage class
procfs.c:848: parse error before '{' token
procfs.c:946: parse error before "procinfo"
procfs.c:946: warning: data definition has no type or storage class
procfs.c:947: parse error before '{' token
procfs.c:974: parse error before "procinfo"
procfs.c:974: warning: data definition has no type or storage class
procfs.c:975: parse error before '{' token
procfs.c:995: parse error before "procinfo"
procfs.c:995: warning: data definition has no type or storage class
procfs.c:996: parse error before '{' token
procfs.c:1017: parse error before "procinfo"
procfs.c:1017: warning: data definition has no type or storage class
procfs.c:1018: parse error before '{' token
procfs.c:1038: parse error before "procinfo"
procfs.c:1038: warning: data definition has no type or storage class
procfs.c:1039: parse error before '{' token
procfs.c:1059: parse error before "procinfo"
procfs.c:1059: warning: data definition has no type or storage class
procfs.c:1060: parse error before '{' token
procfs.c: In function `proc_cursig':
procfs.c:1082: dereferencing pointer to incomplete type
procfs.c:1087: dereferencing pointer to incomplete type
procfs.c: At top level:
procfs.c:1130: parse error before "procinfo"
procfs.c:1130: warning: data definition has no type or storage class
procfs.c:1133: parse error before '{' token
procfs.c:1166: invalid initializer
procfs.c:1166: warning: data definition has no type or storage class
procfs.c:1167: request for member `ctl_fd' in something not a structure or
union
procfs.c:1167: initializer element is not constant
procfs.c:1167: warning: data definition has no type or storage class
procfs.c:1168: parse error before '}' token
procfs.c:1242: parse error before "procinfo"
procfs.c:1242: warning: data definition has no type or storage class
procfs.c:1243: parse error before '{' token
procfs.c:1259: parse error before "procinfo"
procfs.c:1259: warning: data definition has no type or storage class
procfs.c:1260: parse error before '{' token
procfs.c:1277: parse error before "procinfo"
procfs.c:1277: warning: data definition has no type or storage class
procfs.c:1278: parse error before '{' token
procfs.c:1294: parse error before "procinfo"
procfs.c:1294: warning: data definition has no type or storage class
procfs.c:1295: parse error before '{' token
procfs.c:1312: parse error before "procinfo"
procfs.c:1312: warning: data definition has no type or storage class
procfs.c:1313: parse error before '{' token
procfs.c:1329: parse error before "procinfo"
procfs.c:1329: warning: data definition has no type or storage class
procfs.c:1330: parse error before '{' token
procfs.c:1347: parse error before "procinfo"
procfs.c:1347: warning: data definition has no type or storage class
procfs.c:1348: parse error before '{' token
procfs.c:1364: parse error before "procinfo"
procfs.c:1364: warning: data definition has no type or storage class
procfs.c:1365: parse error before '{' token
procfs.c:1379: parse error before "procinfo"
procfs.c:1379: warning: data definition has no type or storage class
procfs.c:1380: parse error before '{' token
procfs.c:1395: redefinition of `win'
procfs.c:1167: `win' previously defined here
procfs.c:1395: request for member `ctl_fd' in something not a structure or
union
procfs.c:1395: `cmd' undeclared here (not in a function)
procfs.c:1395: `cmd' undeclared here (not in a function)
procfs.c:1395: `cmd' undeclared here (not in a function)
procfs.c:1395: initializer element is not constant
procfs.c:1395: warning: data definition has no type or storage class
procfs.c:1408: parse error before '}' token
procfs.c:1422: parse error before "procinfo"
procfs.c:1422: warning: data definition has no type or storage class
procfs.c:1423: parse error before '{' token
procfs.c:1439: redefinition of `win'
procfs.c:1395: `win' previously defined here
procfs.c:1439: request for member `ctl_fd' in something not a structure or
union
procfs.c:1439: `cmd' undeclared here (not in a function)
procfs.c:1439: `cmd' undeclared here (not in a function)
procfs.c:1439: `cmd' undeclared here (not in a function)
procfs.c:1439: initializer element is not constant
procfs.c:1439: warning: data definition has no type or storage class
procfs.c:1441: parse error before '->' token
procfs.c:1487: parse error before "procinfo"
procfs.c:1487: warning: data definition has no type or storage class
procfs.c:1490: parse error before '{' token
procfs.c:1499: parse error before "if"
procfs.c:1505: warning: data definition has no type or storage class
procfs.c:1506: parse error before "if"
procfs.c:1517: invalid initializer
procfs.c:1517: warning: data definition has no type or storage class
procfs.c:1518: confused by earlier errors, bailing out
make[1]: *** [procfs.o] Error 1
make[1]: Leaving directory `/disk6/likun/build/develop/gdb-5.0/gdb'
make: *** [all-gdb] Error 2



More information about the Gdb mailing list