[Nagiosplug-devel] [ nagiosplug-Patches-686476 ] pre compiler barfs on include path for system openssl

SourceForge.net noreply at sourceforge.net
Thu Nov 18 14:50:05 CET 2004


Patches item #686476, was opened at 2003-02-14 10:55
Message generated for change (Settings changed) made by tonvoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=686476&group_id=29880

Category: Bugfix
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Lutz Behnke (cypherfox)
>Assigned to: Ton Voon (tonvoon)
Summary: pre compiler barfs on include path for system openssl

Initial Comment:
On Linux, the cpp prints a warning to stderr if a
system include path is reset on the command line. The
configure script takes this to mean that an error
occored. The following patch checks if defining a new
'-I' for the openssl include path is nessecary (it is
not if openssl was installed as part of the system as
for SuSE.

mfg lutz

--- nagios-plugins-1.3.0-beta2/configure.in    
2002-11-22 03:46:49.000000000 +0100
+++ src/nagios-plugins-1.3.0-beta2/configure.in
2003-02-14 11:34:38.000000000 +0100
@@ -222,7 +222,10 @@
 dnl Check for OpenSSL header files
 _SAVEDCPPFLAGS="$CPPFLAGS"
 FOUNDINCLUDE=yes
-CPPFLAGS="-I$OPENSSL/include"
+if test "$OPENSSL" != "/usr" ; then
+  CPPFLAGS="-I$OPENSSL/include"
+fi
+
 AC_CHECK_HEADERS(openssl/x509.h openssl/ssl.h
openssl/rsa.h openssl/pem.h openssl/crypto.h
openssl/err.h,SSLINCLUDE="-I$OPENSSL/include",FOUNDINCLUDE=no)
 if test "$FOUNDINCLUDE" = "no"; then
   FOUNDINCLUDE=yes


----------------------------------------------------------------------

>Comment By: Ton Voon (tonvoon)
Date: 2004-11-18 22:49

Message:
Logged In: YES 
user_id=664364

Lutz,

Thanks for the patch. Applied to CVS.

Can you please attach patches in future as the format of your patch has 
been amended by SF's web pages.

Ton

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=686476&group_id=29880




More information about the Devel mailing list