Discussion:
Compiling openSSL on AIX 5.2
(too old to reply)
HeadAIX
2005-04-27 23:07:14 UTC
Permalink
I've unsuccessful in my attempts to find precompiled binaries of the
new openSSH (4.0) and openSSL (0.9.7g) releases. (Does anyone know if
there are any, anywhere? If so, forget the rest of this message and
let me know, please.)

Since I couldn't find them, I downloaded the source and I tried to
compile with gcc 3.3.2 on AIX 5.2.0.2. Unfortunately, the compile of
openSSL hangs up on the module asm/aix_ppc32.s. No errors, it just
hangs. Has anyone been able to compile this, or does anyone have any
ideas what might be the problem?

Thanks,
Steve
Jimbo
2005-04-29 01:03:20 UTC
Permalink
Steve,

OpenSSH binaries:
http://sourceforge.net/projects/openssh-aix

OpenSSL binaries:
http://sourceforge.net/forum/forum.php?forum_id=447672


-James
HeadAIX
2005-04-29 14:09:28 UTC
Permalink
Post by Jimbo
Steve,
http://sourceforge.net/projects/openssh-aix
http://sourceforge.net/forum/forum.php?forum_id=447672
-James
James,

I had already checked the IBM/Sourceforge site, hoping to find openSSH
4.0, but the latest version available there is still 3.8. The openSSL
binaries are 0.9.7d, but probably ought to work.

Thanks,
Steve
Darren Tucker
2005-05-03 08:57:10 UTC
Permalink
Post by HeadAIX
I've unsuccessful in my attempts to find precompiled binaries of the
new openSSH (4.0) and openSSL (0.9.7g) releases. (Does anyone know if
there are any, anywhere? If so, forget the rest of this message and
let me know, please.)
Well, for OpenSSH, there's mine (there's no separate OpenSSL package,
the bits required by ssh are linked in):
http://www.zip.com.au/~dtucker/openssh/#aixbff

Disclaimer: if possible you should build them yourself instead (a after
verifying the signatures on the tarball).

Can't help with the openssl build problem, though.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
Greg
2005-05-04 12:59:28 UTC
Permalink
I had compiler problems (gcc) under ML2, finally went to ML4 and was
able to compile. (Once I built on ML4, I had to install my 5.1 builds
for anything under 5.2 ML4) The 5.2 ML4 build runs fine on 5.3 for me,
your milage may vary..

At the time, there was also a bug in the makefile, which was
subsequently fixed in the latest snapshot (that was end of last year).
Post by Darren Tucker
Post by HeadAIX
I've unsuccessful in my attempts to find precompiled binaries of the
new openSSH (4.0) and openSSL (0.9.7g) releases. (Does anyone know if
there are any, anywhere? If so, forget the rest of this message and
let me know, please.)
Well, for OpenSSH, there's mine (there's no separate OpenSSL package,
http://www.zip.com.au/~dtucker/openssh/#aixbff
Disclaimer: if possible you should build them yourself instead (a after
verifying the signatures on the tarball).
Can't help with the openssl build problem, though.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the
experience
Post by Darren Tucker
usually comes from bad judgement.
HeadAIX
2005-05-06 18:23:24 UTC
Permalink
Since I have a mixed 5.1/5.2 farm (no 5.3 yet), it's probably easier to
stick with the 5.1 builds. I picked up IBM's openSSL 0.9.7d build for
AIX 5.1, which Jimbo kindly pointed me to above. There are separate
RPMs for the binaries and for the headers and libraries which I have
successfully installed. However, now I'm trying to compile openSSH
4.0p1 and receiving the following error during the configure step:
configure:13828: error: *** Can't find recent OpenSSL libcrypto (see
config.log for details) ***

The config log is not much help, at least to me. What files can it not
find, and where can I get them? Or do I need to set a LIBPATH
(currently it is not set).

The IBM RPMs look like:
openssl-0.9.7d-2.aix5.1.ppc.rpm - Secure Sockets Layer and cryptography
libraries and tools
openssl-devel-0.9.7d-2.aix5.1.ppc.rpm - Secure Sockets Layer and
cryptography static libraries and headers

There is another RPM which I did not load. Maybe that's the problem?
openssl-doc-0.9.7d-2.aix5.1.ppc.rpm - OpenSSL miscellaneous files

Any help would be appreciated.
Thanks,
Steve
Darren Tucker
2005-05-07 07:25:38 UTC
Permalink
Post by HeadAIX
Since I have a mixed 5.1/5.2 farm (no 5.3 yet), it's probably easier to
stick with the 5.1 builds. I picked up IBM's openSSL 0.9.7d build for
AIX 5.1, which Jimbo kindly pointed me to above. There are separate
RPMs for the binaries and for the headers and libraries which I have
successfully installed. However, now I'm trying to compile openSSH
configure:13828: error: *** Can't find recent OpenSSL libcrypto (see
config.log for details) ***
You need to tell configure where to find OpenSSL, eg:
blibpath=/lib:/usr/lib:/opt/freeware/lib \
./configure --with-ssl-dir=/opt/freeware
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
HeadAIX
2005-05-09 20:03:36 UTC
Permalink
Darren,

