[Snort-devel] [fygrave at ...64...: [snort-cvs] CVS: snort Makefile.in,1.17,1.18 checksum.h,1.1,1.2 config.h.in,1.15,1.16 decode.h,1.5,1.6 plugbase.h,1.12,1.13 rules.c,1.12,1.13 snort.c,1.21,1.22 snort.h,1.9,1.10 sp_pattern_match.h,1.4,1.5 spo_xml.h,1.4,1.5]

Fyodor fygrave at ...1...
Mon Oct 30 04:39:11 EST 2000


There're some name-space problems with openssl library. Any thoughts how
to fix that properly? I've done some glitchy hacks to undef offensive macroses but it's
more a hack than a solution, any other ideas? Maybe we should complain about it
to openssl dudes or something? :) But from my last experience it doesn't help much
(once I was compiling apache with ssl_mod, perl_mod and some other modules, and ran
into similar thing, at that time openssl guys repsponded: 'no, it is perl-mod
guys problem', and I think I had the similar (but reversed) responce from perl
mailing list as well :)

----- Forwarded message from Fyodor Yarochkin <fygrave at ...64...> -----

From: Fyodor Yarochkin <fygrave at ...64...>
Date: Mon, 30 Oct 2000 01:21:22 -0800
To: snort-cvsinfo at lists.sourceforge.net
Subject: [snort-cvs] CVS: snort Makefile.in,1.17,1.18 checksum.h,1.1,1.2 config.h.in,1.15,1.16 decode.h,1.5,1.6 plugbase.h,1.12,1.13 rules.c,1.12,1.13 snort.c,1.21,1.22 snort.h,1.9,1.10 sp_pattern_match.h,1.4,1.5 spo_xml.h,1.4,1.5

[snip]

Index: plugbase.h
===================================================================
RCS file: /cvsroot/snort/snort/plugbase.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** plugbase.h	2000/10/29 06:35:12	1.12
--- plugbase.h	2000/10/30 09:21:19	1.13
***************
*** 58,64 ****
--- 60,80 ----
  
  #include <sys/ioctl.h>
+ 
  #ifndef OPENBSD
+ 
+ #ifdef ENABLE_SSL
+ #ifdef Free
+ /* Free macro in radix.h if defined, will conflict with OpenSSL definition */
+ #undef Free
+ #endif
+ #endif
+ 
  #include <net/route.h>
+ #ifdef ENABLE_SSL
+ #undef Free
+ #endif
+ 
  #endif
+ 
  #if defined(FREEBSD) || defined(OPENBSD) || defined(SOLARIS)
  #include <machine/param.h>


Index: spo_xml.h
===================================================================
RCS file: /cvsroot/snort/snort/spo_xml.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** spo_xml.h	2000/09/19 21:06:54	1.4
--- spo_xml.h	2000/10/30 09:21:19	1.5
***************
*** 27,30 ****
--- 27,34 ----
  
  #ifdef ENABLE_SSL
+ /* conflict with m_len definition in sys/mbuf.h */
+ #ifdef m_len
+ #undef m_len
+ #endif
  #include <openssl/crypto.h>
  #include <openssl/x509.h>




More information about the Snort-devel mailing list