[Xymon] Possible Xymon 4.3.8 build/ldap.sh bug

Ryan Novosielski novosirj at umdnj.edu
Tue Jul 17 19:35:15 CEST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

Tried configure.server on a machine running Solaris 10 x86 that I plan
to upgrade from 4.2.3 today and had it crash out during the LDAP
section. As it turns out, I had no LDAP libraries at all on the
machine. This was the result (I did configure.server with -x to show
the commands being run -- I'm only showing the LDAP section which is
the final part that ran):

+ . build/ldap.sh
+ echo Checking for LDAP ...
Checking for LDAP ...
LDAPINC=
LDAPLIB=
+ test -f /opt/openldap*/include/ldap.h
+ test -f /opt/openldap*/lib/libldap.so
+ test -f /opt/openldap*/lib/libldap.a
+ test -f /opt/openldap*/lib64/libldap.so
+ test -f /opt/openldap*/lib64/libldap.a
+ test -f /opt/ldap*/include/ldap.h
+ test -f /opt/ldap*/lib/libldap.so
+ test -f /opt/ldap*/lib/libldap.a
+ test -f /opt/ldap*/lib64/libldap.so
+ test -f /opt/ldap*/lib64/libldap.a
+ test -f /usr/local/openldap*/include/ldap.h
+ test -f /usr/local/openldap*/lib/libldap.so
+ test -f /usr/local/openldap*/lib/libldap.a
+ test -f /usr/local/openldap*/lib64/libldap.so
+ test -f /usr/local/openldap*/lib64/libldap.a
+ test -f /usr/local/ldap*/include/ldap.h
+ test -f /usr/local/ldap*/lib/libldap.so
+ test -f /usr/local/ldap*/lib/libldap.a
+ test -f /usr/local/ldap*/lib64/libldap.so
+ test -f /usr/local/ldap*/lib64/libldap.a
+ test -f /usr/local/include/ldap.h
+ test -f /usr/local/lib/libldap.so
+ test -f /usr/local/lib/libldap.a
+ test -f /usr/local/lib64/libldap.so
+ test -f /usr/local/lib64/libldap.a
+ test -f /usr/pkg/include/ldap.h
+ test -f /usr/pkg/lib/libldap.so
+ test -f /usr/pkg/lib/libldap.a
+ test -f /usr/pkg/lib64/libldap.so
+ test -f /usr/pkg/lib64/libldap.a
+ test -f /opt/csw/include/ldap.h
+ test -f /opt/csw/lib/libldap.so
+ test -f /opt/csw/lib/libldap.a
+ test -f /opt/csw/lib64/libldap.so
+ test -f /opt/csw/lib64/libldap.a
+ test -f /opt/sfw/include/ldap.h
+ test -f /opt/sfw/lib/libldap.so
+ test -f /opt/sfw/lib/libldap.a
+ test -f /opt/sfw/lib64/libldap.so
+ test -f /opt/sfw/lib64/libldap.a
+ test  !=
+ test  !=
+ test -f /liblber.a
+ test -f /liblber.so
LDAPOK=YES
+ test ! -z
./configure.server: test: argument expected

Installing Blastwave's CSWoldaprt package solved the problem (it
contains the following files):

/opt/csw/include
/opt/csw/include/lber.h
/opt/csw/include/lber_types.h
/opt/csw/include/ldap.h
/opt/csw/include/ldap_cdefs.h
/opt/csw/include/ldap_features.h
/opt/csw/include/ldap_schema.h
/opt/csw/include/ldap_utf8.h
/opt/csw/include/slapi-plugin.h
/opt/csw/lib
/opt/csw/lib/amd64
/opt/csw/lib/amd64/liblber-2.4.so.2
/opt/csw/lib/amd64/liblber-2.4.so.2.4.2
/opt/csw/lib/amd64/liblber.a
/opt/csw/lib/amd64/liblber.la
/opt/csw/lib/amd64/liblber.so
/opt/csw/lib/amd64/libldap-2.4.so.2
/opt/csw/lib/amd64/libldap-2.4.so.2.4.2
/opt/csw/lib/amd64/libldap.a
/opt/csw/lib/amd64/libldap.la
/opt/csw/lib/amd64/libldap.so
/opt/csw/lib/amd64/libldap_r-2.4.so.2
/opt/csw/lib/amd64/libldap_r-2.4.so.2.4.2
/opt/csw/lib/amd64/libldap_r.a
/opt/csw/lib/amd64/libldap_r.la
/opt/csw/lib/amd64/libldap_r.so
/opt/csw/lib/liblber-2.3.so
/opt/csw/lib/liblber-2.3.so.0
/opt/csw/lib/liblber-2.3.so.0.2.27
/opt/csw/lib/liblber-2.4.so.2
/opt/csw/lib/liblber-2.4.so.2.4.2
/opt/csw/lib/liblber.a
/opt/csw/lib/liblber.la
/opt/csw/lib/liblber.so
/opt/csw/lib/libldap-2.3.so
/opt/csw/lib/libldap-2.3.so.0
/opt/csw/lib/libldap-2.3.so.0.2.27
/opt/csw/lib/libldap-2.4.so.2
/opt/csw/lib/libldap-2.4.so.2.4.2
/opt/csw/lib/libldap.a
/opt/csw/lib/libldap.la
/opt/csw/lib/libldap.so
/opt/csw/lib/libldap_r-2.3.so
/opt/csw/lib/libldap_r-2.3.so.0
/opt/csw/lib/libldap_r-2.3.so.0.2.27
/opt/csw/lib/libldap_r-2.4.so.2
/opt/csw/lib/libldap_r-2.4.so.2.4.2
/opt/csw/lib/libldap_r.a
/opt/csw/lib/libldap_r.la
/opt/csw/lib/libldap_r.so