Still no good. It looks (to me) like the files are there, in
/opt/freeware (/include) and /opt/freeware/lib. I inserted a set -x in
the configure script just before this step. Here is the output:
+ saved_CPPFLAGS=
+ saved_LDFLAGS=
+ test set = set
+ withval=/opt/freeware
+ test x/opt/freeware != xno
+ test -d /opt/freeware/lib
+ test -n
+ LDFLAGS=-L/opt/freeware/lib
+ test -d /opt/freeware/include
+ CPPFLAGS=-I/opt/freeware/include
+ LIBS=-lcrypto -lz
+ cat
+ 1> conftest.c 0< /tmp/sh16030.40879
+ cat confdefs.h
+ 1>> conftest.c
+ cat
+ 1>> conftest.c 0< /tmp/sh16030.40881
+ rm -f conftest.o conftest
+ 1>& 5
+ eval echo configure:13741: "$CC -o conftest$ac_exeext $CFLAGS
$CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5"
+ echo configure:13741: gcc -o conftest -g -O2 -Wall -Wpointer-arith
-Wno-uninitialized -I/opt/freeware/include -L/opt/freeware/lib
conftest.c -lcrypto -lz >&5
+ 2> conftest.er1
+ ac_status=1
+ grep -v ^ *+ conftest.er1
+ 1> conftest.err
+ rm -f conftest.er1
+ cat conftest.err
+ 1>& 5
+ echo configure:13747: $? = 1
+ 1>& 5
+ exit 1

I'm afraid I'm stumped. Can you tell me exactly which files it's
looking for? As I said earlier, I'm using IBM's openSSL RPMs, so they
may squirrel things away where no sane person would expect!

Thanks,
Steve
HeadAIX
2005-05-11 15:21:59 UTC
Permalink
OK, I think I've figured out how to read the config.log file. The
configure script does appear to be finding the libcrypto.a file, but
reporting an error:

configure:13741: gcc -o conftest -g -O2 -Wall -Wpointer-arith
-Wno-uninitialized -I/opt/freeware/include -L/opt/freeware/lib
conftest.c -lcrypto -lz >&5
collect2: /opt/freeware/lib/libcrypto.a: not a COFF file

So... what is a COFF file, and why is this not one? As I've said, I
installed IBM's RPM version of openSSL 0.9.7d because I can't get the
0.9.7g source to compile.

Thanks,
Steve
Jon
2005-05-11 17:30:16 UTC
Permalink
Post by HeadAIX
OK, I think I've figured out how to read the config.log file. The
configure script does appear to be finding the libcrypto.a file, but
configure:13741: gcc -o conftest -g -O2 -Wall -Wpointer-arith
-Wno-uninitialized -I/opt/freeware/include -L/opt/freeware/lib
conftest.c -lcrypto -lz >&5
collect2: /opt/freeware/lib/libcrypto.a: not a COFF file
So... what is a COFF file, and why is this not one? As I've said, I
installed IBM's RPM version of openSSL 0.9.7d because I can't get the
0.9.7g source to compile.
I'm not really sure either. It stands for Common Object File Format, IIRC,
but although the words are recognizable as English, I have no idea what they
mean when strung together like that.

I found on my 5.1 box that Gnu's ar program was throwing this error. If I
renamed it out of the way and used the AIX version instead, things worked
properly. Why this is so... No idea. I guess people must not use GNU tools
much on AIX as noone here or the MySQL list seems to have any idea why
mysql-4.1.x won't compile on 5.1. Even the MySQL folks tell me they use the
IBM compiler for their prebuilt binary pkgs.

Good luck!

Jon
Gary R. Hook
2005-05-18 15:49:15 UTC
Permalink
Post by HeadAIX
OK, I think I've figured out how to read the config.log file. The
configure script does appear to be finding the libcrypto.a file, but
configure:13741: gcc -o conftest -g -O2 -Wall -Wpointer-arith
-Wno-uninitialized -I/opt/freeware/include -L/opt/freeware/lib
conftest.c -lcrypto -lz >&5
collect2: /opt/freeware/lib/libcrypto.a: not a COFF file
So... what is a COFF file, and why is this not one?
Older versions of collect2 don't understand the large archive
format introduced in AIX 4.3. Check the type of file by running
"file /opt/freeware/lib/libcrypto.a"

If it's large, you can either reconstruct the archive with the
ar command (check the docs for the proper option; I think it's -g)
or you can get a more current version of gcc.
--
Gary R. Hook
________________________________________________________________________
Vocatus atque non vocatus deus aderit
j***@yahoo.com
2005-05-13 16:19:34 UTC
Permalink
I experienced the same problem when attempting to compile OpenSSL
0.9.7g and 0.9.7f (GCC 3.3.2 on AIX 5.1 and AIX's make).

An attempt to compile 0.9.7e failed with a series of complaints about
syntactically incorrect "if" statements in various header files.

As I type, the compilation of 0.9.7d has just completed successfully.

Sorry I can't help, but at least you're not alone.
Loading...