RE: [ossec-list] bf_locl.h:69:55: error: openssl/opensslconf.h: No such file or directory

655 views
Skip to first unread message

Lauren Malhoit

unread,
Dec 3, 2010, 1:44:08 PM12/3/10
to ossec...@googlegroups.com
I'm loading more agents on other devices and everything has been working
fine. I've run into one issue on one linux server, though. After I run
install.sh I get the following:
*** Making os_crypto ***

make[1]: Entering directory `/ossec-hids-2.5/src/os_crypto'
make[2]: Entering directory `/ossec-hids-2.5/src/os_crypto/blowfish'
gcc -g -Wall -I../../ -I../../headers -DDEFAULTDIR=\"/var/ossec\"
-DCLIENT -DUSE_OPENSSL -DUSEINOTIFY -DARGV0=\"blowfish_op\"
-DXML_VAR=\"var\" -DOSSECHIDS -c bf_op.c bf_skey.c bf_enc.c
In file included from bf_skey.c:62:
bf_locl.h:69:55: error: openssl/opensslconf.h: No such file or directory
In file included from bf_enc.c:60:
bf_locl.h:69:55: error: openssl/opensslconf.h: No such file or directory
make[2]: *** [bf] Error 1
make[2]: Leaving directory `/ossec-hids-2.5/src/os_crypto/blowfish'
make[1]: *** [os_crypto] Error 2
make[1]: Leaving directory `/ossec-hids-2.5/src/os_crypto'

I read in a previous post that I should just be able to remove the
USE_OPENSSL section but I searched through the install.sh file and didn't
see any reference. Any suggestions?

Thanks,


--
Lauren Malhoit
IASTA - Network Engineer
+1.317.663.6263 (direct)
+1.317.594.8600 (main)
Blog: www.esourcingforum.com
Wiki: www.esourcingwiki.com

dan (ddp)

unread,
Dec 3, 2010, 2:27:19 PM12/3/10
to ossec...@googlegroups.com
On Fri, Dec 3, 2010 at 1:44 PM, Lauren Malhoit <lauren....@iasta.com> wrote:
> I'm loading more agents on other devices and everything has been working
> fine.  I've run into one issue on one linux server, though.  After I run
> install.sh I get the following:
> *** Making os_crypto ***
>
> make[1]: Entering directory `/ossec-hids-2.5/src/os_crypto'
> make[2]: Entering directory `/ossec-hids-2.5/src/os_crypto/blowfish'
> gcc -g -Wall -I../../ -I../../headers  -DDEFAULTDIR=\"/var/ossec\"
> -DCLIENT -DUSE_OPENSSL -DUSEINOTIFY    -DARGV0=\"blowfish_op\"
> -DXML_VAR=\"var\" -DOSSECHIDS -c bf_op.c bf_skey.c bf_enc.c
> In file included from bf_skey.c:62:
> bf_locl.h:69:55: error: openssl/opensslconf.h: No such file or directory
> In file included from bf_enc.c:60:
> bf_locl.h:69:55: error: openssl/opensslconf.h: No such file or directory
> make[2]: *** [bf] Error 1
> make[2]: Leaving directory `/ossec-hids-2.5/src/os_crypto/blowfish'
> make[1]: *** [os_crypto] Error 2
> make[1]: Leaving directory `/ossec-hids-2.5/src/os_crypto'
>
>

What distro/version?
I'm guessing that if you add the openssl/openssl development packages
this might go away.

>
> I read in a previous post that I should just be able to remove the
> USE_OPENSSL section but I searched through the install.sh file and didn't
> see any reference.  Any suggestions?
>

I don't know anything about this, and I can't check on the exact
location at the moment. I'd guess src/Config.Make.

Lauren Malhoit

unread,
Dec 3, 2010, 2:48:15 PM12/3/10
to ossec...@googlegroups.com
Thanks for your help! I get passed making os_crypto now, but get stopped
later making agentlessd

*** Making agentlessd ***

make[1]: Entering directory `/ossec-hids-2.5/src/agentlessd'
gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" -DCLIENT
-DUSE_OPENSSL -DUSEINOTIFY -DARGV0=\"ossec-agentlessd\"
-DXML_VAR=\"var\" -DOSSECHIDS *.c ../config/lib_config.a
../shared/lib_shared.a ../os_net/os_net.a ../os_regex/os_regex.a
../os_xml/os_xml.a -o ossec-agentlessd
/tmp/ccqsMLFS.o: In function `check_diff_file':
/ossec-hids-2.5/src/agentlessd/agentlessd.c:218: undefined reference to
`OS_MD5_File'
/ossec-hids-2.5/src/agentlessd/agentlessd.c:228: undefined reference to
`OS_MD5_File'
collect2: ld returned 1 exit status
make[1]: *** [magentless] Error 1
make[1]: Leaving directory `/ossec-hids-2.5/src/agentlessd'

Error Making agentlessd
make: *** [all] Error 1

Error 0x5.
Building error. Unable to finish the installation.


I installed the openssl development packages to fix the previous issue...I
can't find anything on this new issue. I'm guessing it's related somehow
as it mentions MD5.

--
Lauren Malhoit
IASTA � Network Engineer

dan (ddp)

unread,
Dec 8, 2010, 10:27:50 AM12/8/10
to ossec...@googlegroups.com

What OS/distro/version are you using?
What version of OSSEC is that? It looks like 2.5. If so, try 2.5.1 or
the latest snapshot.
Try deleting the source and untarring it again. Start with a clean slate.

Lauren Malhoit

unread,
Dec 8, 2010, 11:30:31 AM12/8/10
to ossec...@googlegroups.com
Can I use 2.5.1 as the agent if my server install is 2.5?

It's redhat 5 32-bit.

dan (ddp)

unread,
Dec 8, 2010, 11:33:05 AM12/8/10
to ossec...@googlegroups.com
On Wed, Dec 8, 2010 at 11:30 AM, Lauren Malhoit
<lauren....@iasta.com> wrote:
> Can I use 2.5.1 as the agent if my server install is 2.5?
>

You should really upgrade them all... Might work though.

> It's redhat 5 32-bit.
>

That should definitely work...

Lauren Malhoit

unread,
Dec 8, 2010, 11:52:46 AM12/8/10
to ossec...@googlegroups.com
2.5.1 worked...thanks for your help!


--
Lauren Malhoit
IASTA � Network Engineer
+1.317.663.6263 (direct)
+1.317.594.8600 (main)
Blog: www.esourcingforum.com
Wiki: www.esourcingwiki.com

-----Original Message-----
From: ossec...@googlegroups.com [mailto:ossec...@googlegroups.com] On
Behalf Of dan (ddp)

Sent: Wednesday, December 08, 2010 10:28 AM

Reply all
Reply to author
Forward
0 new messages