aix-cc: compilation error
Compiling master on AIX 7.2 with xlc 16.1 gives the below error:
cc -I. -Iinclude -Iproviders/common/include -Iproviders/implementations/include -DAES_ASM -DOPENSSL_BN_ASM_MONT -DOPENSSL_CPUID_OBJ -DPOLY1305_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DVPAES_ASM -qpic -q32 -qmaxmem=16384 -qro -qroconst -qthreaded -O -DB_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR=""/home/sanumesh/ssl"" -DENGINESDIR=""/home/sanumesh//lib/engines-3"" -DMODULESDIR=""/home/sanumesh//lib/ossl-modules"" -D_THREAD_SAFE -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o crypto/libcrypto-lib-threads_pthread.o crypto/threads_pthread.c "crypto/threads_pthread.c", line 144.1: 1506-277 (S) Syntax error: possible missing ';' or ','? "crypto/threads_pthread.c", line 144.1: 1506-485 (S) Parameter declaration list is incompatible with declarator for inline. "crypto/threads_pthread.c", line 145.1: 1506-045 (S) Undeclared identifier p. "crypto/threads_pthread.c", line 160.1: 1506-277 (S) Syntax error: possible missing ';' or ','? "crypto/threads_pthread.c", line 160.1: 1506-485 (S) Parameter declaration list is incompatible with declarator for inline. "crypto/threads_pthread.c", line 171.1: 1506-045 (S) Undeclared identifier p. "crypto/threads_pthread.c", line 171.1: 1506-045 (S) Undeclared identifier v. "crypto/threads_pthread.c", line 172.1: 1506-277 (S) Syntax error: possible missing ';' or ','? "crypto/threads_pthread.c", line 172.1: 1506-485 (S) Parameter declaration list is incompatible with declarator for inline. "crypto/threads_pthread.c", line 187.1: 1506-045 (S) Undeclared identifier p. "crypto/threads_pthread.c", line 187.1: 1506-045 (S) Undeclared identifier v. "crypto/threads_pthread.c", line 188.1: 1506-277 (S) Syntax error: possible missing ';' or ','? "crypto/threads_pthread.c", line 188.1: 1506-485 (S) Parameter declaration list is incompatible with declarator for inline. "crypto/threads_pthread.c", line 204.6: 1506-045 (S) Undeclared identifier p. "crypto/threads_pthread.c", line 204.11: 1506-045 (S) Undeclared identifier v. "crypto/threads_pthread.c", line 213.1: 1506-277 (S) Syntax error: possible missing ';' or ','? "crypto/threads_pthread.c", line 212.8: 1506-485 (S) Parameter declaration list is incompatible with declarator for inline. "crypto/threads_pthread.c", line 230.6: 1506-045 (S) Undeclared identifier p. "crypto/threads_pthread.c", line 230.11: 1506-045 (S) Undeclared identifier v. "crypto/threads_pthread.c", line 239.1: 1506-277 (S) Syntax error: possible missing ';' or ','? "crypto/threads_pthread.c", line 238.8: 1506-485 (S) Parameter declaration list is incompatible with declarator for inline. "crypto/threads_pthread.c", line 256.6: 1506-045 (S) Undeclared identifier p. "crypto/threads_pthread.c", line 256.11: 1506-045 (S) Undeclared identifier m. "crypto/threads_pthread.c", line 635.15: 1506-068 (W) Operation between types "struct rcu_cb_item*" and "int" is not allowed. "crypto/threads_pthread.c", line 643.12: 1506-1332 (W) A function with return type "void*" may not return a value of type "int". make: The error code from the last command is 1.
Configured with aix-cc
bash-5.2$ cat /proc/version Sep 14 2023 08:50:02 2337A_72Z @(#) _kdb_buildinfo unix_64 Sep 14 2023 08:50:02 2337A_72Z
bash-5.2$ lslpp -l | grep xlc xlccmp.16.1.0 16.1.0.2 COMMITTED XL C compiler xlccmp.16.1.0.bundle 16.1.0.2 COMMITTED XL C media defined bundles xlccmp.16.1.0.lib 16.1.0.2 COMMITTED XL C libraries xlccmp.16.1.0.license 16.1.0.2 COMMITTED XL C license files xlccmp.16.1.0.ndi 16.1.0.2 COMMITTED XL C non-default installation
Sandeep Umesh AIX Security Development
Same error seen even with aix64-cc Configure option
cc -I. -Iinclude -Iproviders/common/include -Iproviders/implementations/include -DAES_ASM -DECP_NISTZ256_ASM -DKECCAK1600_ASM -DOPENSSL_BN_ASM_MONT -DOPENSSL_CPUID_OBJ -DPOLY1305_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DVPAES_ASM -DX25519_ASM -qpic -q64 -qmaxmem=16384 -qro -qroconst -qthreaded -O -DB_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR=""/home/sanumesh/openssl_myrepo_master_checkxts_64/ssl/"" -DENGINESDIR=""/home/sanumesh/openssl_myrepo_master_checkxts_64//lib/engines-3"" -DMODULESDIR=""/home/sanumesh/openssl_myrepo_master_checkxts_64//lib/ossl-modules"" -D_THREAD_SAFE -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -c -o crypto/libcrypto-lib-threads_pthread.o crypto/threads_pthread.c "crypto/threads_pthread.c", line 144.1: 1506-277 (S) Syntax error: possible missing ';' or ','? "crypto/threads_pthread.c", line 144.1: 1506-485 (S) Parameter declaration list is incompatible with declarator for inline. "crypto/threads_pthread.c", line 145.1: 1506-045 (S) Undeclared identifier p. "crypto/threads_pthread.c", line 160.1: 1506-277 (S) Syntax error: possible missing ';' or ','? "crypto/threads_pthread.c", line 160.1: 1506-485 (S) Parameter declaration list is incompatible with declarator for inline. "crypto/threads_pthread.c", line 171.1: 1506-045 (S) Undeclared identifier p. "crypto/threads_pthread.c", line 171.1: 1506-045 (S) Undeclared identifier v. "crypto/threads_pthread.c", line 172.1: 1506-277 (S) Syntax error: possible missing ';' or ','? "crypto/threads_pthread.c", line 172.1: 1506-485 (S) Parameter declaration list is incompatible with declarator for inline. "crypto/threads_pthread.c", line 187.1: 1506-045 (S) Undeclared identifier p. "crypto/threads_pthread.c", line 187.1: 1506-045 (S) Undeclared identifier v. "crypto/threads_pthread.c", line 188.1: 1506-277 (S) Syntax error: possible missing ';' or ','? "crypto/threads_pthread.c", line 188.1: 1506-485 (S) Parameter declaration list is incompatible with declarator for inline. "crypto/threads_pthread.c", line 204.6: 1506-045 (S) Undeclared identifier p. "crypto/threads_pthread.c", line 204.11: 1506-045 (S) Undeclared identifier v. "crypto/threads_pthread.c", line 213.1: 1506-277 (S) Syntax error: possible missing ';' or ','? "crypto/threads_pthread.c", line 212.8: 1506-485 (S) Parameter declaration list is incompatible with declarator for inline. "crypto/threads_pthread.c", line 230.6: 1506-045 (S) Undeclared identifier p. "crypto/threads_pthread.c", line 230.11: 1506-045 (S) Undeclared identifier v. "crypto/threads_pthread.c", line 239.1: 1506-277 (S) Syntax error: possible missing ';' or ','? "crypto/threads_pthread.c", line 238.8: 1506-485 (S) Parameter declaration list is incompatible with declarator for inline. "crypto/threads_pthread.c", line 256.6: 1506-045 (S) Undeclared identifier p. "crypto/threads_pthread.c", line 256.11: 1506-045 (S) Undeclared identifier m. "crypto/threads_pthread.c", line 635.15: 1506-068 (W) Operation between types "struct rcu_cb_item*" and "int" is not allowed. "crypto/threads_pthread.c", line 643.12: 1506-1332 (W) A function with return type "void*" may not return a value of type "int".
Sandeep Umesh AIX Security Development