Do you have openssl development libraries installed? The openssl thing you mention at the bottom looks like it's actually openssh.
On Thu, Apr 19, 2012 at 12:51 PM, InfoSecGeek <[email protected]> wrote: > I'm having trouble compiling an OSSEC agent on AIX (5.3). > > Initially, there was an error "making shared" with the headers. Compiling > the latest gcc from source seemed to solve this issue. > However, the install now fails at making os_auth: > > *** Making os_auth *** > > gcc -g -Wall -I../ -I../headers -DDEFAULTDIR=\"/var/ossec\" > -DCLIENT -DUSE_OPENSSL -DAIX -DHIGHFIRST -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 > main-server.c: In function 'main': > main-server.c:39:11: warning: variable 'cfg' set but not used > [-Wunused-but-set-variable] > ld: 0711-317 ERROR: Undefined symbol: .OpenSSL_add_all_algorithms > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more > information. > collect2: ld returned 8 exit status > make: 1254-004 The error code from the last command is 1. > > > Stop. > > Error Making os_auth > make: 1254-004 The error code from the last command is 1. > > > Stop. > > Error 0x5. > Building error. Unable to finish the installation. > > > Here is some additional information: > > Related rpm's installed: > > gcc-cpp-4.6.3-2 > libgcc-4.6.3-2 > bash-4.2-5 > expat-2.0.1-3 > AIX-rpm-5.3.12.1-3 > libffi-3.0.10-1 > glib2-2.30.3-1 > gettext-0.17-1 > info-4.13a-2 > gmp-4.3.2-2 > mpfr-2.4.2-2 > libmpc-0.8.2-1 > gcc-4.6.3-2 > libgomp-4.6.3-2 > libstdc++-4.6.3-2 > libstdc++-devel-4.6.3-2 > gcc-gfortran-4.6.3-2 > gcc-c++-4.6.3-2 > > gcc -v > > Using built-in specs. > COLLECT_GCC=gcc > COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.6.3/lto-wrapper > Target: powerpc-ibm-aix5.3.0.0 > Configured with: ../gcc-4.6.3/configure --with-as=/usr/bin/as > --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran > --prefix=/opt/freeware --mandir=/opt/freeware/man > --infodir=/opt/freeware/info --enable-threads > --enable-version-specific-runtime-libs --disable-nls > --enable-decimal-float=dpd --host=powerpc-ibm-aix5.3.0.0 Thread model: aix > gcc version 4.6.3 (GCC) > > rpm -qa|grep -I openssl > > freeware.openssl.rte 0.9.6.12 COMMITTED Openssl 0.9.6l (0.9.6.12) > openssl.base 0.9.8.1801 COMMITTED Open Secure Socket Layer > openssl.license 0.9.8.1801 COMMITTED Open Secure Socket License > openssl.man.en_US 0.9.8.1801 COMMITTED Open Secure Socket Layer > openssl.base 0.9.8.1801 COMMITTED Open Secure Socket Layer > > openssl version > > OpenSSH_5.8p1, OpenSSL 0.9.8r 8 Feb 2011 > > > Anyone come across this issue or have any suggestions? > > Thanks!
