[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xymon] 4.3.0 beta3 compile problem on solaris 10 sparc
- To: xymon (at) xymon.com
- Subject: Re: [xymon] 4.3.0 beta3 compile problem on solaris 10 sparc
- From: Ralph Mitchell <ralphmitchell (at) gmail.com>
- Date: Tue, 16 Nov 2010 21:11:40 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=ONrWr4L8w524cZ1DxrlXxl1tfdAiE1bMlngRaX+Vfj4=; b=fG0RgKUn34I5id1i0m21g6WcxQrNUadFj9vn77SgHJGqq/5BorLJaOmOGtLDNRZ1Ji rpY4K7CmZDa1GDo1HrTU0YatU0KNOFyGYxhhlf8OcrLUFVqF3ad4yRalOnSkEMC2ji9y Mxdj3xo7RR46JEhlaoRQY5F6HnZDF4b+QEfUI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ilwDcAl1BCd3Vs3hkatWRzMZzL0djRMQpsJr2k4QG4APvOTqAEDLiwpQ6AzWY4aVyr 6AG28Gvlc2WE4C4Z9fFi1MPlNZyaNzJ1c/NCm5GizT5IlCR3hOsDdLxGlpihn+M/fzqM kPXlUYdO1KnaMr8+dUXIHXa3nVAHdbm8w/uPc=
- References: <4CE330CA.8000506 (at) logicaltech.com.au>
On Tue, Nov 16, 2010 at 8:32 PM, Roland Soderstrom <
rolands (at) logicaltech.com.au> wrote:
> Hi,
>
> Can't compile on Solaris 10 sparc with LDAP disabled.
> I disable LDAP test, SSL tests as I have no ldap server or SSL services.
>
> If I enable SSL and LDAP test I get another problem with ld, see further
> down.
> It uses /usr/ccs/bin/ld, I changed to "LD = /usr/local/bin/ld" in
> xymonnet/c-ares/Makefile.
> Same same...
>
> I get this ldap compile error
>
> LDAP, SSL enabled:
> -bash-3.00$ ./configure
> <snip>
> Checking for OpenSSL ...
> Found OpenSSL include files in /usr/local/ssl/include
> Found OpenSSL libraries in /opt/csw/lib
>
> Xymon can use the OpenSSL library to test SSL-enabled services
> like POP3S, IMAPS, NNTPS and TELNETS. If you have the OpenSSL
> library installed, I recommend that you enable this.
>
> Do you want to be able to test SSL-enabled services (y) ?
> n
>
>
>
> Checking for LDAP ...
> test-ldap.c: In function `main':
> test-ldap.c:25: warning: implicit declaration of function `ldap_init'
> test-ldap.c:25: warning: assignment makes pointer from integer without a
> cast
> Found LDAP include files in /usr/include
> Found LDAP libraries in /usr/lib
>
> Xymon can use your OpenLDAP LDAP client library to test LDAP servers.
>
> Do you want to be able to test LDAP servers (y) ?
> n
> <snip>
> -bash-3.00$ make
> <snip>
> gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
> -I/var/tmp/xymon-4.3.0.beta3/include -I/usr/local/include -c -o ldaptest.o
> ldaptest.c
> ldaptest.c: In function `add_ldap_test':
> ldaptest.c:99: error: `badurl' undeclared (first use in this function)
> ldaptest.c:99: error: (Each undeclared identifier is reported only once
> ldaptest.c:99: error: for each function it appears in.)
> ldaptest.c:101: error: `req' undeclared (first use in this function)
> ldaptest.c:112: error: `basecheck' undeclared (first use in this function)
> make[1]: *** [ldaptest.o] Error 1
> make[1]: Leaving directory `/var/tmp/xymon-4.3.0.beta3/xymonnet'
> make: *** [xymonnet-build] Error 2
> -bash-3.00$
>
I get the same thing in Gentoo Linux on x86_64 laptop. Those undeclared
variables are declared *inside* the #ifdef at line 62:
#ifdef XYMON_LDAP
testitem_t *basecheck;
ldap_data_t *req;
LDAPURLDesc *ludp;
char *urltotest;
int badurl;
Line 99 is outside the closing #ifdef. Moving the #endif down to line 118
effectively comments out the entire function body. I don't know if that's
the correct fix., but at least it compiles...
Ralph Mitchell