[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Compiling using ldap.h and lber.h the corresponding libraries
I assume you are using 1.x. Please note that this list is not
the appropriate forum to ask use (including programming) questions
regarding OpenLDAP 1.x. This list is for discussing the development
of OpenLDAP itself.
So, include <lber.h> before <ldap.h> and if you have further problems,
take them to the software list.
Kurt
At 04:17 PM 6/28/00 +1000, ricky_frankel@hp.com wrote:
>Hi all,
>
>When I try and compile my program linking to the correct libraries, and
>including the header files.
>
>I get the following error messages.
>-----
>
> make ldapget
> cc -g -Dhpux -D_HPUX_SOURCE -D_REENTRANT -Aa -c ldapget.c
>cc: "/usr/include/ldap.h", line 302: error 1000: Unexpected symbol:
>"BerElement".
>cc: "/usr/include/ldap.h", line 424: error 1000: Unexpected symbol: "Sockbuf".
>cc: "/usr/include/ldap.h", line 470: error 1000: Unexpected symbol:
>"BERTranslateProc".
>cc: "/usr/include/ldap.h", line 471: error 1000: Unexpected symbol:
>"BERTranslateProc".
>cc: "/usr/include/ldap.h", line 635: error 1000: Unexpected symbol:
>"BerElement".
>cc: "/usr/include/ldap.h", line 637: error 1000: Unexpected symbol:
>"BerElement".
>cc: "/usr/include/ldap.h", line 756: error 1000: Unexpected symbol:
>"BERTranslateProc".
>cc: "/usr/include/ldap.h", line 756: error 1000: Unexpected symbol:
>"decode_proc".
>cc: "/usr/include/ldap.h", line 424: error 1573: Type of "ld_sb" is undefined
>due to an illegal declaration.
>cc: "/usr/include/ldap.h", line 424: error 1578: Size of struct or union member
>is unknown.
>cc: "/usr/include/ldap.h", line 470: error 1573: Type of
>"ld_lber_encode_translate_proc" is undefined due to an illegal declaration.
>cc: "/usr/include/ldap.h", line 470: error 1578: Size of struct or union member
>is unknown.
>cc: "/usr/include/ldap.h", line 471: error 1573: Type of
>"ld_lber_decode_translate_proc" is undefined due to an illegal declaration.
>cc: "/usr/include/ldap.h", line 471: error 1578: Size of struct or union member
>is unknown.
>cc: "/usr/include/ldap.h", line 756: error 1506: Parameters allowed in function
>definition only.
>cc: "ldapget.c", line 142: warning 604: Pointers are not assignment-compatible.
>cc: "ldapget.c", line 142: warning 563: Argument #3 is not the correct type.
>*** Error exit code 1
>
>Stop.
>*** Error exit code 1
>
>
>Any ideas would be appreciated.
>
>Thanks
>
>Rick
>_________________________________________________________________
> __
> / /\ Rick Frankel
> / / \ Customer Response Centre
> /_/ /\ \ HEWLETT-PACKARD
> __ \ \ \ \ \ 31-41 Joseph Street
> /_/\ __ \ \ \/ / Blackburn, Melbourne
> \ \ \/ /\ \ \ / Victoria, 3130
> \ \ \/ \ \ \ \
> \ \ /\ \ \ \ \ Phone: 13 11 47 Australia
> \ \ \ \ \ \ \ \ Phone: 0800 664 747 New Zealand
> \ \ \_\/ \_\/ Fax: +61 3 9890 0326
> \ \ \ Email: ricky_frankel@hp.com
> \_\/
>
>Please visit the ITRC web site http:\\www.itrc.hp.com
>for your online service and support needs.
>_________________________________________________________________
>
>