patches are in ok, the output is from the –I paths to the compiler.  There was 
a local change to the header outside of the patches, which I reverted.  Still 
didn’t change the build result until I changed the config options --  see 
incoming mail about that.

Cut from the c file that fails first…
* [including the GNU Public Licence.]
*/

#include "constant_time_locl.h"

#include <stdio.h>
#include "cryptlib.h"

Basically…

./config shared threads
results in:
cc -I.. -I../.. -I../../include -DOPENSSL_THREADS -qthreaded -D_THREAD_SAFE 
-DDSO_DLFCN -DHAVE_DLFCN_H -q32 -O -DB_ENDIAN -qmaxmem=16384 -qro -qroconst   
-c -o rsa_pk1.o rsa_pk1.c
"../constant_time_locl.h", line 84.15: 1506-277 (S) Syntax error: possible 
missing ';' or ','?
gmake[2]: *** [rsa_pk1.o] Error 1
gmake[2]: Leaving directory `/work/openssl-0.9.8zc/crypto/rsa'
gmake[1]: *** [subdirs] Error 1
gmake[1]: Leaving directory `/work/openssl-0.9.8zc/crypto'
gmake: *** [build_crypto] Error 1

./config shared threads –qkeyword=inline
Builds ok, make test works

Trying this without the patches to see if it builds as well.

From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] 
On Behalf Of Emilia Käsper
Sent: Thursday, October 16, 2014 1:39 PM
To: openssl-users@openssl.org
Subject: Re: compile prob with xlc/aix 0.9.8zc

That is a different error, but it seems to suggest you haven't applied the 
patches cleanly - you shouldn't be seeing
"../constant_time_locl.h" in the errors anymore as the first patch does

-#include "../constant_time_locl.h"
+#include "constant_time_locl.h"



On Thu, Oct 16, 2014 at 7:02 PM, Kyle Chapman 
<kyle.chap...@pb.com<mailto:kyle.chap...@pb.com>> wrote:
Thanks for the reply…

Applied both sets of patches (on aix 71./xlc 11.1).  I added –qlanglvl=extc99…  
even without this it fails with the original error

cc -I.. -I../.. -I../../include -DOPENSSL_THREADS -qthreaded -D_THREAD_SAFE 
-DDSO_DLFCN -DHAVE_DLFCN_H -qlanglvl=extc99 -q32 -O -DB_ENDIAN -qmaxmem=16384 
-qro -qroconst   -c -o rsa_pk1.o rsa_pk1.c
"../constant_time_locl.h", line 135.28: 1506-343 (S) Redeclaration of 
constant_time_lt differs from previous declaration on line 84 of 
"../constant_time_locl.h".
"../constant_time_locl.h", line 135.28: 1506-050 (I) Return type "unsigned int" 
in redeclaration is not compatible with the previous return type "int".
gmake[2]: *** [rsa_pk1.o] Error 1
gmake[2]: Leaving directory `/work/openssl-0.9.8zc/crypto/rsa'
gmake[1]: *** [subdirs] Error 1
gmake[1]: Leaving directory `/work/openssl-0.9.8zc/crypto'
gmake: *** [build_crypto] Error 1

I was wrong in my original note, this fails at the same spot on hpux parisc and 
ia64, 11iv1 to v3

From: owner-openssl-us...@openssl.org<mailto:owner-openssl-us...@openssl.org> 
[mailto:owner-openssl-us...@openssl.org<mailto:owner-openssl-us...@openssl.org>]
 On Behalf Of Emilia Käsper
Sent: Thursday, October 16, 2014 12:37 PM
To: openssl-users@openssl.org<mailto:openssl-users@openssl.org>
Subject: Re: compile prob with xlc/aix 0.9.8zc

Does applying the following two patches fix your build?

http://git.openssl.org/gitweb/?p=openssl.git&a=commit&h=8202802fadf7f70c656b92f3697da39c9c4271d7
http://git.openssl.org/gitweb/?p=openssl.git&a=commit&h=e2e5326e5b068411999f62b4ba67835d64764ca5

These are build fixes that we appear to have missed out in 0.9.8.

Emilia

