Thread

Posted on Sun Sep 3 05:38:15 2006 by shorty56
Installing Crypt::SSLeay on AIX
I am trying to install Crypt::SSLeay on an AIX 5.2.2 system. I have never had any trouble installing on a Linux or Unix box but am pretty green at AIX. The errors I am getting from "make" are:
cc -c -I/usr/local/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qn +oansialias -DUSE_NATIV E_DLOPEN -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong -O -DVERSION=\"0.51\" -DXS_VERSION +=\"0.51\" "-I/usr/loc al/lib/perl5/5.8.7/aix/CORE" SSLeay.c 1506-173: (W) Option 32 is not valid. Enter xlc for list of valid options. 1506-173: (W) Option LONGLONG is not valid. Enter xlc for list of valid options. "/usr/include/stdlib.h", line 162.0: 1506-082 (W) The size of the long double type will be increasi +ng in a future release . Use double instead of long double to maintain upward binary compatibility. "/usr/include/sys/stat.h", line 222.2: 1506-046 (S) Syntax error. "/usr/include/sys/stat.h", line 234.2: 1506-046 (S) Syntax error. "/usr/include/sys/stat.h", line 245.2: 1506-046 (S) Syntax error. "/usr/include/sys/stat.h", line 248.2: 1506-046 (S) Syntax error. "/usr/include/sys/stat.h", line 251.2: 1506-046 (S) Syntax error. "/usr/include/sys/stat.h", line 254.2: 1506-046 (S) Syntax error. "/usr/include/netinet/in.h", line 302.1: 1506-045 (E) Undeclared identifier uint64_t. "/usr/include/netinet/in.h", line 302.10: 1506-046 (S) Syntax error. "/usr/include/netinet/in.h", line 303.1: 1506-045 (E) Undeclared identifier uint64_t. "/usr/include/netinet/in.h", line 303.10: 1506-046 (S) Syntax error. "/usr/include/sys/dir.h", line 183.2: 1506-046 (S) Syntax error. "/usr/local/lib/perl5/5.8.7/aix/CORE/proto.h", line 199.29: 1506-046 (S) Syntax error. "/usr/local/lib/perl5/5.8.7/aix/CORE/proto.h", line 201.2: 1506-045 (E) Undeclared identifier off64 +_t. "/usr/local/lib/perl5/5.8.7/aix/CORE/proto.h", line 201.10: 1506-046 (S) Syntax error. "/usr/local/lib/perl5/5.8.7/aix/CORE/proto.h", line 201.27: 1506-081 (S) Discarding previously defi +ned typedef identifier : GV "/usr/local/lib/perl5/5.8.7/aix/CORE/proto.h", line 201.43: 1506-046 (S) Syntax error. "/usr/local/lib/perl5/5.8.7/aix/CORE/proto.h", line 201.48: 1506-046 (S) Syntax error. "/usr/local/lib/perl5/5.8.7/aix/CORE/proto.h", line 201.58: 1506-046 (S) Syntax error. "/usr/local/lib/perl5/5.8.7/aix/CORE/proto.h", line 202.2: 1506-045 (E) Undeclared identifier off64 +_t. "/usr/local/lib/perl5/5.8.7/aix/CORE/proto.h", line 202.10: 1506-046 (S) Syntax error. "/usr/local/lib/perl5/5.8.7/aix/CORE/proto.h", line 202.24: 1506-081 (S) Discarding previously defi +ned typedef identifier : GV "/usr/local/lib/perl5/5.8.7/aix/CORE/proto.h", line 1308.2: 1506-045 (E) Undeclared identifier off6 +4_t. "/usr/local/lib/perl5/5.8.7/aix/CORE/proto.h", line 1308.10: 1506-046 (S) Syntax error. "/usr/local/lib/perl5/5.8.7/aix/CORE/proto.h", line 1308.28: 1506-081 (S) Discarding previously def +ined typedef identifie r: PerlIO "/usr/local/lib/perl5/5.8.7/aix/CORE/proto.h", line 1309.34: 1506-046 (S) Syntax error. "/usr/include/sys/capabilities.h", line 42.2: 1506-046 (S) Syntax error. "/usr/include/sys/cred.h", line 244.9: 1506-007 (S) Struct or union __cap_t is undefined. make: The error code from the last command is 1. Stop. #

I am totally at a lost. Any and all help is tremendously appreciated.
Thanks in advance
Greg
Direct Responses: 3003 | Write a response
Posted on Tue Sep 12 09:35:40 2006 by hmbrand in response to 2901
Re: Installing Crypt::SSLeay on AIX
Your (version of) cc (xlc) does not support the options that perl was built with
I see -q32 and -qlonglong, and both give a warning in the first three lines, causing syntax errors in the standard system headers.
Check first if a very simple C program will compile with the options that Makefile.PL has put in your Makefile based on how perl was built
Also check with perl -V if these options make sense to you.
The last thing to check is 32bit (your perl) is the same as what your libraries offer (maybe just 64bit). They don't go together.
Write a response