nrpe compile on Solaris 9

Peters, Ron rpeters at columbia.com
Thu Jul 16 22:45:42 CEST 2009


Hello,

I'm having some problems compiling nrpe-2.12 on Solaris 9.  Configure works fine but the compile fails.  Make all delivers:

nrpe.c:244: warning: assignment makes pointer from integer without a cast
Undefined                       first referenced
 symbol                             in file
get_dh512                           /var/tmp//ccrwXrTs.o
ld: fatal: Symbol referencing errors. No output written to nrpe
collect2: ld returned 1 exit status
make[1]: *** [nrpe] Error 1

I found that in the README.SSL I'm supposed to run 'openssl dhparam -C 512' and replace the existing dh.h with the code that is output from the command.  This is what was returned:

#ifndef HEADER_DH_H
#include <openssl/dh.h>
#endif
DH *get_dh512()
        {
        static unsigned char dh512_p[]={
                0xBC,0xFA,0x8A,0x60,0xA5,0x29,0x86,0xB1,0x0E,0x86,0x7F,0x31,
                0x46,0xED,0x96,0xAD,0xD1,0x0F,0x3D,0xA2,0xA0,0xAB,0x2F,0x55,
                0x35,0xDF,0x8F,0x9B,0x47,0x8F,0x33,0x0E,0xF6,0xA9,0xF9,0x93,
                0x24,0x89,0xE5,0xFA,0xE5,0x63,0x8B,0x52,0x04,0x37,0xB5,0x78,
                0xFA,0x0A,0x2F,0xED,0x18,0xE8,0xC2,0xA9,0x37,0xCD,0x19,0x51,
                0x56,0x27,0x22,0x2B,
                };
        static unsigned char dh512_g[]={
                0x02,
                };
        DH *dh;

        if ((dh=DH_new()) == NULL) return(NULL);
        dh->p=BN_bin2bn(dh512_p,sizeof(dh512_p),NULL);
        dh->g=BN_bin2bn(dh512_g,sizeof(dh512_g),NULL);
        if ((dh->p == NULL) || (dh->g == NULL))
                { DH_free(dh); return(NULL); }
        return(dh);
        }

With that dh.h in /usr/local/ssl/include/openssl, the compile spews tons of errors for about 10 seconds, most of which look like this:

/usr/local/ssl/include/openssl/dh.h: At top level:
/usr/local/ssl/include/openssl/dh.h:4: error: syntax error before '*' token
/usr/local/ssl/include/openssl/dh.h:5: error: redefinition of 'get_dh512'
/usr/local/ssl/include/openssl/dh.h:5: error: previous definition of 'get_dh512' was here
/usr/local/ssl/include/openssl/dh.h:5: error: redefinition of 'get_dh512'
/usr/local/ssl/include/openssl/dh.h:5: error: previous definition of 'get_dh512' was here
/usr/local/ssl/include/openssl/dh.h: In function `get_dh512':
/usr/local/ssl/include/openssl/dh.h:17: error: `DH' undeclared (first use in this function)
/usr/local/ssl/include/openssl/dh.h:17: error: `dh' undeclared (first use in this function)
In file included from /usr/local/ssl/include/openssl/dh.h:2,

Any help would be appreciated.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090716/c28fc6ba/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
-------------- next part --------------
_______________________________________________
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