<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hello,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I’m having some problems compiling nrpe-2.12 on
Solaris 9. Configure works fine but the compile fails. Make all
delivers:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>nrpe.c:244: warning: assignment makes pointer from integer
without a cast<o:p></o:p></p>
<p class=MsoNormal>Undefined
first referenced<o:p></o:p></p>
<p class=MsoNormal> symbol
in file<o:p></o:p></p>
<p class=MsoNormal>get_dh512
/var/tmp//ccrwXrTs.o<o:p></o:p></p>
<p class=MsoNormal>ld: fatal: Symbol referencing errors. No output written to
nrpe<o:p></o:p></p>
<p class=MsoNormal>collect2: ld returned 1 exit status<o:p></o:p></p>
<p class=MsoNormal>make[1]: *** [nrpe] Error 1<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>#ifndef HEADER_DH_H<o:p></o:p></p>
<p class=MsoNormal>#include <openssl/dh.h><o:p></o:p></p>
<p class=MsoNormal>#endif<o:p></o:p></p>
<p class=MsoNormal>DH *get_dh512()<o:p></o:p></p>
<p class=MsoNormal> {<o:p></o:p></p>
<p class=MsoNormal> static unsigned
char dh512_p[]={<o:p></o:p></p>
<p class=MsoNormal>
0xBC,0xFA,0x8A,0x60,0xA5,0x29,0x86,0xB1,0x0E,0x86,0x7F,0x31,<o:p></o:p></p>
<p class=MsoNormal>
0x46,0xED,0x96,0xAD,0xD1,0x0F,0x3D,0xA2,0xA0,0xAB,0x2F,0x55,<o:p></o:p></p>
<p class=MsoNormal>
0x35,0xDF,0x8F,0x9B,0x47,0x8F,0x33,0x0E,0xF6,0xA9,0xF9,0x93,<o:p></o:p></p>
<p class=MsoNormal>
0x24,0x89,0xE5,0xFA,0xE5,0x63,0x8B,0x52,0x04,0x37,0xB5,0x78,<o:p></o:p></p>
<p class=MsoNormal>
0xFA,0x0A,0x2F,0xED,0x18,0xE8,0xC2,0xA9,0x37,0xCD,0x19,0x51,<o:p></o:p></p>
<p class=MsoNormal>
0x56,0x27,0x22,0x2B,<o:p></o:p></p>
<p class=MsoNormal>
};<o:p></o:p></p>
<p class=MsoNormal> static unsigned
char dh512_g[]={<o:p></o:p></p>
<p class=MsoNormal>
0x02,<o:p></o:p></p>
<p class=MsoNormal>
};<o:p></o:p></p>
<p class=MsoNormal> DH *dh;<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal> if ((dh=DH_new())
== NULL) return(NULL);<o:p></o:p></p>
<p class=MsoNormal>
dh->p=BN_bin2bn(dh512_p,sizeof(dh512_p),NULL);<o:p></o:p></p>
<p class=MsoNormal>
dh->g=BN_bin2bn(dh512_g,sizeof(dh512_g),NULL);<o:p></o:p></p>
<p class=MsoNormal> if ((dh->p ==
NULL) || (dh->g == NULL))<o:p></o:p></p>
<p class=MsoNormal>
{ DH_free(dh); return(NULL); }<o:p></o:p></p>
<p class=MsoNormal> return(dh);<o:p></o:p></p>
<p class=MsoNormal> }<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>/usr/local/ssl/include/openssl/dh.h: At top level:<o:p></o:p></p>
<p class=MsoNormal>/usr/local/ssl/include/openssl/dh.h:4: error: syntax error
before '*' token<o:p></o:p></p>
<p class=MsoNormal>/usr/local/ssl/include/openssl/dh.h:5: error: redefinition
of 'get_dh512'<o:p></o:p></p>
<p class=MsoNormal>/usr/local/ssl/include/openssl/dh.h:5: error: previous
definition of 'get_dh512' was here<o:p></o:p></p>
<p class=MsoNormal>/usr/local/ssl/include/openssl/dh.h:5: error: redefinition
of 'get_dh512'<o:p></o:p></p>
<p class=MsoNormal>/usr/local/ssl/include/openssl/dh.h:5: error: previous
definition of 'get_dh512' was here<o:p></o:p></p>
<p class=MsoNormal>/usr/local/ssl/include/openssl/dh.h: In function
`get_dh512':<o:p></o:p></p>
<p class=MsoNormal>/usr/local/ssl/include/openssl/dh.h:17: error: `DH'
undeclared (first use in this function)<o:p></o:p></p>
<p class=MsoNormal>/usr/local/ssl/include/openssl/dh.h:17: error: `dh'
undeclared (first use in this function)<o:p></o:p></p>
<p class=MsoNormal>In file included from /usr/local/ssl/include/openssl/dh.h:2,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Any help would be appreciated.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Thanks.<o:p></o:p></p>
</div>
</body>
</html>