check_ldap compilation
Christoph Kluenter
ck at iphh.net
Fri Aug 1 17:05:15 CEST 2008
Hi
On Friday 01 August 2008 16:24:33 Kermito le kermit wrote:
> hello all,
>
> i want to use check_ldap in plugins of nagios-plugins
>
> i make this
>
> make check_ldap there are this mistake in compilation
>
>
> make check_ldap
>
> if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I.
> -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/local/ssl/include
> -I/usr/local/ssl/include -g -O2 -MT check_ldap.o -MD -MP -MF
> ".deps/check_ldap.Tpo" -c -o check_ldap.o check_ldap.c; \ then mv -f
> ".deps/check_ldap.Tpo" ".deps/check_ldap.Po"; else rm -f
> ".deps/check_ldap.Tpo"; exit 1; fi check_ldap.c:42:18: error: lber.h: Aucun
> fichier ou répertoire de ce type check_ldap.c:43:18: error: ldap.h: Aucun
The files lber.h and ldap.h are missing.
Try "apt-get install libldap2-dev"
Regards,
Christoph
> fichier ou répertoire de ce type check_ldap.c: In function 'main':
> check_ldap.c:86: error: 'LDAP' undeclared (first use in this function)
> check_ldap.c:86: error: (Each undeclared identifier is reported only once
> check_ldap.c:86: error: for each function it appears in.)
> check_ldap.c:86: error: 'ld' undeclared (first use in this function)
> check_ldap.c:87: error: 'LDAPMessage' undeclared (first use in this
> function) check_ldap.c:87: error: 'result' undeclared (first use in this
> function) check_ldap.c:150: error: 'LDAPS_PORT' undeclared (first use in
> this function) check_ldap.c:194: error: 'LDAP_AUTH_SIMPLE' undeclared
> (first use in this function) check_ldap.c:195: error: 'LDAP_SUCCESS'
> undeclared (first use in this function) check_ldap.c:203: error:
> 'LDAP_SCOPE_BASE' undeclared (first use in this function) check_ldap.c: In
> function 'process_arguments':
> check_ldap.c:347: error: 'LDAPS_PORT' undeclared (first use in this
> function) check_ldap.c: In function 'print_help':
> check_ldap.c:420: error: 'LDAPS_PORT' undeclared (first use in this
> function) make: *** [check_ldap.o] Erreur 1
>
>
> my OS debian 4
>
> plugins nagios 1.4.12
>
> last version of nagios
>
>
>
> thanks ffor your help
>
>
>
> ___________________________________________________________________________
>__ Envoyez avec Yahoo! Mail. Une boite mail plus intelligente
> http://mail.yahoo.fr
--
Christoph Kluenter E-Mail: ck at iphh.net
Technik Tel: +49 (0)40 374919-10
IPHH Internet Port Hamburg GmbH Fax: +49 (0)40 374919-29
Grosse Reichenstrasse 27 AG Hamburg, HRB 76071
D-20457 Hamburg Geschaeftsfuehrung: Axel G. Kroeger
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list