It looked like the problem was with the openssl include, not OSSEC:

>/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory

So on line 72(?) of /usr/include/openssl/kssl.h there should be an
'#include <krb5.h>' that is wrong.

On Wed, Jan 11, 2012 at 4:38 PM, Swartz, Patrick H
<patrick.swa...@firstdata.com> wrote:
> Update.. that Kerberos header is under -- /usr/kerberos/include/krb5.h ...
> Is this just a matter of telling the ossec compile where to look? If so, how 
> do I do that?
>
> Thanks!
>
> Patrick Swartz
>
>
> -----Original Message-----
> From: ossec-list@googlegroups.com [mailto:ossec-list@googlegroups.com] On 
> Behalf Of Swartz, Patrick H
> Sent: Wednesday, January 11, 2012 3:34 PM
> To: ossec-list@googlegroups.com
> Subject: RE: [ossec-list] 2.6 compile error on RHEL3u9
>
> Hi Dan,
> Thanks for the quick reply..
> Here is what is installed on the build server:
>
> rpm -qa|grep krb5
> krb5-workstation-1.2.7-64
> krb5-devel-1.2.7-64
> krb5-libs-1.2.7-64
> pam_krb5-1.79-1
>
> But, I don't see any krb5 headers like yours under /usr/include.
>
> Patrick Swartz
>
>
>
> -----Original Message-----
> From: ossec-list@googlegroups.com [mailto:ossec-list@googlegroups.com] On 
> Behalf Of dan (ddp)
> Sent: Wednesday, January 11, 2012 3:17 PM
> To: ossec-list@googlegroups.com
> Subject: Re: [ossec-list] 2.6 compile error on RHEL3u9
>
> On Wed, Jan 11, 2012 at 3:34 PM, Swartz, Patrick H
> <patrick.swa...@firstdata.com> wrote:
>>
>>   Hi All,
>>   I'm need to compile 2.6 on a RHEL3u9 server but it fails at the
>> os_auth phase. The following Openssl packages are installed --
>> openssl-0.9.7a-33.23, openssl096b-0.9.6b-16.46, and
>> openssl-devel-0.9.7a-33.23
>> We need the compile to be built with openssl.
>>
>> Here are the messages during the build:
>>
>>   *** Making os_auth ***
>>
>>   make[1]: Entering directory `/root/ossec-hids-2.6/src/os_auth'
>>   gcc -g -Wall -I../ -I../headers  -DDEFAULTDIR=\"/opt/ossec/\"
>> -DCLIENT -DUSE_OPENSSL     -DARGV0=\"ossec-authd\" -DXML_VAR=\"var\"
>> -DOSSECHIDS  main-server.c ssl.c  ../addagent/validate.c
>> ../config/lib_config.a ../shared/lib_shared.a ../os_net/os_net.a
>> ../os_regex/os_regex.a ../os_crypto/os_crypto.a ../os_zlib/os_zlib.c
>> ../external/libz.a -lssl -lcrypto -o ossec-authd
>>   In file included from /usr/include/openssl/ssl.h:179,
>>                    from auth.h:24,
>>                    from main-server.c:14:
>>   /usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
>
> My guess would be that the openssl devel package needs a kerberos
> package it didn't install.
>
> Maybe:
> [ddp@corrin include]$ rpm -qf /usr/include/krb5.h
> krb5-devel-1.6.1-62.el5
>
>
>>   In file included from /usr/include/openssl/ssl.h:179,
>>                    from auth.h:24,
>>                    from main-server.c:14:
>>   /usr/include/openssl/kssl.h:134: syntax error before "krb5_enctype"
>>   /usr/include/openssl/kssl.h:136: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:137: syntax error before '}' token
>>   /usr/include/openssl/kssl.h:149: syntax error before
>> "kssl_ctx_setstring"
>>   /usr/include/openssl/kssl.h:149: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:150: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:151: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:151: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:152: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:153: syntax error before
>> "kssl_ctx_setprinc"
>>   /usr/include/openssl/kssl.h:153: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:155: syntax error before "kssl_cget_tkt"
>>   /usr/include/openssl/kssl.h:155: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:157: syntax error before "kssl_sget_tkt"
>>   /usr/include/openssl/kssl.h:157: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:159: syntax error before
>> "kssl_ctx_setkey"
>>   /usr/include/openssl/kssl.h:159: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:161: syntax error before "context"
>>   /usr/include/openssl/kssl.h:162: syntax error before
>> "kssl_build_principal_2"
>>   /usr/include/openssl/kssl.h:162: syntax error before "context"
>>   /usr/include/openssl/kssl.h:165: syntax error before
>> "kssl_validate_times"
>>   /usr/include/openssl/kssl.h:165: syntax error before "atime"
>>   /usr/include/openssl/kssl.h:167: syntax error before
>> "kssl_check_authent"
>>   /usr/include/openssl/kssl.h:167: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:169: syntax error before "enctype"
>>   In file included from auth.h:24,
>>                    from main-server.c:14:
>>   /usr/include/openssl/ssl.h:909: syntax error before "KSSL_CTX"
>>   /usr/include/openssl/ssl.h:931: syntax error before '}' token
>>   In file included from /usr/include/openssl/ssl.h:179,
>>                    from auth.h:24,
>>                    from ssl.c:16:
>>   /usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
>>   In file included from /usr/include/openssl/ssl.h:179,
>>                    from auth.h:24,
>>                    from ssl.c:16:
>>   /usr/include/openssl/kssl.h:134: syntax error before "krb5_enctype"
>>   /usr/include/openssl/kssl.h:136: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:137: syntax error before '}' token
>>   /usr/include/openssl/kssl.h:149: syntax error before
>> "kssl_ctx_setstring"
>>   /usr/include/openssl/kssl.h:149: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:150: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:151: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:151: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:152: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:153: syntax error before
>> "kssl_ctx_setprinc"
>>   /usr/include/openssl/kssl.h:153: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:155: syntax error before "kssl_cget_tkt"
>>   /usr/include/openssl/kssl.h:155: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:157: syntax error before "kssl_sget_tkt"
>>   /usr/include/openssl/kssl.h:157: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:159: syntax error before
>> "kssl_ctx_setkey"
>>   /usr/include/openssl/kssl.h:159: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:161: syntax error before "context"
>>   /usr/include/openssl/kssl.h:162: syntax error before
>> "kssl_build_principal_2"
>>   /usr/include/openssl/kssl.h:162: syntax error before "context"
>>   /usr/include/openssl/kssl.h:165: syntax error before
>> "kssl_validate_times"
>>   /usr/include/openssl/kssl.h:165: syntax error before "atime"
>>   /usr/include/openssl/kssl.h:167: syntax error before
>> "kssl_check_authent"
>>   /usr/include/openssl/kssl.h:167: syntax error before '*' token
>>   /usr/include/openssl/kssl.h:169: syntax error before "enctype"
>>   In file included from auth.h:24,
>>                    from ssl.c:16:
>>   /usr/include/openssl/ssl.h:909: syntax error before "KSSL_CTX"
>>   /usr/include/openssl/ssl.h:931: syntax error before '}' token
>>   make[1]: *** [auth1] Error 1
>>   make[1]: Leaving directory `/root/ossec-hids-2.6/src/os_auth'
>>
>>   Error Making os_auth
>>   make: *** [all] Error 1
>>
>>    Error 0x5.
>>    Building error. Unable to finish the installation.
>>
>> Thanks for your help!!
>>
>> Patrick Swartz
>>
>>
>>
>>
>> -----------------------------------------
>> The information in this message may be proprietary and/or
>> confidential, and protected from disclosure.  If the reader of this
>> message is not the intended recipient, or an employee or agent
>> responsible for delivering this message to the intended recipient,
>> you are hereby notified that any dissemination, distribution or
>> copying of this communication is strictly prohibited. If you have
>> received this communication in error, please notify First Data
>> immediately by replying to this message and deleting it from your
>> computer.

Reply via email to