solaris 7(x86) and db-1.85

solaris 7(x86) and db-1.85

Post by dave » Mon, 06 Oct 2003 05:40:04



hi:

anywher i can download db-1.85 binary? i can't find it on sunfreeware; tried to
compile it and failed (using gcc-3.3.1):

gcc -c -D__DBINTERFACE_PRIVATE -O -I. -Iinclude -I../../hash ../../hash/hash.c
In file included from ../../hash/hash.c:54:
db.h:40:23: sys/cdefs.h: No such file or directory
In file included from ../../hash/hash.c:54:
db.h:54: error: conflicting types for `int8_t'
/usr/include/sys/int_types.h:62: error: previous declaration of `int8_t'
db.h:56: warning: redefinition of `int16_t'
/usr/include/sys/int_types.h:68: warning: `int16_t' previously declared here
db.h:58: warning: redefinition of `int32_t'
/usr/include/sys/int_types.h:69: warning: `int32_t' previously declared here
db.h:120: warning: no semicolon at end of struct or union
db.h:120: error: parse error before "__P"
db.h:121: error: parse error before "__P"
db.h:122: error: parse error before "__P"
db.h:123: error: parse error before "__P"
db.h:124: error: parse error before "__P"
db.h:125: error: parse error before "__P"
db.h:127: error: parse error before "__P"
db.h:128: warning: data definition has no type or storage class
db.h:142: warning: no semicolon at end of struct or union
db.h:142: error: parse error before "__P"
db.h:144: error: parse error before "__P"
db.h:146: error: parse error before '}' token
db.h:146: warning: data definition has no type or storage class
db.h:158: warning: no semicolon at end of struct or union
db.h:158: error: parse error before "__P"
db.h:160: error: parse error before '}' token
db.h:160: warning: data definition has no type or storage class
db.h:227: error: parse error before "DB"
db.h:233: error: parse error before "__P"
In file included from ../../hash/hash.c:55:
../../hash/hash.h:40: error: syntax error before "typedef"
../../hash/hash.h:98: warning: no semicolon at end of struct or union
../../hash/hash.h:98: error: parse error before "__P"
../../hash/hash.h:119: error: parse error before '}' token
../../hash/hash.h:119: warning: data definition has no type or storage class
In file included from ../../hash/hash.c:57:
../../hash/extern.h:36: error: parse error before "__P"
../../hash/extern.h:37: error: parse error before "__P"
../../hash/extern.h:38: error: parse error before "__P"
../../hash/extern.h:39: error: parse error before "__P"
../../hash/extern.h:40: error: parse error before "__P"
../../hash/extern.h:41: error: parse error before "__P"
../../hash/extern.h:42: error: parse error before "__P"
../../hash/extern.h:44: error: parse error before "__P"
../../hash/extern.h:45: error: parse error before "__P"
../../hash/extern.h:46: error: parse error before "__P"
../../hash/extern.h:47: error: parse error before "__P"
../../hash/extern.h:48: error: parse error before "__P"
../../hash/extern.h:49: error: parse error before "__P"
../../hash/extern.h:50: error: parse error before "__P"
../../hash/extern.h:51: error: parse error before "__P"
../../hash/extern.h:52: error: parse error before "__P"
../../hash/extern.h:53: error: parse error before "__P"
../../hash/extern.h:54: error: parse error before "__P"
../../hash/extern.h:55: error: parse error before "__P"
../../hash/extern.h:56: error: parse error before "__P"
../../hash/extern.h:57: error: parse error before "__P"
../../hash/extern.h:58: error: parse error before "__P"
../../hash/extern.h:61: error: parse error before "__P"
../../hash/hash.c:59: error: parse error before "__P"
../../hash/hash.c:60: error: parse error before "__P"
../../hash/hash.c:61: error: parse error before "__P"
../../hash/hash.c:62: error: parse error before "__P"
../../hash/hash.c:63: error: parse error before "__P"
../../hash/hash.c:64: error: parse error before "__P"
../../hash/hash.c:65: error: parse error before "__P"
../../hash/hash.c:66: error: parse error before "__P"
../../hash/hash.c:67: error: parse error before "__P"
../../hash/hash.c:68: error: parse error before "__P"
../../hash/hash.c:69: error: parse error before "__P"
../../hash/hash.c:70: error: parse error before "__P"
../../hash/hash.c:71: error: parse error before '*' token
../../hash/hash.c:72: error: parse error before "__P"
../../hash/hash.c:95: error: parse error before '*' token
../../hash/hash.c: In function `__hash_open':
../../hash/hash.c:99: error: parse error before '*' token
../../hash/hash.c:99: error: declaration for parameter `HASHINFO' but no such
parameter
../../hash/hash.c:101: error: `hashp' undeclared (first use in this function)
../../hash/hash.c:101: error: (Each undeclared identifier is reported only once
../../hash/hash.c:101: error: for each function it appears in.)
../../hash/hash.c:103: error: `dbp' undeclared (first use in this function)
../../hash/hash.c:111: error: parse error before ')' token
../../hash/hash.c:136: error: parse error before ')' token
../../hash/hash.c:137: error: label `error1' used but not defined
../../hash/hash.c:132: error: label `error0' used but not defined
../../hash/hash.c: At top level:
../../hash/hash.c:138: error: parse error before "else"
../../hash/hash.c:145: error: `hashp' undeclared here (not in a function)
../../hash/hash.c:145: error: `hashp' undeclared here (not in a function)
../../hash/hash.c:145: error: initializer element is not constant
../../hash/hash.c:145: warning: data definition has no type or storage class
../../hash/hash.c:149: error: parse error before "if"
../../hash/hash.c:167: error: `hashp' undeclared here (not in a function)
../../hash/hash.c:167: error: `hashp' undeclared here (not in a function)
../../hash/hash.c:168: error: `hashp' undeclared here (not in a function)
../../hash/hash.c:168: warning: data definition has no type or storage class
../../hash/hash.c:169: error: parse error before '->' token
../../hash/hash.c:177: error: `hashp' undeclared here (not in a function)
../../hash/hash.c:177: error: `hashp' undeclared here (not in a function)
../../hash/hash.c:178: error: `hashp' undeclared here (not in a function)
../../hash/hash.c:179: error: `hashp' undeclared here (not in a function)
../../hash/hash.c:179: warning: data definition has no type or storage class
../../hash/hash.c:181: error: parse error before '->' token
../../hash/hash.c:196: warning: parameter names (without types) in function
declaration
../../hash/hash.c:196: warning: data definition has no type or storage class
../../hash/hash.c:197: error: `save_errno' undeclared here (not in a function)
../../hash/hash.c:197: warning: data definition has no type or storage class
../../hash/hash.c:198: error: parse error before "return"
../../hash/hash.c:240: error: redefinition of `errno'
../../hash/hash.c:197: error: `errno' previously defined here
../../hash/hash.c:240: error: `save_errno' undeclared here (not in a function)
../../hash/hash.c:240: warning: data definition has no type or storage class
../../hash/hash.c:241: error: parse error before "return"
../../hash/hash.c:246: error: parse error before "DB"
../../hash/hash.c:246: error: `dbp' used prior to declaration
../../hash/hash.c:246: warning: data definition has no type or storage class
../../hash/hash.c:247: error: parse error before '{' token
../../hash/hash.c:251: error: parse error before "if"
../../hash/hash.c:254: error: `hashp' used prior to declaration
../../hash/hash.c:254: error: parse error before ')' token
../../hash/hash.c:255: error: initializer element is not constant
../../hash/hash.c:255: warning: data definition has no type or storage class
../../hash/hash.c:256: warning: parameter names (without types) in function
declaration
../../hash/hash.c:256: error: conflicting types for `free'
/usr/local/lib/gcc-lib/i386-pc-solaris2.7/3.3.1/include/stdlib.h:167: error:
previous declaration of `free'
../../hash/hash.c:256: warning: data definition has no type or storage class
../../hash/hash.c:257: error: parse error before "return"
../../hash/hash.c: In function `hash_fd':
../../hash/hash.c:262: error: parse error before '*' token
../../hash/hash.c:262: error: declaration for parameter `DB' but no such
parameter
../../hash/hash.c:269: error: parse error before ')' token
../../hash/hash.c:270: error: invalid type argument of `->'
../../hash/hash.c:274: error: invalid type argument of `->'
../../hash/hash.c: At top level:
../../hash/hash.c:278: error: parse error before '*' token
../../hash/hash.c:280: error: parse error before "HTAB"
../../hash/hash.c:280: error: conflicting types for `hashp'
../../hash/hash.c:254: error: previous declaration of `hashp'
../../hash/hash.c:280: warning: data definition has no type or storage class
../../hash/hash.c:282: error: parse error before '*' token
../../hash/hash.c:282: warning: data definition has no type or storage class
../../hash/hash.c:283: error: parse error before '{' token
../../hash/hash.c:287: warning: data definition has no type or storage class
../../hash/hash.c:288: error: parse error before '->' token
../../hash/hash.c:297: error: parse error before '->' token
../../hash/hash.c:298: error: parse error before '->' token
../../hash/hash.c:347: error: parse error before "HTAB"
../../hash/hash.c:347: warning: data definition has no type or storage class
../../hash/hash.c:349: error: parse error before '{' token
../../hash/hash.c:358: error: redefinition of `nelem'
../../hash/hash.c:287: error: `nelem' previously defined here
../../hash/hash.c:358: error: request for member `hdr' in something not a
structure or union
../../hash/hash.c:358: warning: data definition has no type or storage class
../../hash/hash.c:360: error: initializer element is not constant
../../hash/hash.c:360: warning: data definition has no type or storage class
../../hash/hash.c:361: error: initializer element is not constant
../../hash/hash.c:361: warning: data definition has no type or storage class
../../hash/hash.c:363: error: parse error before '->' token
../../hash/hash.c:377: error: redefinition of `nsegs'
../../hash/hash.c:167: error: `nsegs' previously defined here
../../hash/hash.c:377: error: request for member `hdr' in something not a
structure or union
../../hash/hash.c:377: warning: data definition has no type or storage class
../../hash/hash.c:378: error: redefinition of `nsegs'
../../hash/hash.c:377: error: `nsegs' previously defined here
../../hash/hash.c:378: error: initializer element is not constant
../../hash/hash.c:378: warning: data definition has no type or storage class
../../hash/hash.c:380: error: parse error before "if"
../../hash/hash.c:393: error: parse error before "HTAB"
../../hash/hash.c:393: warning: data definition has no type or storage class
../../hash/hash.c:394: error: parse error before '{' token
../../hash/hash.c:397: warning: data definition has no type or storage class
../../hash/hash.c:417: error: parse error before "if"
../../hash/hash.c:424: error: parse error before '->' token
../../hash/hash.c:424: warning: data definition has no type or storage class
../../hash/hash.c:436: warning: parameter names (without types) in function
declaration
../../hash/hash.c:436: warning: data definition has no type or storage class
../../hash/hash.c:438: error: parse error before "if"
../../hash/hash.c: In function `hash_sync':
../../hash/hash.c:453: error: parse error before '*' token
../../hash/hash.c:453: error: declaration for parameter `DB' but no such
parameter
../../hash/hash.c:456: error: invalid operands to binary *
../../hash/hash.c:466: error: parse error before ')' token
../../hash/hash.c:467: error: request for member `save_file' in something not a
structure or union
../../hash/hash.c:471: error: request for member `new_file' in something not a
structure or union
../../hash/hash.c: At top level:
../../hash/hash.c:482: error: parse error before "HTAB"
../../hash/hash.c:482: warning: data definition has no type or storage class
../../hash/hash.c:483: error: parse error before '{' token
../../hash/hash.c:490: error: parse error before "if"
../../hash/hash.c:496: error: request for member `fp' in something not a
structure or union
../../hash/hash.c:496: warning: data definition has no type or storage class
../../hash/hash.c:497: error: request for member `hdr' in something not a
structure or union
../../hash/hash.c:497: warning: data definition has no type or storage class
../../hash/hash.c:502: error: parse error before "if"
../../hash/hash.c: In function `hash_get':
../../hash/hash.c:530: error: parse error before '*' token
../../hash/hash.c:530: error: declaration for parameter `DB' but no such
parameter
../../hash/hash.c:535: error: invalid operands to binary *
../../hash/hash.c:537: error: parse error before ')' token
../../hash/hash.c:539: error: request for member `errno' in something not a
structure or union
../../hash/hash.c: In function `hash_put':
../../hash/hash.c:547: error: parse error before '*' token
../../hash/hash.c:547: error: declaration for parameter `DB' but no such
parameter
../../hash/hash.c:552: error: invalid operands to binary *
../../hash/hash.c:554: error: parse error before ')' token
../../hash/hash.c:556: error: request for member `errno' in something not a
structure or union
../../hash/hash.c:559: error: request for member `flags' in something not a
structure or union
../../hash/hash.c:560: error: request for member `errno' in something not a
structure or union
../../hash/hash.c: In function `hash_delete':
../../hash/hash.c:569: error: parse error before '*' token
../../hash/hash.c:569: error: declaration for parameter `DB' but no such
parameter
../../hash/hash.c:573: error: invalid operands to binary *
../../hash/hash.c:575: error: parse error before ')' token
../../hash/hash.c:577: error: request for member `errno' in something not a
structure or union
../../hash/hash.c:580: error: request for member `flags' in something not a
structure or union
../../hash/hash.c:581: error: request for member `errno' in something not a
structure or union
../../hash/hash.c: At top level:
../../hash/hash.c:592: error: parse error before "HTAB"
../../hash/hash.c:592: warning: data definition has no type or storage class
../../hash/hash.c:595: error: parse error before '{' token
../../hash/hash.c:607: error: conflicting declarations of `off'
../../hash/hash.c:599: error: `off' previously declared here
../../hash/hash.c:607: error: request for member `hdr' in something not a
structure or union
../../hash/hash.c:607: warning: data definition has no type or storage class
../../hash/hash.c:608: error: conflicting declarations of `size'
../../hash/hash.c:599: error: `size' previously declared here
../../hash/hash.c:608: error: initializer element is not constant
../../hash/hash.c:608: warning: data definition has no type or storage class
../../hash/hash.c:609: error: conflicting types for `kp'
../../hash/hash.c:600: error: previous declaration of `kp'
../../hash/hash.c:609: warning: data definition has no type or storage class
../../hash/hash.c:610: error: initializer element is not constant
../../hash/hash.c:610: warning: data definition has no type or storage class
../../hash/hash.c:611: error: parse error before "if"
../../hash/hash.c:613: error: conflicting types for `save_bufp'
../../hash/hash.c:597: error: previous declaration of `save_bufp'
../../hash/hash.c:613: warning: data definition has no type or storage class
../../hash/hash.c:616: error: parse error before '->' token
../../hash/hash.c:623: error: redefinition of `off'
../../hash/hash.c:607: error: `off' previously defined here
../../hash/hash.c:623: error: initializer element is not constant
../../hash/hash.c:623: warning: data definition has no type or storage class
../../hash/hash.c:627: error: parse error before '+=' token
../../hash/hash.c:636: error: conflicting types for `bp'
../../hash/hash.c:598: error: previous declaration of `bp'
../../hash/hash.c:636: error: invalid type argument of `->'
../../hash/hash.c:636: warning: data definition has no type or storage class
../../hash/hash.c:637: error: conflicting declarations of `n'
../../hash/hash.c:599: error: `n' previously declared here
../../hash/hash.c:637: error: invalid type argument of `unary *'
../../hash/hash.c:637: warning: data definition has no type or storage class
../../hash/hash.c:638: error: conflicting declarations of `ndx'
../../hash/hash.c:599: error: `ndx' previously declared here
../../hash/hash.c:638: warning: data definition has no type or storage class
../../hash/hash.c:639: error: redefinition of `off'
../../hash/hash.c:623: error: `off' previously defined here
../../hash/hash.c:639: error: request for member `hdr' in something not a
structure or union
../../hash/hash.c:639: warning: data definition has no type or storage class
../../hash/hash.c:640: error: parse error before '}' token
../../hash/hash.c:649: error: redefinition of `rbufp'
../../hash/hash.c:610: error: `rbufp' previously defined here
../../hash/hash.c:649: warning: initialization makes integer from pointer
without a cast
../../hash/hash.c:649: error: initializer element is not constant
../../hash/hash.c:649: warning: data definition has no type or storage class
../../hash/hash.c:650: error: parse error before "break"
../../hash/hash.c:652: error: redefinition of `rbufp'
../../hash/hash.c:649: error: `rbufp' previously defined here
../../hash/hash.c:652: error: initializer element is not constant
../../hash/hash.c:652: warning: data definition has no type or storage class
../../hash/hash.c:653: error: parse error before "if"
../../hash/hash.c:658: error: invalid type argument of `->'
../../hash/hash.c:658: warning: data definition has no type or storage class
../../hash/hash.c:659: error: redefinition of `n'
../../hash/hash.c:637: error: `n' previously defined here
../../hash/hash.c:659: error: invalid type argument of `unary *'
../../hash/hash.c:659: warning: data definition has no type or storage class
../../hash/hash.c:660: error: redefinition of `ndx'
../../hash/hash.c:638: error: `ndx' previously defined here
../../hash/hash.c:660: warning: data definition has no type or storage class
../../hash/hash.c:661: error: redefinition of `off'
../../hash/hash.c:639: error: `off' previously defined here
../../hash/hash.c:661: error: request for member `hdr' in something not a
structure or union
../../hash/hash.c:661: warning: data definition has no type or storage class
../../hash/hash.c:662: error: parse error before '}' token
../../hash/hash.c: In function `hash_seq':
../../hash/hash.c:721: error: parse error before '*' token
../../hash/hash.c:721: error: declaration for parameter `DB' but no such
parameter
../../hash/hash.c:727: error: invalid operands to binary *
../../hash/hash.c:730: error: parse error before ')' token
../../hash/hash.c:732: error: request for member `errno' in something not a
structure or union
../../hash/hash.c:738: error: request for member `cbucket' in something not a
structure or union
../../hash/hash.c:739: error: request for member `cbucket' in something not a
structure or union
../../hash/hash.c:740: error: request for member `cndx' in something not a
structure or union
../../hash/hash.c:741: error: request for member `cpage' in something not a
structure or union
../../hash/hash.c:745: error: request for member `cpage' in something not a
structure or union
../../hash/hash.c:746: error: request for member `cbucket' in something not a
structure or union
../../hash/hash.c:747: error: request for member `hdr' in something not a
structure or union
../../hash/hash.c:748: error: request for member `cndx' in something not a
structure or union
../../hash/hash.c:749: warning: assignment makes pointer from integer without a
cast
../../hash/hash.c:752: error: request for member `cpage' in something not a
structure or union
../../hash/hash.c:757: error: request for member `cbucket' in something not a
structure or union
../../hash/hash.c:758: error: request for member `cbucket' in something not a
structure or union
../../hash/hash.c:758: error: request for member `hdr' in something not a
structure or union
../../hash/hash.c:759: error: request for member `cbucket' in something not a
structure or union
../../hash/hash.c:763: error: request for member `cpage' in something not a
structure or union
../../hash/hash.c:769: error: request for member `cndx' in something not a
structure or union
../../hash/hash.c:770: error: request for member `cpage' in something not a
structure or union
../../hash/hash.c:771: error: request for member `cndx' in something not a
structure or union
../../hash/hash.c:775: error: request for member `cndx' in something not a
structure or union
../../hash/hash.c:778: error: request for member `cpage' in something not a
structure or union
../../hash/hash.c:779: error: request for member `cbucket' in something not a
structure or union
../../hash/hash.c:782: error: request for member `cndx' in something not a
structure or union
../../hash/hash.c:787: error: request for member `cpage' in something not a
structure or union
../../hash/hash.c:788: error: request for member `hdr' in something not a
structure or union
../../hash/hash.c:789: error: request for member `cpage' in something not a
structure or union
../../hash/hash.c:793: error: request for member `cpage' in something not a
structure or union
../../hash/hash.c:794: error: request for member `cbucket' in something not a
structure or union
../../hash/hash.c:795: error: request for member `cndx' in something not a
structure or union
../../hash/hash.c:797: error: request for member `cndx' in something not a
structure or union
../../hash/hash.c: At top level:
../../hash/hash.c:811: error: parse error before "HTAB"
../../hash/hash.c:811: warning: data definition has no type or storage class
../../hash/hash.c:812: error: parse error before '{' token
../../hash/hash.c:819: error: request for member `hdr' in something not a
structure or union
../../hash/hash.c:819: warning: data definition has no type or storage class
../../hash/hash.c:820: error: request for member `hdr' in something not a
structure or union
../../hash/hash.c:820: error: request for member `hdr' in something not a
structure or union
../../hash/hash.c:820: warning: data definition has no type or storage class
../../hash/hash.c:822: error: request for member `hdr' in something not a
structure or union
../../hash/hash.c:822: warning: data definition has no type or storage class
../../hash/hash.c:825: error: parse error before "if"
../../hash/hash.c:845: error: request for member `hdr' in something not a
structure or union
../../hash/hash.c:845: error: initializer element is not constant
../../hash/hash.c:845: warning: data definition has no type or storage class
../../hash/hash.c:846: error: parse error before "if"
../../hash/hash.c:882: error: parse error before "HTAB"
../../hash/hash.c:882: warning: data definition has no type or storage class
../../hash/hash.c:885: error: parse error before '{' token
../../hash/hash.c:888: error: redefinition of `n'
../../hash/hash.c:659: error: `n' previously defined here
../../hash/hash.c:888: error: request for member `hash' in something not a
structure or union
../../hash/hash.c:888: warning: data definition has no type or storage class
../../hash/hash.c:889: error: request for member `hdr' in something not a
structure or union
../../hash/hash.c:889: warning: data definition has no type or storage class
../../hash/hash.c:890: error: parse error before "if"
../../hash/hash.c:902: error: parse error before "HTAB"
../../hash/hash.c:902: warning: data definition has no type or storage class
../../hash/hash.c:904: error: parse error before '{' token
../../hash/hash.c:910: error: parse error before "if"
../../hash/hash.c:914: error: redefinition of `errno'
../../hash/hash.c:240: error: `errno' previously defined here
../../hash/hash.c:914: error: initializer element is not constant
../../hash/hash.c:914: warning: data definition has no type or storage class
../../hash/hash.c:915: error: parse error before "return"
../../hash/hash.c:922: error: redefinition of `errno'
../../hash/hash.c:914: error: `errno' previously defined here
../../hash/hash.c:922: error: initializer element is not constant
../../hash/hash.c:922: warning: data definition has no type or storage class
../../hash/hash.c:923: error: parse error before "return"
../../hash/hash.c:599: error: register name not specified for `n'
../../hash/hash.c:599: error: register name not specified for `ndx'
../../hash/hash.c:599: error: register name not specified for `off'
../../hash/hash.c:599: error: register name not specified for `size'
../../hash/hash.c:906: error: register name not specified for `store'
make: *** [hash.o] Error 1

any ideas?

thanks

dave