I can confirm the same. I have an old dev box running RHEL 3u8 and adding that line fixed the compile issue on OSSEC 2.7 src too.
vi Config.Make CFLAGS = -g -Wall -I${PT} -I${PT}headers ${CPATH} ${CEXTRA} ${DEXTRA} ${EEXTRA} ${FEXTRA} ${GEXTRA} ${HEXTRA} ${CGEOIP} -DARGV0=\"${NAME}\" -DXML_VAR=\"var\" -DOSSECHIDS -I/usr/kerberos/include On Wednesday, January 11, 2012 2:58:22 PM UTC-8, Swartz, Patrick H wrote: > > Hi Dan, > Adding the "-I..." did the trick!! Couldn't get the patch to work, but not > an issue since adding the line worked. > Just wanted to post results for future readers... > Thanks again! > > Patrick Swartz > > -----Original Message----- > From: ossec...@googlegroups.com <javascript:> [mailto: > ossec...@googlegroups.com <javascript:>] On Behalf Of dan (ddp) > Sent: Wednesday, January 11, 2012 4:23 PM > To: ossec...@googlegroups.com <javascript:> > Subject: Re: [ossec-list] 2.6 compile error on RHEL3u9 > > Copy it to a text file on the linux system. Change into the src > directory (/home/patrick/ossec-hids-2.6/src or whatever) and run: > patch < /path/to/text/file > > That should work. If not, just add "-I/usr/kerberos/include " to the > CFLAGS line and give it a shot. > > On Wed, Jan 11, 2012 at 5:17 PM, Swartz, Patrick H > <patrick...@firstdata.com <javascript:>> wrote: > > Please forgive this noobie question.. how does one apply said diff? > > > > Patrick Swartz > > > > > > -----Original Message----- > > From: ossec...@googlegroups.com <javascript:> [mailto: > ossec...@googlegroups.com <javascript:>] On Behalf Of dan (ddp) > > Sent: Wednesday, January 11, 2012 3:59 PM > > To: ossec...@googlegroups.com <javascript:> > > Subject: Re: [ossec-list] 2.6 compile error on RHEL3u9 > > > > Actually, you can try this diff (no promises ;)): > > > > --- Config.Make.orig Wed Jan 11 16:58:30 2012 > > +++ Config.Make Wed Jan 11 16:58:39 2012 > > @@ -8,7 +8,7 @@ > > include ${PT}Config.OS > > > > > > -CFLAGS = -g -Wall -I${PT} -I${PT}headers ${CPATH} ${CEXTRA} ${DEXTRA} > > ${EEXTRA} ${FEXTRA} ${GEXTRA} ${HEXTRA} -DARGV0=\"${NAME}\" > > -DXML_VAR=\"var\" -DOSSECHIDS > > +CFLAGS = -g -Wall -I${PT} -I${PT}headers -I/usr/kerberos/include > > ${CPATH} ${CEXTRA} ${DEXTRA} ${EEXTRA} ${FEXTRA} ${GEXTRA} ${HEXTRA} > > -DARGV0=\"${NAME}\" -DXML_VAR=\"var\" -DOSSECHIDS > > > > SOURCES = *.c > > OBJECTS = *.o > > > > > > On Wed, Jan 11, 2012 at 4:38 PM, Swartz, Patrick H > > <patrick...@firstdata.com <javascript:>> 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...@googlegroups.com <javascript:> [mailto: > ossec...@googlegroups.com <javascript:>] On Behalf Of Swartz, Patrick H > >> Sent: Wednesday, January 11, 2012 3:34 PM > >> To: ossec...@googlegroups.com <javascript:> > >> 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...@googlegroups.com <javascript:> [mailto: > ossec...@googlegroups.com <javascript:>] On Behalf Of dan (ddp) > >> Sent: Wednesday, January 11, 2012 3:17 PM > >> To: ossec...@googlegroups.com <javascript:> > >> Subject: Re: [ossec-list] 2.6 compile error on RHEL3u9 > >> > >> On Wed, Jan 11, 2012 at 3:34 PM, Swartz, Patrick H > >> <patrick...@firstdata.com <javascript:>> 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. > > > > ----------------------------------------- > > 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. > > -- --- You received this message because you are subscribed to the Google Groups "ossec-list" group. To unsubscribe from this group and stop receiving emails from it, send an email to ossec-list+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.