Sorry to reply my own post. Just figured out what was worng.

in /usr/local/include/ldap.h do not exists the declaration of
LDAPS_PORT, as in check_ldap.c just modifying it to LDAP_PORT did the
trick.

See ya!


On Tue, 2006-04-18 at 20:29 -0300, Marcel Mitsuto Fucatu Sugano wrote:
> Hello list.
> 
> I've just fetched the nagios-plugins-1.4.2 package. Installed
> openldap-1.2.11 from sunfreeware (solaris 8 - sparc) and i am trying to
> compile check_ldap here. I also have installed openssl-0.9.8, mysql,
> etc. I want to compile all the plugins and create a set to put into
> production. But when it's the check_ldap's turn, i keep getting these
> errors: 
> 
> ---[~~~]---
> if gcc -DLOCALEDIR=\"/export/nagios-2.2/share/locale\" -DHAVE_CONFIG_H -I. 
> -I. -I.. -I.. -I../lib -I../intl -I/usr/include/ldap    -I/usr/local/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: In function `main':
> check_ldap.c:128: error: `LDAPS_PORT' undeclared (first use in this function)
> check_ldap.c:128: error: (Each undeclared identifier is reported only once
> check_ldap.c:128: error: for each function it appears in.)
> make[2]: *** [check_ldap.o] Error 1
> make[2]: Leaving directory `/home/msugano/src/nagios-plugins-1.4.2/plugins'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/msugano/src/nagios-plugins-1.4.2'
> make: *** [all] Error 2
> ---[~~~]---
> 
> Does anyone have a clue of what is going on here?
> 
> Already tried to find Libraries missing with find-sym
> (http://dcs.nac.uci.edu/~strombrg/find-sym.html) and will keep to try
> compiling this, but I've thought that would be handy to ask here if
> anyone already has gone through this problem before. Searching gmane did
> not raised anything helpful, so, here i am.
> 
> Thanks in advance
> 
> 
> AVISO: A informação contida neste e-mail, bem como em qualquer de seus 
> anexos, é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) 
> acima referido(s), podendo conter informações sigilosas e/ou legalmente 
> protegidas. Caso você não seja o destinatário desta mensagem, informamos que 
> qualquer divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de 
> seus anexos é absolutamente proibida. Solicitamos que o remetente seja 
> comunicado imediatamente, respondendo esta mensagem, e que o original desta 
> mensagem e de seus anexos, bem como toda e qualquer cópia e/ou impressão 
> realizada a partir destes, sejam permanentemente apagados e/ou destruídos. 
> Informações adicionais sobre nossa empresa podem ser obtidas no site 
> http://sobre.uol.com.br/.
> 
> NOTICE: The information contained in this e-mail and any attachments thereto 
> is CONFIDENTIAL and is intended only for use by the recipient named herein 
> and may contain legally privileged and/or secret information. If you are not 
> the e-mail´s intended recipient, you are hereby notified that any 
> dissemination, distribution or copy of this e-mail, and/or any attachments 
> thereto, is strictly prohibited. Please immediately notify the sender 
> replying to the above mentioned e-mail address, and permanently delete and/or 
> destroy the original and any copy of this e-mail and/or its attachments, as 
> well as any printout thereof. Additional information about our company may be 
> obtained through the site http://www.uol.com.br/ir/.
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
> _______________________________________________
> Nagios-users mailing list
> [email protected]
> 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


AVISO: A informação contida neste e-mail, bem como em qualquer de seus anexos, 
é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) acima 
referido(s), podendo conter informações sigilosas e/ou legalmente protegidas. 
Caso você não seja o destinatário desta mensagem, informamos que qualquer 
divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de seus anexos 
é absolutamente proibida. Solicitamos que o remetente seja comunicado 
imediatamente, respondendo esta mensagem, e que o original desta mensagem e de 
seus anexos, bem como toda e qualquer cópia e/ou impressão realizada a partir 
destes, sejam permanentemente apagados e/ou destruídos. Informações adicionais 
sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/.

NOTICE: The information contained in this e-mail and any attachments thereto is 
CONFIDENTIAL and is intended only for use by the recipient named herein and may 
contain legally privileged and/or secret information. If you are not the 
e-mail´s intended recipient, you are hereby notified that any dissemination, 
distribution or copy of this e-mail, and/or any attachments thereto, is 
strictly prohibited. Please immediately notify the sender replying to the above 
mentioned e-mail address, and permanently delete and/or destroy the original 
and any copy of this e-mail and/or its attachments, as well as any printout 
thereof. Additional information about our company may be obtained through the 
site http://www.uol.com.br/ir/.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to