<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Still, Problem compiling NRPE on Tru64 UNIX</TITLE>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=382413109-25012006>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=382413109-25012006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=382413109-25012006>Lots 
of thanks to <FONT size=2>Örjan Petersson, who gave me a link to <A 
href="http://www.altinity.org">www.altinity.org</A>, where I found a version of 
NRPE ,. based om NRPE2.0 which supports Tru64 (And IRIX, for who is 
interested).</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=382413109-25012006>And 
on january 23rd, Ethan release NRPE 2.3. This version also support Tru64 
support, which ( I think ) comes from the guys of Altinity.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=382413109-25012006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=382413109-25012006>Anyway, thanks to all to make this work for 
me (And probably lots of others)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=382413109-25012006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=382413109-25012006>best 
regards,<BR>Andy</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Kannberg, Andy 
  [mailto:Andy.Kannberg@isc.politie.nl]<BR><B>Sent:</B> maandag 23 januari 2006 
  11:11<BR><B>To:</B> 'nagios-users@lists.sourceforge.net'<BR><B>Subject:</B> 
  [Nagios-users] Still, Problem compiling NRPE on Tru64 
UNIX<BR><BR></FONT></DIV>
  <P><FONT size=2>Hello all,</FONT> </P>
  <P><FONT size=2>I've asked this also 2 weeks ago, but got little 
  response....So I am trying it again....</FONT> </P>
  <P><FONT size=2>I am trying to compile NRPE on Tru64 UNIX for two weeks now, 
  but I'm still running into problems. </FONT><BR><FONT size=2>I've searched 
  throught the archives and forums to get a solution, but to no avail. I've 
  tried to compile NRPE on the standard client we want to monitor,</FONT></P>
  <P><FONT size=2>but the make all exits with these errors: </FONT></P>
  <P><FONT size=2>root@itiu76> make</FONT> <BR><FONT size=2>cd ./src/; make ; 
  cd ..</FONT> <BR><FONT size=2>cc -g -I/usr/local/ssl/include/openssl 
  -I/usr/local/ssl/include -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c 
  -L/usr/local/ssl/lib  -lssl -lcrypto</FONT></P>
  <P><FONT size=2>nrpe.c:</FONT> <BR><FONT size=2>cc: Error: nrpe.c, line 1445: 
  In the initializer for long_options, an array's element type is incomplete, 
  which precludes its initialization. (incompelinit)</FONT></P>
  <P><FONT 
  size=2>                
  {"inetd", no_argument, 0, 'i'},</FONT> <BR><FONT 
  size=2>----------------^</FONT> <BR><FONT size=2>utils.c:</FONT> <BR><FONT 
  size=2>*** Exit 1</FONT> <BR><FONT size=2>Stop.</FONT> <BR><FONT size=2>*** 
  Exit 1</FONT> <BR><FONT size=2>Stop.</FONT> </P>
  <P><FONT size=2>When I check the output of configure, I notice that there are 
  several options that output 'no':</FONT> </P>
  <P><FONT size=2>.</FONT> <BR><FONT size=2>.</FONT> <BR><FONT size=2>checking 
  whether the C compiler (cc  ) is a cross-compiler... no</FONT> <BR><FONT 
  size=2>.</FONT> <BR><FONT size=2>.</FONT> <BR><FONT size=2>.</FONT> <BR><FONT 
  size=2>.</FONT> <BR><FONT size=2>.</FONT> <BR><FONT size=2>checking for 
  stdint.h... no</FONT> <BR><FONT size=2>checking for uint32_t... no</FONT> 
  <BR><FONT size=2>checking for u_int32_t... no</FONT> <BR><FONT size=2>checking 
  for int32_t... no</FONT> <BR><FONT size=2>checking for main in -lnsl... 
  no</FONT> <BR><FONT size=2>checking for socket in -lsocket... no</FONT> 
  </P><BR>
  <P><FONT size=2>I've tried to remove the lines in the source files which cause 
  the error, but this results in even more errors.</FONT> </P>
  <P><FONT size=2>Then, I've tried to compile it in our development environment, 
  with gcc, with these results:</FONT> </P>
  <P><FONT size=2>./configure says:</FONT> </P>
  <P><FONT size=2>checking whether the C compiler (gcc  ) is a 
  cross-compiler... no</FONT> <BR><FONT size=2>checking for uint32_t... 
  no</FONT> <BR><FONT size=2>checking for u_int32_t... no</FONT> <BR><FONT 
  size=2>checking for int32_t... no</FONT> <BR><FONT size=2>checking for main in 
  -lnsl... no</FONT> <BR><FONT size=2>checking for socket in -lsocket... 
  no</FONT> </P>
  <P><FONT size=2>The rest of the options all output 'yes'</FONT> </P>
  <P><FONT size=2>make all:</FONT> </P>
  <P><FONT size=2>root@itiu54-1> make all</FONT> <BR><FONT size=2>cd ./src/; 
  make ; cd ..</FONT> <BR><FONT size=2>gcc -g -O2 -I/usr/ssl/include/openssl 
  -I/usr/ssl/include -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c -L/usr/ssl/lib  
  -lssl -lcrypto</FONT></P>
  <P><FONT size=2>nrpe.c: In function `main':</FONT> <BR><FONT 
  size=2>nrpe.c:198: warning: assignment makes pointer from integer without a 
  cast</FONT> <BR><FONT size=2>nrpe.c: In function 
  `wait_for_connections':</FONT> <BR><FONT size=2>nrpe.c:520: `socklen_t' 
  undeclared (first use in this function)</FONT> <BR><FONT size=2>nrpe.c:520: 
  (Each undeclared identifier is reported only once</FONT> <BR><FONT 
  size=2>nrpe.c:520: for each function it appears in.)</FONT> <BR><FONT 
  size=2>nrpe.c:520: parse error before "addrlen"</FONT> <BR><FONT 
  size=2>nrpe.c:619: `addrlen' undeclared (first use in this function)</FONT> 
  <BR><FONT size=2>nrpe.c: In function `process_arguments':</FONT> <BR><FONT 
  size=2>nrpe.c:1442: elements of array `long_options' have incomplete 
  type</FONT> <BR><FONT size=2>nrpe.c:1443: warning: excess elements in struct 
  initializer</FONT> <BR><FONT size=2>nrpe.c:1443: warning: (near initialization 
  for `long_options[0]')</FONT> <BR><FONT size=2>nrpe.c:1443: 
  `required_argument' undeclared (first use in this function)</FONT> <BR><FONT 
  size=2>nrpe.c:1443: warning: excess elements in struct initializer</FONT> 
  <BR><FONT size=2>nrpe.c:1443: warning: (near initialization for 
  `long_options[0]')</FONT> <BR><FONT size=2>nrpe.c:1443: warning: excess 
  elements in struct initializer</FONT> <BR><FONT size=2>nrpe.c:1443: warning: 
  (near initialization for `long_options[0]')</FONT> <BR><FONT 
  size=2>nrpe.c:1443: warning: excess elements in struct initializer</FONT> 
  <BR><FONT size=2>nrpe.c:1443: warning: (near initialization for 
  `long_options[0]')</FONT> <BR><FONT size=2>nrpe.c:1444: warning: excess 
  elements in struct initializer</FONT> <BR><FONT size=2>nrpe.c:1444: warning: 
  (near initialization for `long_options[1]')</FONT> <BR><FONT 
  size=2>nrpe.c:1444: `no_argument' undeclared (first use in this 
  function)</FONT> <BR><FONT size=2>nrpe.c:1444: warning: excess elements in 
  struct initializer</FONT> <BR><FONT size=2>nrpe.c:1444: warning: (near 
  initialization for `long_options[1]')</FONT> <BR><FONT size=2>nrpe.c:1444: 
  warning: excess elements in struct initializer</FONT> <BR><FONT 
  size=2>nrpe.c:1444: warning: (near initialization for 
  `long_options[1]')</FONT> <BR><FONT size=2>nrpe.c:1444: warning: excess 
  elements in struct initializer</FONT> <BR><FONT size=2>nrpe.c:1444: warning: 
  (near initialization for `long_options[1]')</FONT> <BR><FONT 
  size=2>nrpe.c:1445: warning: excess elements in struct initializer</FONT> 
  <BR><FONT size=2>nrpe.c:1445: warning: (near initialization for 
  `long_options[2]')</FONT> <BR><FONT size=2>nrpe.c:1445: warning: excess 
  elements in struct initializer</FONT> <BR><FONT size=2>nrpe.c:1445: warning: 
  (near initialization for `long_options[2]')</FONT> <BR><FONT 
  size=2>nrpe.c:1445: warning: excess elements in struct initializer</FONT> 
  <BR><FONT size=2>nrpe.c:1445: warning: (near initialization for 
  `long_options[2]')</FONT> <BR><FONT size=2>nrpe.c:1445: warning: excess 
  elements in struct initializer</FONT> <BR><FONT size=2>nrpe.c:1445: warning: 
  (near initialization for `long_options[2]')</FONT> <BR><FONT 
  size=2>nrpe.c:1446: warning: excess elements in struct initializer</FONT> 
  <BR><FONT size=2>nrpe.c:1446: warning: (near initialization for 
  `long_options[3]')</FONT> <BR><FONT size=2>nrpe.c:1446: warning: excess 
  elements in struct initializer</FONT> <BR><FONT size=2>nrpe.c:1446: warning: 
  (near initialization for `long_options[3]')</FONT> <BR><FONT 
  size=2>nrpe.c:1446: warning: excess elements in struct initializer</FONT> 
  <BR><FONT size=2>nrpe.c:1446: warning: (near initialization for 
  `long_options[3]')</FONT> <BR><FONT size=2>nrpe.c:1446: warning: excess 
  elements in struct initializer</FONT> <BR><FONT size=2>nrpe.c:1446: warning: 
  (near initialization for `long_options[3]')</FONT> <BR><FONT 
  size=2>nrpe.c:1447: warning: excess elements in struct initializer</FONT> 
  <BR><FONT size=2>nrpe.c:1447: warning: (near initialization for 
  `long_options[4]')</FONT> <BR><FONT size=2>nrpe.c:1447: warning: excess 
  elements in struct initializer</FONT> <BR><FONT size=2>nrpe.c:1447: warning: 
  (near initialization for `long_options[4]')</FONT> <BR><FONT 
  size=2>nrpe.c:1447: warning: excess elements in struct initializer</FONT> 
  <BR><FONT size=2>nrpe.c:1447: warning: (near initialization for 
  `long_options[4]')</FONT> <BR><FONT size=2>nrpe.c:1447: warning: excess 
  elements in struct initializer</FONT> <BR><FONT size=2>nrpe.c:1447: warning: 
  (near initialization for `long_options[4]')</FONT> <BR><FONT 
  size=2>nrpe.c:1448: warning: excess elements in struct initializer</FONT> 
  <BR><FONT size=2>nrpe.c:1448: warning: (near initialization for 
  `long_options[5]')</FONT> <BR><FONT size=2>nrpe.c:1448: warning: excess 
  elements in struct initializer</FONT> <BR><FONT size=2>nrpe.c:1448: warning: 
  (near initialization for `long_options[5]')</FONT> <BR><FONT 
  size=2>nrpe.c:1448: warning: excess elements in struct initializer</FONT> 
  <BR><FONT size=2>nrpe.c:1448: warning: (near initialization for 
  `long_options[5]')</FONT> <BR><FONT size=2>nrpe.c:1448: warning: excess 
  elements in struct initializer</FONT> <BR><FONT size=2>nrpe.c:1448: warning: 
  (near initialization for `long_options[5]')</FONT> <BR><FONT 
  size=2>nrpe.c:1449: warning: excess elements in struct initializer</FONT> 
  <BR><FONT size=2>nrpe.c:1449: warning: (near initialization for 
  `long_options[6]')</FONT> <BR><FONT size=2>nrpe.c:1449: warning: excess 
  elements in struct initializer</FONT> <BR><FONT size=2>nrpe.c:1449: warning: 
  (near initialization for `long_options[6]')</FONT> <BR><FONT 
  size=2>nrpe.c:1449: warning: excess elements in struct initializer</FONT> 
  <BR><FONT size=2>nrpe.c:1449: warning: (near initialization for 
  `long_options[6]')</FONT> <BR><FONT size=2>nrpe.c:1449: warning: excess 
  elements in struct initializer</FONT> <BR><FONT size=2>nrpe.c:1449: warning: 
  (near initialization for `long_options[6]')</FONT> <BR><FONT 
  size=2>nrpe.c:1442: storage size of `long_options' isn't known</FONT> 
  <BR><FONT size=2>*** Exit 1</FONT> <BR><FONT size=2>Stop.</FONT> <BR><FONT 
  size=2>*** Exit 1</FONT> <BR><FONT size=2>Stop.</FONT> </P><BR>
  <P><FONT size=2>I don't know how to proceed. I hope that someone can help me 
  with this problem. </FONT></P>
  <P><FONT size=2>TIA,</FONT> </P>
  <P><FONT size=2>Andy Kannberg</FONT> </P><BR></BLOCKQUOTE></BODY></HTML>