I have trying to install various packages in IBM Power Virtual Server Instance AIX 7.2.0.0.
The packages are required to generate wazuh agent package for AIX package. But despite having installed gcc version 6.3.0 and perl5 as suggested in the wazuh documentation, I am getting following fatal error:
What is the size of a pointer (in bytes)? [4]
Do you wish to wrap malloc calls to protect against potential overflows? [y]
Do you wish to attempt to use the malloc that comes with perl5? [n]
Your system wants malloc to return 'char *', it would seem.
Your system uses int free(), it would seem.
Pathname for the site-specific architecture-dependent library files? (~name ok)
[/opt/lib/perl5/site_perl/5.10.1/aix-thread-multi]
Do you want to configure vendor-specific add-on directories? [n]
Colon-separated list of additional directories for perl to search? [none]
Checking out function prototypes...
Configure: FATAL ERROR:
This version of perl5 can only be compiled by a compiler that
understands function prototypes. Unfortunately, your C compiler
gcc -D_THREAD_SAFE -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -fno-strict-aliasing -pipe
doesn't seem to understand them. Sorry about that.
If GNU cc is available for your system, perhaps you could try that instead.
Eventually, we hope to support building Perl with pre-ANSI compilers.
If you would like to help in that effort, please contact <perlbug@perl.org>.
Aborting Configure now.
make: There must be an existing description file or specify a target.
ln: /usr/bin/gmake exists. Specify -f to remove.
------------------------------
Shubham S
------------------------------