Now if I run configure.server now, after those files are installed, I
get the following:

+ . build/ldap.sh
+ echo Checking for LDAP ...
Checking for LDAP ...
LDAPINC=
LDAPLIB=
+ test -f /opt/openldap*/include/ldap.h
+ test -f /opt/openldap*/lib/libldap.so
+ test -f /opt/openldap*/lib/libldap.a
+ test -f /opt/openldap*/lib64/libldap.so
+ test -f /opt/openldap*/lib64/libldap.a
+ test -f /opt/ldap*/include/ldap.h
+ test -f /opt/ldap*/lib/libldap.so
+ test -f /opt/ldap*/lib/libldap.a
+ test -f /opt/ldap*/lib64/libldap.so
+ test -f /opt/ldap*/lib64/libldap.a
+ test -f /usr/local/openldap*/include/ldap.h
+ test -f /usr/local/openldap*/lib/libldap.so
+ test -f /usr/local/openldap*/lib/libldap.a
+ test -f /usr/local/openldap*/lib64/libldap.so
+ test -f /usr/local/openldap*/lib64/libldap.a
+ test -f /usr/local/ldap*/include/ldap.h
+ test -f /usr/local/ldap*/lib/libldap.so
+ test -f /usr/local/ldap*/lib/libldap.a
+ test -f /usr/local/ldap*/lib64/libldap.so
+ test -f /usr/local/ldap*/lib64/libldap.a
+ test -f /usr/local/include/ldap.h
+ test -f /usr/local/lib/libldap.so
+ test -f /usr/local/lib/libldap.a
+ test -f /usr/local/lib64/libldap.so
+ test -f /usr/local/lib64/libldap.a
+ test -f /usr/pkg/include/ldap.h
+ test -f /usr/pkg/lib/libldap.so
+ test -f /usr/pkg/lib/libldap.a
+ test -f /usr/pkg/lib64/libldap.so
+ test -f /usr/pkg/lib64/libldap.a
+ test -f /opt/csw/include/ldap.h
LDAPINC=/opt/csw/include
+ test -f /opt/csw/lib/libldap.so
LDAPLIB=/opt/csw/lib
+ test -f /opt/csw/lib/libldap.a
LDAPLIB=/opt/csw/lib
+ test -f /opt/csw/lib64/libldap.so
+ test -f /opt/csw/lib64/libldap.a
+ test -f /opt/sfw/include/ldap.h
+ test -f /opt/sfw/lib/libldap.so
+ test -f /opt/sfw/lib/libldap.a
+ test -f /opt/sfw/lib64/libldap.so
+ test -f /opt/sfw/lib64/libldap.a
+ test  !=
+ test  !=
+ test -f /opt/csw/lib/liblber.a
LDAPLBER=-llber
+ test -f /opt/csw/lib/liblber.so
LDAPLBER=-llber
LDAPOK=YES
+ test ! -z /opt/csw/include
INCOPT=-I/opt/csw/include
+ test ! -z /opt/csw/lib
LIBOPT=-L/opt/csw/lib
+ cd build
+ gmake -f Makefile.test-ldap clean
+ uname -s
+ tr [/] [_]
OS=SunOS
+ gmake -f Makefile.test-ldap test-compile
+ test 0 -eq 0
+ echo Compiling with LDAP works OK
Compiling with LDAP works OK
+ gmake -f Makefile.test-ldap test-link
+ test 2 -eq 0
+ echo WARNING: Cannot link with LDAP
WARNING: Cannot link with LDAP
LDAPOK=NO
+ gmake -f Makefile.test-ldap clean
+ uname -s
+ tr [/] [_]
OS=SunOS
+ cd ..
+ test NO = NO
+ echo (Open)LDAP include- or library-files not found.
(Open)LDAP include- or library-files not found.
+ echo If you want to perform detailed LDAP tests (queries), you need to
If you want to perform detailed LDAP tests (queries), you need to
+ echo install LDAP an LDAP client library that Xymon can use.
install LDAP an LDAP client library that Xymon can use.
+ echo OpenLDAP can be found at http://www.openldap.org/
OpenLDAP can be found at http://www.openldap.org/
+ echo

+ echo If you have OpenLDAP installed, use the "--ldapinclude DIR" and
"--ldaplib DIR"
If you have OpenLDAP installed, use the "--ldapinclude DIR" and
"--ldaplib DIR"
+ echo options to configure to specify where they are.
options to configure to specify where they are.
+ echo

+ sleep 3
+ echo Continuing with LDAP support disabled.
Continuing with LDAP support disabled.
+ test NO = NO
ENABLELDAP=n
LDAPDEF=

I don't know if this is a Solaris-only problem or not, but it seems
like this script should do much the same thing in either circumstance,
no (the former where I have no LDAP installed at all and the latter
where I have only the runtimes installed)?

- -- 
- ---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |novosirj at umdnj.edu - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/EI-Academic Svcs. - ADMC 450, Newark

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAFolMACgkQmb+gadEcsb7ALACgtg7uNik4aeTFYUAtHtdqPXAZ
tzUAmQGYf1iPrXNYLuDSto/BoIjOlb1/
=oEoJ
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: novosirj.vcf
Type: text/x-vcard
Size: 279 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120717/e6c8f3d9/attachment.vcf>


More information about the Xymon mailing list