[Date Prev][Date Next] [Chronological] [Thread] [Top]

lber_types.h compile error (ITS#2260)



Full_Name: Danzi Lu
Version: lber_types.h 1.10
OS: hpux 11.11
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (12.145.46.162)


Hi,

When I compile a C code using lber_types.h, ldap.h...I got all the necessary
header files in the path, but got following error:

cc: "/ar/api/include/lber_types.h", line 39: error 1000: Unexpected symbol:
"ber_int_t".
cc: "/ar/api/include/lber_types.h", line 42: error 1000: Unexpected symbol:
"ber_sint_t".
cc: "/ar/api/include/lber_types.h", line 42: error 1713: Illegal redeclaration
for identifier "LBER_INT_T".
cc: "/ar/api/include/lber_types.h", line 43: error 1000: Unexpected symbol:
"ber_uint_t".
cc: "/ar/api/include/lber_types.h", line 43: error 1584: Inconsistent type
declaration: "LBER_INT_T".
cc: "/ar/api/include/lber_types.h", line 46: error 1000: Unexpected symbol:
"ber_tag_t".
cc: "/ar/api/include/lber_types.h", line 49: error 1000: Unexpected symbol:
"ber_socket_t".
cc: "/ar/api/include/lber_types.h", line 52: error 1000: Unexpected symbol:
"ber_len_t".
cc: "/ar/api/include/lber_types.h", line 55: error 1000: Unexpected symbol:
"ber_slen_t".
cc: "/ar/api/include/lber_types.h", line 55: error 1584: Inconsistent type
declaration: "LBER_LEN_T".
cc: "/ar/api/include/lber.h", line 112: error 1000: Unexpected symbol: "size".
cc: "/ar/api/include/lber.h", line 112: error 1506: Parameters allowed in
function definition only.
cc: "/ar/api/include/lber.h", line 113: error 1000: Unexpected symbol: "n".
cc: "/ar/api/include/lber.h", line 113: error 1573: Type of "size" is undefined
due to an illegal declaration.
cc: "/ar/api/include/lber.h", line 114: error 1000: Unexpected symbol:
"ber_len_t".
cc: "/ar/api/include/lber.h", line 114: error 1573: Type of "size" is undefined
due to an illegal declaration.
cc: "/ar/api/include/lber.h", line 121: error 1000: Unexpected symbol:
"BER_MEMFREE_FN".
cc: "/ar/api/include/lber.h", line 121: error 1573: Type of "bmf_free" is
undefined due to an illegal declaration.
cc: "/ar/api/include/lber.h", line 121: error 1578: Size of struct or union
member is unknown.
cc: "/ar/api/include/lber.h", line 179: error 1000: Unexpected symbol:
"ber_slen_t".
cc: "/ar/api/include/lber.h", line 180: error 1000: Unexpected symbol:
"ber_len_t".
cc: "/ar/api/include/lber.h", line 181: error 1000: Unexpected symbol:
"ber_slen_t".
cc: "/ar/api/include/lber.h", line 182: error 1000: Unexpected symbol:
"ber_len_t".
cc: "/ar/api/include/lber.h", line 180: error 1573: Type of "len" is undefined
due to an illegal declaration.
cc: "/ar/api/include/lber.h", line 179: error 1573: Type of "sbi_read" is
undefined due to an illegal declaration.
cc: "/ar/api/include/lber.h", line 179: error 1578: Size of struct or union
member is unknown.
cc: "/ar/api/include/lber.h", line 182: error 1573: Type of "len" is undefined
due to an illegal declaration.
cc: "/ar/api/include/lber.h", line 181: error 1573: Type of "sbi_write" is
undefined due to an illegal declaration.
cc: "/ar/api/include/lber.h", line 181: error 1578: Size of struct or union
member is unknown.
cc: "/ar/api/include/lber.h", line 201: error 1000: Unexpected symbol:
"ber_len_t".
cc: "/ar/api/include/lber.h", line 201: error 1573: Type of "bv_len" is
undefined due to an illegal declaration.
cc: "/ar/api/include/lber.h", line 201: error 1578: Size of struct or union
member is unknown.
cc: "/ar/api/include/lber.h", line 217: error 1000: Unexpected symbol:
"ber_len_t".
cc: "/ar/api/include/lber.h", line 217: error 1573: Type of "len" is undefined
due to an illegal declaration.
cc: "/ar/api/include/lber.h", line 237: error 1000: Unexpected symbol:
"ber_get_tag".
cc: error 2017: Cannot recover from earlier errors, terminating.

I have no clue what those mean, pls help.
Thanks
Danzi