(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) OpenLDAP Software FAQ : (Category) Installation : (Answer) Deprecated C API issues
Since OpenLDAP 2.3, part of the C API has been deprecated. This means that the deprecated C functions are present in the libraries, and thus compatibility with legacy clients is ensured, but their declarations have been removed from the headers. This typically causes lots of warning when compiling applications that make extensive use of deprecated functions, but it may also lead to subtle issues when the compiler makes wrong guesses at the argument and return value types of no longer declared functions. An example is reported here.

To circumvent these issues, one can compile legacy applications with CPPFLAGS=-DLDAP_DEPRECATED to have the deprecated declarations back in the header files.

It is recommended that legacy applications be upgraded to make use of replacements to deprecated functions.

[Append to This Answer]
Previous: (Answer) Notes on compiling back-perl
Next: (Answer) How to Install on AIX 5.2 / Berkeley 4.6
This document is: http://www.openldap.org/faq/index.cgi?file=1278
[Search] [Appearance]
This is a Faq-O-Matic 2.721.test.
© Copyright 1998-2013, OpenLDAP Foundation, info@OpenLDAP.org