Some help is appreciated! :)

Josh Skains JSkains at deltad.com
Mon Aug 26 20:28:44 CEST 2002


I am trying to compile nrpe and the plugins on a solaris machine. Any help
is appreciated..

With the plugins I get:

Making all in plugins
mksh: Fatal error in reader: = missing from replacement macro reference
Current working directory
/mhome/jskains/work/mon/nagiosplug-1.3-beta1/plugins
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'


With nrpe, I get:

cd ./src/; make ; cd ..
gcc -g -O2 -DHAVE_CONFIG_H  -lnsl -lsocket nrpe.c netutils.c -o nrpe
In file included from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.3/include/time.h:90,
                 from /usr/include/sys/time.h:405,
                 from /usr/include/sys/select.h:17,
                 from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.3/include/sys/types.h:28
1,
                 from /usr/include/strings.h:11,
                 from ../common/config.h:49,
                 from nrpe.c:22:
/usr/include/sys/siginfo.h:74: parse error before `pthread_attr_t'
/usr/include/sys/siginfo.h:74: warning: no semicolon at end of struct or
union
/usr/include/sys/siginfo.h:76: parse error before `}'
In file included from ../common/config.h:120,
                 from nrpe.c:22:
/usr/include/sys/socket.h:47: parse error before `sa_family_t'
/usr/include/sys/socket.h:47: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:56: parse error before `socklen_t'
/usr/include/sys/socket.h:56: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:187: parse error before `sa_family_t'
/usr/include/sys/socket.h:187: warning: no semicolon at end of struct or
union
/usr/include/sys/socket.h:189: parse error before `}'
/usr/include/sys/socket.h:234: parse error before `socklen_t'
/usr/include/sys/socket.h:234: warning: no semicolon at end of struct or
union
/usr/include/sys/socket.h:246: parse error before `}'
/usr/include/sys/socket.h:312: parse error before `socklen_t'
/usr/include/sys/socket.h:312: warning: no semicolon at end of struct or
union
/usr/include/sys/socket.h:315: parse error before `}'
/usr/include/sys/socket.h:385: parse error before `socklen_t'
/usr/include/sys/socket.h:386: parse error before `socklen_t'
/usr/include/sys/socket.h:399: parse error before `socklen_t'
/usr/include/sys/socket.h:400: parse error before `socklen_t'
In file included from nrpe.c:24:
netutils.h:37: warning: `struct in_addr' declared inside parameter list
netutils.h:37: warning: its scope is only this definition or declaration,
netutils.h:37: warning: which is probably not what you want.
nrpe.c: In function `wait_for_connections':
nrpe.c:327: storage size of `myname' isn't known
nrpe.c:329: storage size of `addr' isn't known
nrpe.c:358: `INADDR_ANY' undeclared (first use this function)
nrpe.c:358: (Each undeclared identifier is reported only once
nrpe.c:358: for each function it appears in.)
nrpe.c:443: dereferencing pointer to incomplete type
nrpe.c:443: dereferencing pointer to incomplete type
nrpe.c:446: dereferencing pointer to incomplete type
In file included from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.3/include/time.h:90,
                 from /usr/include/sys/time.h:405,
                 from /usr/include/sys/select.h:17,
                 from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.3/include/sys/types.h:28
1,
                 from /usr/include/strings.h:11,
                 from ../common/config.h:49,
                 from netutils.h:32,
                 from netutils.c:33:
/usr/include/sys/siginfo.h:74: parse error before `pthread_attr_t'
/usr/include/sys/siginfo.h:74: warning: no semicolon at end of struct or
union
/usr/include/sys/siginfo.h:76: parse error before `}'
In file included from ../common/config.h:120,
                 from netutils.h:32,
                 from netutils.c:33:
/usr/include/sys/socket.h:47: parse error before `sa_family_t'
/usr/include/sys/socket.h:47: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:56: parse error before `socklen_t'
/usr/include/sys/socket.h:56: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:187: parse error before `sa_family_t'
/usr/include/sys/socket.h:187: warning: no semicolon at end of struct or
union
/usr/include/sys/socket.h:189: parse error before `}'
/usr/include/sys/socket.h:234: parse error before `socklen_t'
/usr/include/sys/socket.h:234: warning: no semicolon at end of struct or
union
/usr/include/sys/socket.h:246: parse error before `}'
/usr/include/sys/socket.h:312: parse error before `socklen_t'
/usr/include/sys/socket.h:312: warning: no semicolon at end of struct or
union
/usr/include/sys/socket.h:315: parse error before `}'
/usr/include/sys/socket.h:385: parse error before `socklen_t'
/usr/include/sys/socket.h:386: parse error before `socklen_t'
/usr/include/sys/socket.h:399: parse error before `socklen_t'
/usr/include/sys/socket.h:400: parse error before `socklen_t'
In file included from netutils.c:33:
netutils.h:37: warning: `struct in_addr' declared inside parameter list
netutils.h:37: warning: its scope is only this definition or declaration,
netutils.h:37: warning: which is probably not what you want.
netutils.c: In function `my_connect':
netutils.c:48: storage size of `servaddr' isn't known
netutils.c:61: warning: assignment makes pointer from integer without a cast
netutils.c:67: dereferencing pointer to incomplete type
netutils.c:67: dereferencing pointer to incomplete type
netutils.c:71: warning: assignment makes pointer from integer without a cast
netutils.c:77: dereferencing pointer to incomplete type
netutils.c: At top level:
netutils.c:110: warning: `struct in_addr' declared inside parameter list
netutils.c:110: conflicting types for `my_inet_aton'
netutils.h:37: previous declaration of `my_inet_aton'
netutils.c: In function `my_inet_aton':
netutils.c:203: dereferencing pointer to incomplete type
*** Error code 1
make: Fatal error: Command failed for target `nrpe'
Current working directory /mhome/jskains/work/mon/nrpe-1.5/src
*** Error code 1
make: Fatal error: Command failed for target `all'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20020826/c8fc4efd/attachment.html>


More information about the Users mailing list