new bro "CURRENT" release - 0.8a48 COMPILATION

Ruoming Pang rpang at CS.Princeton.EDU
Fri Oct 24 22:27:58 PDT 2003


I met the same problem with RH9. The short answer is "krb5.h" is in
/usr/kerberos/include and therefore is not found in standard include path.
More details are discussed at:
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=82

You can either add /usr/kerberos/include to the include path, or apply
the following patch and run autoconf before running ./configure:

*** bro-pub-0.8a48/configure.ac 2003-10-16 14:17:12.000000000 -0400
--- bro/configure.ac    2003-10-25 01:07:07.000000000 -0400
***************
*** 62,67 ****
--- 62,73 ----
        with_openssl="No"
        )

+ if test "$with_openssl" != "No"; then
+    openssl_incl=`pkg-config --cflags openssl`
+    echo "OpenSSL CFLAGS: ${openssl_incl}"
+    V_INCLS="${V_INCLS} ${openssl_incl}"
+ fi
+
  case "$target_os" in

  linux*)

-Ruoming

On Wed, 22 Oct 2003, Anton Chuvakin, Ph.D. wrote:

> All,
>
> Trying to compile 0.48 -> getting weird errors.
>
> system: Linux RH 9 Intel
>
> A.  Default
> ===========
>
> 1. ./configure
> results in:  everything seems OK, it says
> ------------------------
> ...
> config.status: config.h is unchanged
>
> Compiling Bro with OpenSSL support: Yes
> ------------------------
> 2. make
> results in: errors
> ------------------------
> /usr/include/openssl/kssl.h:134: 'krb5_enctype' is used as a type, but is
> not
>    defined as a type.
> /usr/include/openssl/kssl.h:136: syntax error before `*' token
> /usr/include/openssl/kssl.h:149: parse error before `*' token
> /usr/include/openssl/kssl.h:153: parse error before `*' token
> /usr/include/openssl/kssl.h:155: parse error before `*' token
> /usr/include/openssl/kssl.h:157: parse error before `*' token
> /usr/include/openssl/kssl.h:159: parse error before `*' token
> /usr/include/openssl/kssl.h:161: `krb5_context' was not declared in this
> scope
> /usr/include/openssl/kssl.h:161: parse error before `,' token
> /usr/include/openssl/kssl.h:162: `krb5_context' was not declared in this
> scope
> /usr/include/openssl/kssl.h:162: parse error before `,' token
> /usr/include/openssl/kssl.h:165: `krb5_timestamp' was not declared in this
>    scope
> /usr/include/openssl/kssl.h:165: parse error before `,' token
> /usr/include/openssl/kssl.h:167: parse error before `*' token
> /usr/include/openssl/kssl.h:169: `krb5_enctype' was not declared in this
> scope
> /usr/include/openssl/kssl.h:169: parse error before `,' token
> make: *** [main.o] Error 1
> ------------------------
>
> B. Seeing the above and trying to recover by disabling ssl
> ==========================================================
>
> 1. ./configure --without-openssl
> results in:
> everything seems OK, it says
> ------------------------
> ...
> config.status: config.h is unchanged
>
> Compiling Bro with OpenSSL support: Yes (no)
> ------------------------
>
> 2. make
> results in: same errors!
> ------------------------
> /usr/include/openssl/kssl.h:134: 'krb5_enctype' is used as a type, but is
> not
>    defined as a type.
> /usr/include/openssl/kssl.h:136: syntax error before `*' token
> /usr/include/openssl/kssl.h:149: parse error before `*' token
> /usr/include/openssl/kssl.h:153: parse error before `*' token
> /usr/include/openssl/kssl.h:155: parse error before `*' token
> /usr/include/openssl/kssl.h:157: parse error before `*' token
> /usr/include/openssl/kssl.h:159: parse error before `*' token
> /usr/include/openssl/kssl.h:161: `krb5_context' was not declared in this
> scope
> /usr/include/openssl/kssl.h:161: parse error before `,' token
> /usr/include/openssl/kssl.h:162: `krb5_context' was not declared in this
> scope
> /usr/include/openssl/kssl.h:162: parse error before `,' token
> /usr/include/openssl/kssl.h:165: `krb5_timestamp' was not declared in this
>    scope
> /usr/include/openssl/kssl.h:165: parse error before `,' token
> /usr/include/openssl/kssl.h:167: parse error before `*' token
> /usr/include/openssl/kssl.h:169: `krb5_enctype' was not declared in this
> scope
> /usr/include/openssl/kssl.h:169: parse error before `,' token
> make: *** [main.o] Error 1
> ------------------------
>
> Ideas?
>
>
> --
> Anton Chuvakin, Ph.D., GCIA, GCIH
> Senior Security Analyst
> Product Management Group
> netForensics -  http://www.netForensics.com
> 732-393-6071
>



More information about the Bro mailing list