This is a multi-part message in MIME format.
------=_NextPart_000_0044_01C8A189.A8B7FA00
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
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
------=_NextPart_000_0044_01C8A189.A8B7FA00
Content-Type: application/octet-stream;
name="patch.nrpe.libssl.a_and_missing_facilities"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="patch.nrpe.libssl.a_and_missing_facilities"
diff -Naur nrpe-2.12.orig/configure nrpe-2.12/configure=0A=
--- nrpe-2.12.orig/configure 2008-04-18 19:12:30.812500000 +0200=0A=
+++ nrpe-2.12/configure 2008-04-18 19:12:27.546875000 +0200=0A=
@@ -6670,7 +6670,8 @@=0A=
found_ssl=3Dno=0A=
for dir in $ssl_lib_dir $ssl_dir /usr/lib64 /usr/lib /usr/local/lib =
/usr/lib/ssl /usr/ssl/lib /usr/openssl/lib /usr/pkg/lib =
/usr/freeware/lib/openssl; do=0A=
ssllibdir=3D"$dir"=0A=
- if test -f "$dir/libssl.so"; then=0A=
+ if test -f "$dir/libssl.so" || test -f "$dir/libssl.a"; =0A=
+then=0A=
found_ssl=3Dyes=0A=
break=0A=
fi=0A=
diff -Naur nrpe-2.12.orig/configure.in nrpe-2.12/configure.in=0A=
--- nrpe-2.12.orig/configure.in 2008-04-18 19:12:31.031250000 +0200=0A=
+++ nrpe-2.12/configure.in 2008-04-18 19:12:27.750000000 +0200=0A=
@@ -287,7 +287,7 @@=0A=
found_ssl=3Dno=0A=
for dir in $ssl_lib_dir $ssl_dir /usr/lib64 /usr/lib /usr/local/lib =
/usr/lib/ssl /usr/ssl/lib /usr/openssl/lib /usr/pkg/lib =
/usr/freeware/lib/openssl; do=0A=
ssllibdir=3D"$dir"=0A=
- if test -f "$dir/libssl.so"; then=0A=
+ if test -f "$dir/libssl.so" || test -f "$dir/libssl.a"; then=0A=
found_ssl=3Dyes=0A=
break=0A=
fi=0A=
diff -Naur nrpe-2.12.orig/include/config.h.in =
nrpe-2.12/include/config.h.in=0A=
--- nrpe-2.12
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]