[Nagiosplug-devel] [ nagiosplug-Bugs-1498923 ] nagios-plugins-1.4.3 check_ldap build error on Solaris 9

SourceForge.net noreply at sourceforge.net
Sun Jan 6 01:12:01 CET 2008


Bugs item #1498923, was opened at 2006-06-01 17:15
Message generated for change (Comment added) made by psychotrahe
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1498923&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Compilation
Group: Release (specify)
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Sergei Haramundanis (volsh)
Assigned to: Matthias Eble (psychotrahe)
Summary: nagios-plugins-1.4.3 check_ldap build error on Solaris 9

Initial Comment:
I get this build error during compilation of check_ldap
on Solaris 9:
==============================
if gcc -DLOCALEDIR=\"/usr/local/nagios2/share/locale\"
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl
-I/usr/include/ldap  -I/usr/local/ssl/include  
-I/usr/local/ssl/include -Wall -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:145: warning: too many arguments for format
check_ldap.c:161: warning: implicit declaration of
function `ldap_start_tls_s'
check_ldap.c:84: warning: unused variable `tls'
/bin/bash ../libtool --mode=link --tag=CC gcc -Wall -g
-O2   -L. -R/usr/local/ssl/lib -o check_ldap 
check_ldap.o netutils.o utils.o ../lib/libnagiosplug.a
../lib/libcoreutils.a  -lnsl -lsocket -lresolv -lldap
-llber ../intl/libintl.a -liconv -lgen -lsocket  -lssl
-lcrypto
gcc -Wall -g -O2 -o .libs/check_ldap check_ldap.o
netutils.o utils.o 
-L/usr/local/nagios2/nagios-plugins-1.4.3/plugins
../lib/libnagiosplug.a ../lib/libcoreutils.a -lnsl
-lresolv -lldap /opt/sfw/lib/.libs/liblber.so
../intl/libintl.a /usr/local/lib/libiconv.so
-L/usr/local/lib -L/usr/lib -L/usr/openwin/lib
-L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib
-lgen -lsocket -lssl -lcrypto -R/opt/sfw/lib
-R/usr/local/lib -R/usr/local/ssl/lib
gcc: /opt/sfw/lib/.libs/liblber.so: No such file or
directory
*** Error code 1
make: Fatal error: Command failed for target `check_ldap'
Current working directory
/usr/local/nagios2/nagios-plugins-1.4.3/plugins
*** Error code 1
make: Fatal error: Command failed for target
`all-recursive'
Current working directory
/usr/local/nagios2/nagios-plugins-1.4.3/plugins
*** Error code 1
make: Fatal error: Command failed for target
`all-recursive'
Current working directory
/usr/local/nagios2/nagios-plugins-1.4.3
*** Error code 1
make: Fatal error: Command failed for target `all'
==============================
It looks like the liblber.so specification is off as it
currently exists in /opt/sfw/lib on the host I am
building this on. For some reason ".libs/" is getting
in the path for this library. I looked for a possible
mishap in the makefiles but could not find any.

Please make this a priority as I need to upgrade to
nagios-plugins-1.4.3 from netsaint-plugins-1.2.9-4
a.s.a.p. Thanks.

----------------------------------------------------------------------

Comment By: Matthias Eble (psychotrahe)
Date: 2008-01-06 01:12

Message:
Logged In: YES 
user_id=1694341
Originator: NO

this problem is now fixed in cvs.  thank you for your report.

----------------------------------------------------------------------

Comment By: Sergei Haramundanis (volsh)
Date: 2007-06-21 21:33

Message:
Logged In: YES 
user_id=1356237
Originator: YES

psychotrahe:

note that this is still an issue w/nagios-plugins-1.4.9 and the workaround
I provided is still the fix for it

----------------------------------------------------------------------

Comment By: Matthias Eble (psychotrahe)
Date: 2007-06-21 08:24

Message:
Logged In: YES 
user_id=1694341
Originator: NO

#ifndef LDAP_OPT_SUCCESS
# define LDAP_OPT_SUCCESS LDAP_SUCCESS
#endif

seems to be a good fix on the first view. I'll recheck and try this on our
solaris box.


----------------------------------------------------------------------

Comment By: Sergei Haramundanis (volsh)
Date: 2006-06-01 17:28

Message:
Logged In: YES 
user_id=1356237

Note, originally, check_ldap failed with the following error:
==============================
if gcc -DLOCALEDIR=\"/usr/local/nagios2/share/locale\"
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl
-I/usr/include/ldap  -I/usr/local/ssl/include  
-I/usr/local/ssl/include -Wall -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:120: error: `LDAP_OPT_SUCCESS' undeclared
(first use in this function)
check_ldap.c:120: error: (Each undeclared identifier is
reported only once
check_ldap.c:120: error: for each function it appears in.)
check_ldap.c:141: warning: too many arguments for format
check_ldap.c:157: warning: implicit declaration of function
`ldap_start_tls_s'
check_ldap.c:80: warning: unused variable `tls'
*** Error code 1
make: Fatal error: Command failed for target `check_ldap.o'
Current working directory
/usr/local/nagios2/nagios-plugins-1.4.3/plugins
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory
/usr/local/nagios2/nagios-plugins-1.4.3/plugins
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory
/usr/local/nagios2/nagios-plugins-1.4.3
*** Error code 1
make: Fatal error: Command failed for target `all'
==============================
The workaround for this is to edit
./nagios-plugins-1.4.3/plugins/check_ldap.c and add the
following after the includes section at the top of the
source file:

#ifndef LDAP_OPT_SUCCESS
# define LDAP_OPT_SUCCESS LDAP_SUCCESS
#endif

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1498923&group_id=29880




More information about the Devel mailing list