(no subject)

Gerhard Lausser Gerhard.Lausser at consol.de
Fri Apr 18 19:23:14 CEST 2008


Hi Ethan,

i could not compile NRPE-2.12 on a HP-UX11.11 machine because of two things:

./configure looks only for libssl.so, ignoring the installed libssl.a
After adding this test to configure, the compilation failed with
nrpe.c: In function 'get_log_facility':
nrpe.c:617: error: 'LOG_AUTHPRIV' undeclared (first use in this function)
nrpe.c:617: error: (Each undeclared identifier is reported only once
nrpe.c:617: error: for each function it appears in.)
nrpe.c:619: error: 'LOG_FTP' undeclared (first use in this function)

"Conservative" operating systems do not have the definitions in their
syslog.h as you can see in the following comparison:

--------- Linux ----------------------------------

/* facility codes */
...
#define LOG_AUTH        (4<<3)  /* security/authorization messages */
#define LOG_SYSLOG      (5<<3)  /* messages generated internally by syslogd
*/
#define LOG_LPR         (6<<3)  /* line printer subsystem */
#define LOG_NEWS        (7<<3)  /* network news subsystem */
#define LOG_UUCP        (8<<3)  /* UUCP subsystem */
#define LOG_CRON        (9<<3)  /* clock daemon */
#define LOG_AUTHPRIV    (10<<3) /* security/authorization messages (private)
*/
#define LOG_FTP         (11<<3) /* ftp daemon */

        /* other codes through 15 reserved for system use */
#define LOG_LOCAL0      (16<<3) /* reserved for local use */
#define LOG_LOCAL1      (17<<3) /* reserved for local use */

--------- HP-UX 11.11 -------------------------------
....
#define LOG_AUTH        (4<<3)  /* security/authorization messages */
#define LOG_SYSLOG      (5<<3)  /* messages generated internally by syslogd
*/
#define LOG_LPR         (6<<3)  /* line printer subsystem */

#ifdef _INCLUDE_XOPEN_SOURCE_EXTENDED
#define LOG_NEWS        (7<<3)  /* messages generated by the news system */
#define LOG_UUCP        (8<<3)  /* messages generated by the UUCP system */
#define LOG_CRON        (9<<3)  /* messages generated by the cron daemon */
#endif /* _INCLUDE_XOPEN_SOURCE_EXTENDED */

        /* other codes through 15 reserved for system use */
#define LOG_LOCAL0      (16<<3) /* reserved for local use */
#define LOG_LOCAL1      (17<<3) /* reserved for local use */

I added the definitions to the config.h.in 
(inside a #ifndef log_ftp .... #endif, so it doesn't mess with system
definitions).

Attached is the patch which i needed for a successful compile on hp-ux 11.11

Greetings from Munich,
Gerhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.nrpe.libssl.a_and_missing_facilities
Type: application/octet-stream
Size: 1485 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080418/f93b73d2/attachment.obj>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list