Needs to be in LIBPATH and/or LD_LIB_PATH, and the make process may also need 
to know where to look so it can set -L .

Solaris is a PITA to build packages on. It got so bad that I ditched it and am 
using Linux flavors. YMMV but I'll be so glad when we can turn off our last 
Solaris system.

-- 
Shane Castle
Data Security Mgr, Boulder County IT
CISSP GSEC GCIH


-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Sherman Butler
Sent: Monday, October 24, 2011 10:40
To: [email protected]
Subject: Re: [ossec-list] RE: Problem compiling OSSEC 2.5.1 on Solaris Sparc

Yes openssl is installed and yes it is in the path.

-bash-3.00# which openssl
/opt/csw/bin/openssl

-bash-3.00# env
HZ=
SHELL=/bin/bash
TERM=vt100
CATALINA_HOME=/tomcat
LC_ALL=C
JRE_HOME=/usr/java/jre
MAIL=/var/mail/root
PATH=/opt/csw/bin:/usr/sbin:/usr/bin
PWD=/var/tmp/junk/ossec-hids
LANG=en_US.UTF-8
TZ=US/Pacific
SHLVL=1
HOME=/
LOGNAME=root
_=/usr/bin/env
OLDPWD=/var/tmp/junk

Where should those library file be located and maybe I can track down where 
they actually are and link them

Sherman Butler

From: "Culver, Michael" <[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Mon, 24 Oct 2011 09:10:19 -0700
To: "[email protected]" <[email protected]>
Subject: [ossec-list] RE: Problem compiling OSSEC 2.5.1 on Solaris Sparc



        Have you installed openssl? If so is it in your path?

         

        From: [email protected] [mailto:[email protected]] 
On Behalf Of Sherman Butler
        Sent: Monday, October 24, 2011 11:18 AM
        To: [email protected]
        Subject: [ossec-list] Problem compiling OSSEC 2.5.1 on Solaris Sparc

         

        I'm trying to compile a version of 2.5.1 on Solaris 10 Sparc and I'm 
having trouble with the OS_Auth module.  It's failing with a couple of fatal 
library not found errors.  

         

        Version is ossec-hids-43e8b41a8195.tar

        SunOS eciddev08 5.10 Generic_142900-02 sun4u sparc SUNW,Netra-210 
Solaris

                              Solaris 10 10/09 s10s_u8wos_08a SPARC

                   Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.

                                Use is subject to license terms.

                                   Assembled 16 September 2009

         

        Below is the failure section.   And attached is the complete build 
output.

         

         *** Making os_auth *** 

         

        make[1]: Entering directory `/var/tmp/junk/ossec-hids/src/os_auth'

        gcc -g -Wall -I../ -I../headers  -DDEFAULTDIR=\"/var/opsossec\" 
-DCLIENT  -DSOLARIS -DHIGHFIRST    -DARGV0=\"ossec-authd\" -DXML_VAR=\"var\" 
-DOSSECHIDS -lsocket -lnsl -lresolv 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

        ld: fatal: library -lssl: not found

        ld: fatal: library -lcrypto: not found

        ld: fatal: File processing errors. No output written to ossec-authd

        collect2: ld returned 1 exit status

        make[1]: *** [auth1] Error 1

        make[1]: Leaving directory `/var/tmp/junk/ossec-hids/src/os_auth'

         

        Error Making os_auth

        make: *** [all] Error 1

         

         Error 0x5.

         Building error. Unable to finish the installation.

         

         

        Thanks for any help resolving this.

         

        Sherman Butler

Reply via email to