On Thu, Oct 16, 2014 at 5:58 AM, Kyle Chapman 
<kyle.chap...@pb.com<mailto:kyle.chap...@pb.com>> wrote:
Greetings folks.  trying to compile 0.9.8zc on aix 7.1 (and 6.1) with various 
versions on xlc
Aix 7.1 has xlc 11.1
Aix 6.1 has xlc 9

Both fail given these steps:
./config shared threads
Compiles for aix-cc

making all in crypto/rsa...
gmake[2]: Entering directory `/san/dev/ssl/0.9.8/crypto/rsa'
cc -I.. -I../.. -I../../include -DOPENSSL_THREADS -qthreaded -D_THREAD_SAFE 
-DDSO_DLFCN -DHAVE_DLFCN_H -q32 -O -DB_ENDIAN -qmaxmem=16384 -qro -qroconst 
-I/usr/local/include -I/usr/local/ssl/include  -c -o rsa_eay.o rsa_eay.c
cc -I.. -I../.. -I../../include -DOPENSSL_THREADS -qthreaded -D_THREAD_SAFE 
-DDSO_DLFCN -DHAVE_DLFCN_H -q32 -O -DB_ENDIAN -qmaxmem=16384 -qro -qroconst 
-I/usr/local/include -I/usr/local/ssl/include  -c -o rsa_gen.o rsa_gen.c
cc -I.. -I../.. -I../../include -DOPENSSL_THREADS -qthreaded -D_THREAD_SAFE 
-DDSO_DLFCN -DHAVE_DLFCN_H -q32 -O -DB_ENDIAN -qmaxmem=16384 -qro -qroconst 
-I/usr/local/include -I/usr/local/ssl/include  -c -o rsa_lib.o rsa_lib.c
cc -I.. -I../.. -I../../include -DOPENSSL_THREADS -qthreaded -D_THREAD_SAFE 
-DDSO_DLFCN -DHAVE_DLFCN_H -q32 -O -DB_ENDIAN -qmaxmem=16384 -qro -qroconst 
-I/usr/local/include -I/usr/local/ssl/include  -c -o rsa_sign.o rsa_sign.c
cc -I.. -I../.. -I../../include -DOPENSSL_THREADS -qthreaded -D_THREAD_SAFE 
-DDSO_DLFCN -DHAVE_DLFCN_H -q32 -O -DB_ENDIAN -qmaxmem=16384 -qro -qroconst 
-I/usr/local/include -I/usr/local/ssl/include  -c -o rsa_saos.o rsa_saos.c
cc -I.. -I../.. -I../../include -DOPENSSL_THREADS -qthreaded -D_THREAD_SAFE 
-DDSO_DLFCN -DHAVE_DLFCN_H -q32 -O -DB_ENDIAN -qmaxmem=16384 -qro -qroconst 
-I/usr/local/include -I/usr/local/ssl/include  -c -o rsa_err.o rsa_err.c
cc -I.. -I../.. -I../../include -DOPENSSL_THREADS -qthreaded -D_THREAD_SAFE 
-DDSO_DLFCN -DHAVE_DLFCN_H -q32 -O -DB_ENDIAN -qmaxmem=16384 -qro -qroconst 
-I/usr/local/include -I/usr/local/ssl/include  -c -o rsa_pk1.o rsa_pk1.c
"../constant_time_locl.h", line 84.15: 1506-277 (S) Syntax error: possible 
missing ';' or ','?
gmake[2]: *** [rsa_pk1.o] Error 1
gmake[2]: Leaving directory `/san/dev/ssl/0.9.8/crypto/rsa'
gmake[1]: *** [subdirs] Error 1
gmake[1]: Leaving directory `/san/dev/ssl/0.9.8/crypto'
gmake: *** [build_crypto] Error 1
gmake error


the err thrown, syntax err on line 84, is an inline function.  This is a new 
header which doesn't exist in prior 098 vers, so it seems to me (098zb version 
compiles clean on aix, this "offending" header is not there).  
Hpux/solaris/linux have not see any compile errs with zc.

________________________________
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    
openssl-users@openssl.org<mailto:openssl-users@openssl.org>
Automated List Manager                           
majord...@openssl.org<mailto:majord...@openssl.org>


________________________________



________________________________

Reply via email to