Re: [openssl-dev] [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

2016-09-02 Thread Kiyoshi KANAZAWA via RT
I forgot writing.

crypto/x86_64cpuid.s generated by 64 bit perl & generated by rebuilt 32 bit perl
is the same.

Regards,

--- Kiyoshi 


> With my old 32 bit perl,built by default except for prefix,
>   perl -e 'use integer; printf 
> "%d\n",0x<<32>>32'
> prints 0.
> 64 bit perl prints -1.
> 
> After rebuilding 32 bit perl with Configuring "-Duse64bitint", output 
> was changed to -1.
> With this rebuilt 32 bit perl, openssl-1.1.0 "make test" passes.
> 
> 
> (I checked perl-5.24.0, building both with gcc 5.4.0 & developerstudio12.5 
> cc,
> and had the same results.)
> 
> Regards,
> 
> --- Kiyoshi 
> 
> 
>> 
>>>   Note that a 32-bit Perl can be compiled with or without support for 
> 64-bit 
>>  integers.
>>>   That fact hit me once doing OpenSSL builds, some 64-bit constants were 
> not
>>>   calculated correctly, however that showed up at build time so not 
> likely
>>>   to be the case here. However, it might be helpful checking if the 
> 32-bit 
>>  perl
>>>   in question supports 64-bit or not.
>> 
>>  Those problems were addressed and both configurations are known to work.
>>  For example 32-bit perl I use by default on Linux is *not* compiled with
>>  64-bit integers, while 32-bit perl I have on Solaris is. No problem with
>>  either. It appears to me that problem is likely to occur at sign
>>  extension when processing effective addresses. To demonstrate this with
>>  one-liner:
>> 
>>  perl -e 'use integer; printf 
>>  "%d\n",0x<<32>>32'
>> 
>>  It should print -1 in either combination of bitnesses.
>> 
>> 
>>  -- 
>>  Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4641
>>  Please log in as guest with password guest if prompted
>> 
>


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4641
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

2016-09-02 Thread Kiyoshi KANAZAWA via RT
With my old 32 bit perl,built by default except for prefix,
  perl -e 'use integer; printf "%d\n",0x<<32>>32'
prints 0.
64 bit perl prints -1.

After rebuilding 32 bit perl with Configuring "-Duse64bitint", output was 
changed to -1.
With this rebuilt 32 bit perl, openssl-1.1.0 "make test" passes.


(I checked perl-5.24.0, building both with gcc 5.4.0 & developerstudio12.5 cc,
and had the same results.)

Regards,

--- Kiyoshi 


> 
>>  Note that a 32-bit Perl can be compiled with or without support for 64-bit 
> integers.
>>  That fact hit me once doing OpenSSL builds, some 64-bit constants were not
>>  calculated correctly, however that showed up at build time so not likely
>>  to be the case here. However, it might be helpful checking if the 32-bit 
> perl
>>  in question supports 64-bit or not.
> 
> Those problems were addressed and both configurations are known to work.
> For example 32-bit perl I use by default on Linux is *not* compiled with
> 64-bit integers, while 32-bit perl I have on Solaris is. No problem with
> either. It appears to me that problem is likely to occur at sign
> extension when processing effective addresses. To demonstrate this with
> one-liner:
> 
> perl -e 'use integer; printf 
> "%d\n",0x<<32>>32'
> 
> It should print -1 in either combination of bitnesses.
> 
> 
> -- 
> Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4641
> Please log in as guest with password guest if prompted
>


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4641
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

2016-09-01 Thread Kiyoshi KANAZAWA via RT
Hello,

crypto/x86_64cpuid.s generated by perl

32 bit (has problem) & 64 bit (no problem) are attached.

Regards,

--- Kiyoshi 



> 
>>  I'm sorry to be late.
>>  I was too busy and had to prepare 64 bit gdb (& 64 bit perl).
>> 
>>  It seems to be 32 bit perl (perl-5.24.0) problem.
>>  (Generating 64 bit code with  32 bit perl.)
> 
> For reference, I'm using 32-bit perl version 5.10.1, minimally supported
> version, by default, i.e. *all* the time. Well, not on Solaris, on
> Linux, but I do use it with 64-bit builds. As well with cross-compile
> builds for a handful qemu-based environments, 32- and 64-bit ones, and
> with mingw/wine. As for Solaris, I can say that 32-bit perl version
> 5.12.5 works for me. Bottom line is that perl's 32-bitness doesn't seem
> to be the problem, on the contrary, it's actually *known* to be capable
> of generating 64-bit assembly code, and failure to do so will be caught
> swiftly.
> 
>>  Tested with openssl-1.1.0 instead of pre-6,
>>  and on pure Solaris 10, without any VM.
>> 
>> 
>>  (1) with 32 bit perl
>>  Did test/hmactest under gdb, break,
>>  confirmed it was in OPENSSL_cleanse,
>>  "leaq -0(%rsi),%rsi" (not "lea 0(%rdi),%rdi")
>>  and making a short loop.
>> 
>>  (2) with 64 bit perl
>>  make test passed both with gcc 5.4.0 & developerstudio12.5.
> 
> In other words it's effectively confirmed that it's not really OpenSSL
> problem, but likely to be a problem with specific Solaris perl binary. I
> wonder if you could find opportunity to post broken crypto/x86_64cpuid.s
> generated by this broken perl, please?
> 
> 
> -- 
> Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4641
> Please log in as guest with password guest if prompted
> 
-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4641
Please log in as guest with password guest if prompted



x86_64cpuid.s-with_32bit_perl.gz
Description: Unix tar archive


x86_64cpuid.s-with_64bit_perl.gz
Description: Unix tar archive
-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

2016-09-01 Thread Kiyoshi KANAZAWA via RT
I'm sorry to be late.
I was too busy and had to prepare 64 bit gdb (& 64 bit perl).

It seems to be 32 bit perl (perl-5.24.0) problem.
(Generating 64 bit code with  32 bit perl.)

Tested with openssl-1.1.0 instead of pre-6,
and on pure Solaris 10, without any VM.


(1) with 32 bit perl
Did test/hmactest under gdb, break,
confirmed it was in OPENSSL_cleanse,
"leaq -0(%rsi),%rsi" (not "lea 0(%rdi),%rdi")
and making a short loop.

(2) with 64 bit perl
make test passed both with gcc 5.4.0 & developerstudio12.5.


Regrads,

--- Kiyoshi 





> Hi,
> 
>>  make test stops on Solaris10 x64.
>> 
>> 
>>  % ./Configure solaris64-x86_64-gcc
>> 
>>  % make
>>  % make test
>>     :
>>  ../test/recipes/01-test_abort.t  ok  
>>  ../test/recipes/01-test_sanity.t ... ok  
>>  ../test/recipes/01-test_symbol_presence.t .. ok  
>>  ../test/recipes/02-test_ordinals.t . ok  
>>  ../test/recipes/05-test_bf.t ... ok  
>>  ../test/recipes/05-test_cast.t . ok  
>>  ../test/recipes/05-test_des.t .. ok  
>>  ../test/recipes/05-test_fuzz.t . ok    
>>  ../test/recipes/05-test_hmac.t . 
> 
> There was private report about similar problem. I mean if you can
> confirm that it's stuck in OPENSSL_cleanse, then it's same problem(*).
> Trouble is that it doesn't seem to be OpenSSL problem, because generated
> code appears to be mis-compiled. When single-stepping with 'stepi' you
> are likely to observe "lea 0(%rdi),%rdi" instruction, and it should be
> "lea 1(%rdi),%rdi". I mean it *is* "lea 1(%rdi),%rdi" in 
> source file,
> crypto/x86_64cpuid.pl, and that's where our responsibility ends. In
> sense that we are responsible for providing source, and you are
> effectively responsible for providing working compiler environment. I
> don't know which components were involved in first report, I mean things
> like perl version, which assembler and its version, so I can't give any
> advice about updates that might be required...
> 
> (*) To confirm run test/hmactest under debugger, break, see if it's in
> OPENSSL_cleanse, issue 'stepi' command few times to see if it's 
> going
> "in circles".
> 
> 
> -- 
> Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4641
> Please log in as guest with password guest if prompted
>


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4641
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4642] [openssl-1.1.0-pre6] make failes with solaris-x86-cc & solaris64-x86_64-cc

2016-08-17 Thread Kiyoshi KANAZAWA via RT
Yes, __SUNPRO_C is defined by DeveloperStudio compiler.

> To only allow the use of __atomic_add_fetch when __ATOMIC_RELAXED is non-zero

> isn't the right move here. So it seems that different compilers either only
> implement a subset of the __atomic builtins, or name them differently.
> 
> What was the macro defined by the DeveloperStudio compiler? __SUNPRO_C or
> something else? In that case, the correct method might be to exclude it, like
> this:
> 
> #if defined(__ATOMIC_RELAXED) && !defined(__SUNPRO_C)
> 
> On Mon Aug 08 08:33:34 2016, yoi_no_myou...@yahoo.co.jp wrote:
>>  Hello,
>> 
>>  % ./Configure solaris-x86-cc
>>  % make
>>  :
>>  Undefined first referenced
>>  symbol in file
>>  __atomic_add_fetch ./libcrypto.so
>>  ld: fatal: symbol referencing errors. No output written to
>>  fuzz/asn1parse-test
>> 
>> 
>>  % ./Configure solaris64-x86_64-cc
>>  % make
>>  has the same error.
>> 
>>  Tested on Solaris10 x86/64, with Solaris developerstudio12.5.
>> 
>> 
>>  This is caused because __ATOMIC_RELAXED is #defined as 0
>>  in /opt/developerstudio12.5/lib/compilers/include/CC/gnu/builtins.h
>> 
>> 
>>  Sample patch:
>>  --- ../openssl-1.1.0-pre6.orig/crypto/threads_pthread.c
>>  +++ ./crypto/threads_pthread.c
>>  @@ -109,7 +109,7 @@
>> 
>>  int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK
>>  *lock)
>>  {
>>  -#ifdef __ATOMIC_RELAXED
>>  +#if __ATOMIC_RELAXED
>>  *ret = __atomic_add_fetch(val, amount, __ATOMIC_RELAXED);
>>  #else
>>  if (!CRYPTO_THREAD_write_lock(lock))
>> 
>> 
>>  With this patch,
>>  % ./Configure solaris-x86-cc
>>  % make
>>  % make test
>>  passes.
>> 
>>  % ./Configure solaris64-x86_64-cc
>>  % make
>>  passes but
>>  % make test
>>  stops.
>>  This is another problem, which seems to be the same as bug #4641.
>> 
>> 
>>  Regards,
>> 
>>  --- Kiyoshi 
> 
> 
> --
> Richard Levitte
> levi...@openssl.org
> 
> -- 
> Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4642
> Please log in as guest with password guest if prompted
>


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4642
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

2016-08-11 Thread Kiyoshi KANAZAWA via RT
Hello,

I have no time to check with debugger now,
but I do not think it is caused by assembler,
because,
- gcc-5.4.0 with gas (GNU Binutils) 2.27
- cc (Solaris developerstudio12.5) with /usr/ccs/bin/as
have the same result (see openssl.org #4642 also).

perl version which I use is v5.24.0.


Regards,

--- Kiyoshi 
 


- Original Message -
> From: Andy Polyakov via RT 
> To: yoi_no_myou...@yahoo.co.jp
> Cc: openssl-dev@openssl.org
> Date: 2016/8/11, Thu 21:17
> Subject: Re: [openssl-dev] [openssl.org #4641] [openssl-1.1.0-pre6] make test 
> stops with solaris64-x86_64-gcc
> 
> Hi,
> 
>>  make test stops on Solaris10 x64.
>> 
>> 
>>  % ./Configure solaris64-x86_64-gcc
>> 
>>  % make
>>  % make test
>>     :
>>  ../test/recipes/01-test_abort.t  ok  
>>  ../test/recipes/01-test_sanity.t ... ok  
>>  ../test/recipes/01-test_symbol_presence.t .. ok  
>>  ../test/recipes/02-test_ordinals.t . ok  
>>  ../test/recipes/05-test_bf.t ... ok  
>>  ../test/recipes/05-test_cast.t . ok  
>>  ../test/recipes/05-test_des.t .. ok  
>>  ../test/recipes/05-test_fuzz.t . ok    
>>  ../test/recipes/05-test_hmac.t . 
> 
> There was private report about similar problem. I mean if you can
> confirm that it's stuck in OPENSSL_cleanse, then it's same problem(*).
> Trouble is that it doesn't seem to be OpenSSL problem, because generated
> code appears to be mis-compiled. When single-stepping with 'stepi' you
> are likely to observe "lea 0(%rdi),%rdi" instruction, and it should be
> "lea 1(%rdi),%rdi". I mean it *is* "lea 1(%rdi),%rdi" in 
> source file,
> crypto/x86_64cpuid.pl, and that's where our responsibility ends. In
> sense that we are responsible for providing source, and you are
> effectively responsible for providing working compiler environment. I
> don't know which components were involved in first report, I mean things
> like perl version, which assembler and its version, so I can't give any
> advice about updates that might be required...
> 
> (*) To confirm run test/hmactest under debugger, break, see if it's in
> OPENSSL_cleanse, issue 'stepi' command few times to see if it's 
> going
> "in circles".
> 
> 
> -- 
> Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4641
> Please log in as guest with password guest if prompted
>


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4641
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4642] [openssl-1.1.0-pre6] make failes with solaris-x86-cc & solaris64-x86_64-cc

2016-08-08 Thread Kiyoshi KANAZAWA via RT
Hello,

% ./Configure solaris-x86-cc
% make
   :
Undefined   first referenced
 symbol in file
__atomic_add_fetch  ./libcrypto.so
ld: fatal: symbol referencing errors. No output written to fuzz/asn1parse-test


% ./Configure solaris64-x86_64-cc
% make
has the same error.

Tested on Solaris10 x86/64, with Solaris developerstudio12.5.


This is caused because __ATOMIC_RELAXED is #defined as 0
in /opt/developerstudio12.5/lib/compilers/include/CC/gnu/builtins.h


Sample patch:
--- ../openssl-1.1.0-pre6.orig/crypto/threads_pthread.c
+++ ./crypto/threads_pthread.c
@@ -109,7 +109,7 @@
 
 int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock)
 {
-#ifdef __ATOMIC_RELAXED
+#if    __ATOMIC_RELAXED
 *ret = __atomic_add_fetch(val, amount, __ATOMIC_RELAXED);
 #else
 if (!CRYPTO_THREAD_write_lock(lock))


With this patch,
% ./Configure solaris-x86-cc
% make
% make test
passes.

% ./Configure solaris64-x86_64-cc
% make
passes but
% make test
stops.
This is another problem, which seems to be the same as bug #4641.


Regards,

--- Kiyoshi 



-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4642
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

2016-08-07 Thread Kiyoshi KANAZAWA via RT
Hello,


make test stops on Solaris10 x64.


% ./Configure solaris64-x86_64-gcc

% make
% make test
   :
../test/recipes/01-test_abort.t  ok   
../test/recipes/01-test_sanity.t ... ok   
../test/recipes/01-test_symbol_presence.t .. ok   
../test/recipes/02-test_ordinals.t . ok   
../test/recipes/05-test_bf.t ... ok   
../test/recipes/05-test_cast.t . ok   
../test/recipes/05-test_des.t .. ok   
../test/recipes/05-test_fuzz.t . ok 
../test/recipes/05-test_hmac.t . 


Tested with gcc-5.4.0.


% ./Configure solaris-x86-gcc
% make
% make test
passed.

Regards,

--- Kiyoshi 



-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4641
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4453] openssl-1.1.0-pre4: make fails with 'wrong ELF class: ELFCLASS64' on solaris64-x86_64-cc

2016-05-11 Thread Kiyoshi KANAZAWA via RT
Hi,

Checked with openssl-1.1.0-pre5,
and confirmed it is fixed.

Thanks,

--- Kiyoshi 




- Original Message -
> From: Richard Levitte via RT 
> To: yoi_no_myou...@yahoo.co.jp
> Cc: openssl-dev@openssl.org
> Date: 2016/5/11, Wed 06:01
> Subject: [openssl.org #4453] openssl-1.1.0-pre4: make fails with 'wrong ELF 
> class: ELFCLASS64' on solaris64-x86_64-cc
> 
> Hi,
> 
> would you mind checking again with the latest beta or a fresh master checkout?
> It looks to me like this issue is fixed, but I want to make sure.
> 
> Cheers,
> Richard
> 
> On Sat Mar 19 10:56:00 2016, yoi_no_myou...@yahoo.co.jp wrote:
>>  Hello,
>> 
>>  Tested with patch for #, and removing gcc from path.
>> 
>>  % ./config
>>  Operating system: i86pc-whatever-solaris2
>>  Configuring for solaris64-x86_64-cc
>>  Configuring OpenSSL version 1.1.0-pre4 (0x0x1014L)
>>  no-crypto-mdebug [default] OPENSSL_NO_CRYPTO_MDEBUG (skip dir)
>>  no-crypto-mdebug-backtrace [forced]
>>  OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE (skip dir)
>>  no-dynamic-engine [forced]
>>  no-ec_nistp_64_gcc_128 [default] OPENSSL_NO_EC_NISTP_64_GCC_128
>>  (skip dir)
>>  no-egd [default] OPENSSL_NO_EGD (skip dir)
>>  no-heartbeats [default] OPENSSL_NO_HEARTBEATS (skip dir)
>>  no-md2 [default] OPENSSL_NO_MD2 (skip dir)
>>  no-rc5 [default] OPENSSL_NO_RC5 (skip dir)
>>  no-sctp [default] OPENSSL_NO_SCTP (skip dir)
>>  no-shared [default]
>>  no-ssl-trace [default] OPENSSL_NO_SSL_TRACE (skip dir)
>>  no-ssl3 [default] OPENSSL_NO_SSL3 (skip dir)
>>  no-ssl3-method [default] OPENSSL_NO_SSL3_METHOD (skip dir)
>>  no-unit-test [default] OPENSSL_NO_UNIT_TEST (skip dir)
>>  no-weak-ssl-ciphers [default] OPENSSL_NO_WEAK_SSL_CIPHERS (skip
>>  dir)
>>  no-zlib [default]
>>  no-zlib-dynamic [default]
>>  Configuring for solaris64-x86_64-cc
>>  IsMK1MF =no
>>  CC =cc
>>  CFLAG =-xarch=generic64 -xstrconst -Xa -DL_ENDIAN -xO5
>>  -xdepend -xbuiltin -D_REENTRANT -DFILIO_H
>>  SHARED_CFLAG =-KPIC
>>  DEFINES =DSO_DLFCN HAVE_DLFCN_H OPENSSL_THREADS
>>  OPENSSL_NO_DYNAMIC_ENGINE OPENSSL_PIC OPENSSL_IA32_SSE2
>>  OPENSSL_BN_ASM_MONT OPENSSL_BN_ASM_MONT5 OPENSSL_BN_ASM_GF2m SHA1_ASM
>>  SHA256_ASM SHA512_ASM MD5_ASM AES_ASM VPAES_ASM BSAES_ASM GHASH_ASM
>>  ECP_NISTZ256_ASM POLY1305_ASM
>>  LFLAG =-mt
>>  PLIB_LFLAG =
>>  EX_LIBS =-lresolv -lsocket -lnsl -ldl -lpthread
>>  APPS_OBJ =
>>  CPUID_OBJ =x86_64cpuid.o
>>  UPLINK_OBJ =
>>  BN_ASM =asm/x86_64-gcc.o x86_64-mont.o x86_64-mont5.o x86_64-
>>  gf2m.o rsaz_exp.o rsaz-x86_64.o rsaz-avx2.o
>>  EC_ASM =ecp_nistz256.o ecp_nistz256-x86_64.o
>>  DES_ENC =des_enc.o fcrypt_b.o
>>  AES_ENC =aes-x86_64.o vpaes-x86_64.o bsaes-x86_64.o aesni-
>>  x86_64.o aesni-sha1-x86_64.o aesni-sha256-x86_64.o aesni-mb-x86_64.o
>>  BF_ENC =bf_enc.o
>>  CAST_ENC =c_enc.o
>>  RC4_ENC =rc4-x86_64.o rc4-md5-x86_64.o
>>  RC5_ENC =rc5_enc.o
>>  MD5_OBJ_ASM =md5-x86_64.o
>>  SHA1_OBJ_ASM =sha1-x86_64.o sha256-x86_64.o sha512-x86_64.o sha1-mb-
>>  x86_64.o sha256-mb-x86_64.o
>>  RMD160_OBJ_ASM=
>>  CMLL_ENC =cmll-x86_64.o cmll_misc.o
>>  MODES_OBJ =ghash-x86_64.o aesni-gcm-x86_64.o
>>  PADLOCK_OBJ =e_padlock-x86_64.o
>>  CHACHA_ENC =chacha-x86_64.o
>>  POLY1305_OBJ =poly1305-x86_64.o
>>  BLAKE2_OBJ =
>>  PROCESSOR =
>>  RANLIB =/usr/ccs/bin/ranlib
>>  ARFLAGS =
>>  PERL =/opt/perl5/bin/perl
>> 
>>  SIXTY_FOUR_BIT_LONG mode
>> 
>>  Configured for solaris64-x86_64-cc.
>> 
>> 
>> 
>>  % make
>>  :
>>  make[1]: Entering directory '/tmp/openssl-1.1.0-pre4'
>>  ( :; LIBDEPS="${LIBDEPS:--L. -lssl -L. -lcrypto -lresolv -lsocket
>>  -lnsl -ldl -lpthread }"; LDCMD="${LDCMD:-cc}"; 
> LDFLAGS="${LDFLAGS:--
>>  DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_THREADS
>>  -DOPENSSL_NO_DYNAMIC_ENGINE -DOPENSSL_PIC -DOPENSSL_IA32_SSE2
>>  -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m
>>  -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM
>>  -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM
>>  -DOPENSSLDIR="\"/usr/local/ssl\""
>>  -DENGINESDIR="\"/usr/local/lib/engines\"" 
> -xarch=generic64 -xstrconst
>>  -Xa -DL_ENDIAN -xO5 -xdepend -xbuiltin -D_REENTRANT -DFILIO_H -mt}";
>>  LIBPATH=`for x in $LIBDEPS; do echo $x; done | sed -e 's/^ *-L//;t' 
> -e
>>  d | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; echo
>>  LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o
>>  ${APPNAME:=apps/openssl} apps/app_rand.o apps/apps.o apps/asn1pars.o
>>  apps/ca.o apps/ciphers.o apps/cms.o apps/crl.o apps/crl2p7.o
>>  apps/dgst.o apps/dhparam.o
>>  apps/dsa.o apps/dsaparam.o apps/ec.o apps/ecparam.o apps/enc.o
>>  apps/engine.o apps/errstr.o apps/gendsa.o apps/genpkey.o apps/genrsa.o
>>  apps/nseq.o apps/ocsp.o apps/openssl.o apps/opt.o apps/passwd.o
>>  apps/pkcs12.o apps/pkcs7.o apps/pkcs8.o apps/pkey.o apps/pkeyparam.o
>>  apps/pkeyutl.o apps/prime.o apps/rand.o apps/rehash.o apps/req.o
>>  apps/rsa.o apps/rsautl.o apps/s_cb.o apps/s_client.o apps/s_server.o
>>  apps/s_socket.o 

Re: [openssl-dev] [openssl.org #4324] openssl-1.1.0-pre3 with solaris-x86-cc & solaris64-x86_64-cc make fails

2016-05-11 Thread Kiyoshi KANAZAWA via RT
Hello,

They are fixed in openssl-1.1.0-pre5.

Regards,


--- Kiyoshi 




- Original Message -
> From: Richard Levitte via RT 
> To: yoi_no_myou...@yahoo.co.jp
> Cc: openssl-dev@openssl.org
> Date: 2016/5/11, Wed 05:29
> Subject: [openssl.org #4324] openssl-1.1.0-pre3 with solaris-x86-cc & 
> solaris64-x86_64-cc make fails
> 
> Hi,
> 
> Sorry for taking so long to get back to you.
> 
> Would you mind trying again with a fresh master, or with the latest beta? 
> Quite
> a lot has happened, especially in Makefile.shared and exactly around the stuff
> you have reported, so I'm hopeful things will work better for you now.
> 
> Cheers,
> Richard
> 
> On Thu Feb 25 14:36:30 2016, yoi_no_myou...@yahoo.co.jp wrote:
>>  With the following patch,
>>  % ./Configure --unified solaris-x86-cc
>>  % make
>>  % make test
>>  passed.
>> 
>>  % ./Configure --unifiedsolaris64-x86_64-cc; make; make test
>>  also passed.
>> 
>> 
>>  This patch was written comparing to openssl-1.0.2f.
>> 
>>  It has side effect for other configurations.
>>  Please add some conditions.
>> 
>> 
>>  diff -cr ../openssl-1.1.0-pre3.orig/Makefile.shared ./Makefile.shared
>>  *** ../openssl-1.1.0-pre3.orig/Makefile.shared 2016-02-16
>>  03:08:07.0 +0900
>>  --- ./Makefile.shared 2016-02-25 22:57:23.347187336 +0900
>>  ***
>>  *** 398,409 
>>  ($(CC) -v 2>&1 | grep gcc) > /dev/null && 
> MINUSZ='-Wl,-z,'; \
>>  SHLIB=lib$(LIBNAME).so; \
>>  SHLIB_SUFFIX=;\
>>  ! if [ $(LIBNAME) != "crypto" -a $(LIBNAME) != "ssl" ]; 
> then \
>>  ALLSYMSFLAGS="$${MINUSZ}allextract"; \
>>  ! else \
>>  ! $(PERL) $(SRCDIR)/util/mkdef.pl $(LIBNAME) linux
>>  >$(LIBNAME).map; \
>>  ! ALLSYMSFLAGS="$${MINUSZ}allextract,-M,$(LIBNAME).map"; \
>>  ! fi; \
>>  NOALLSYMSFLAGS="$${MINUSZ}defaultextract"; \
>>  SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -h
>>  $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX -Wl,-Bsymbolic"; \
>>  fi; \
>>  --- 398,409 
>>  ($(CC) -v 2>&1 | grep gcc) > /dev/null && 
> MINUSZ='-Wl,-z,'; \
>>  SHLIB=lib$(LIBNAME).so; \
>>  SHLIB_SUFFIX=;\
>>  ! # if [ $(LIBNAME) != "crypto" -a $(LIBNAME) != "ssl" 
> ]; then \
>>  ALLSYMSFLAGS="$${MINUSZ}allextract"; \
>>  ! # else \
>>  ! # $(PERL) $(SRCDIR)/util/mkdef.pl $(LIBNAME) linux
>>  >$(LIBNAME).map; \
>>  ! # ALLSYMSFLAGS="$${MINUSZ}allextract,-M,$(LIBNAME).map"; \
>>  ! # fi; \
>>  NOALLSYMSFLAGS="$${MINUSZ}defaultextract"; \
>>  SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -h
>>  $$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX -Wl,-Bsymbolic"; \
>>  fi; \
> 
> 
> --
> Richard Levitte
> levi...@openssl.org
> 
> -- 
> Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4324
> Please log in as guest with password guest if prompted
>


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4324
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4452] openssl-1.1.0-pre4: undefined symbol for solaris-x86-cc

2016-05-11 Thread Kiyoshi KANAZAWA via RT
Hello,

It is fixed in openssl-1.1.0-pre5.

Thanks,

--- Kiyoshi 




- Original Message -
>From: Richard Levitte via RT 
>To: yoi_no_myou...@yahoo.co.jp 
>Cc: openssl-dev@openssl.org
>Date: 2016/5/11, Wed 05:57
>Subject: [openssl.org #4452] openssl-1.1.0-pre4: undefined symbol for 
>solaris-x86-cc
> 
>Hi,
>
>that looks like engines/asm/e_padlock_x86.o wasn't built for some reason, even
>though it should.
>
>I would like it if you gave me a full log, or in other words, send me build.log
>after running this:
>
>(set -x; ./Configure solaris-x86-cc shared; make) > build.log 2>&1
>
>Cheers,
>Richard
>
>On Mon Mar 21 10:42:05 2016, yoi_no_myou...@yahoo.co.jp wrote:
>> % ../Configure solaris-x86-cc shared; make; make test
>> also passes.
>>
>> Regards,
>>
>> --- Kiyoshi 
>>
>>
>>
>>
>>
>> > Tried with openssl-SNAP-20160320,
>> > but have the same result, not fixed yet.
>> >
>> >
>> > Regards,
>> >
>> > --- Kiyoshi 
>> >
>> >
>> >
>> >
>> >> If you have the possibility, please try a fresh checkout of the master
>> > branch
>> >> and see if this is fixed.
>> >>
>> >> Cheers,
>> >> Richard
>> >>
>> >> Vid Sat, 19 Mar 2016 kl. 10.55.59, skrev yoi_no_myou...@yahoo.co.jp:
>> >>> With patch for #,
>> >>>
>> >>> % mkdir build_solaris-x86-cc
>> >>> % cd build_solaris-x86-cc
>> >>> % ../Configure solaris-x86-cc
>> >>> % make
>> >>> :
>> >>> Undefined first referenced
>> >>> symbol in file
>> >>> padlock_xstore ./libcrypto.a(e_padlock.o)
>> >>> padlock_capability ./libcrypto.a(e_padlock.o)
>> >>> padlock_reload_key ./libcrypto.a(e_padlock.o)
>> >>> padlock_ctr32_encrypt ./libcrypto.a(e_padlock.o)
>> >>> padlock_key_bswap ./libcrypto.a(e_padlock.o)
>> >>> padlock_cbc_encrypt ./libcrypto.a(e_padlock.o)
>> >>> padlock_cfb_encrypt ./libcrypto.a(e_padlock.o)
>> >>> padlock_ecb_encrypt ./libcrypto.a(e_padlock.o)
>> >>> padlock_ofb_encrypt ./libcrypto.a(e_padlock.o)
>> >>> padlock_aes_block ./libcrypto.a(e_padlock.o)
>> >>> ld: fatal: symbol referencing errors. No output written to
>> > apps/openssl
>> >>> ../Makefile.shared:186: recipe for target 'link_app.' failed
>> >>> make[1]: *** [link_app.] Error 2
>> >>>
>> >>>
>> >>> % ../Configure solaris-x86-cc no-asm
>> >>>
>> >>> % make
>> >>> % make test
>> >>> passes.
>> >>>
>> >>>
>> >>> OS: Solaris10 x86/x64
>> >>> cc: /opt/solarisstudio12.4/bin/cc
>> >>>
>> >>>
>> >>> Best Regards,
>> >>>
>> >>> --- Kiyoshi 
>> >>>
>> >>>
>> >>
>> >>
>> >> --
>> >> Richard Levitte
>> >> levi...@openssl.org
>> >>
>> >> --
>> >> Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4452
>> >> Please log in as guest with password guest if prompted
>> >>
>> >
>>
>
>
>--
>Richard Levitte
>levi...@openssl.org
>
>-- 
>Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4452
>Please log in as guest with password guest if prompted
>
>
>
>


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4452
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4452] openssl-1.1.0-pre4: undefined symbol for solaris-x86-cc

2016-03-21 Thread Kiyoshi KANAZAWA via RT
% ../Configure solaris-x86-cc shared; make; make test
also passes.

Regards,

--- Kiyoshi 





> Tried with openssl-SNAP-20160320,
> but have the same result, not fixed yet.
> 
> 
> Regards,
> 
> --- Kiyoshi 
> 
> 
> 
> 
>>  If you have the possibility, please try a fresh checkout of the master 
> branch
>>  and see if this is fixed.
>> 
>>  Cheers,
>>  Richard
>> 
>>  Vid Sat, 19 Mar 2016 kl. 10.55.59, skrev yoi_no_myou...@yahoo.co.jp:
>>>   With patch for #,
>>> 
>>>   % mkdir build_solaris-x86-cc
>>>   % cd build_solaris-x86-cc
>>>   % ../Configure solaris-x86-cc
>>>   % make
>>>   :
>>>   Undefined first referenced
>>>   symbol in file
>>>   padlock_xstore ./libcrypto.a(e_padlock.o)
>>>   padlock_capability ./libcrypto.a(e_padlock.o)
>>>   padlock_reload_key ./libcrypto.a(e_padlock.o)
>>>   padlock_ctr32_encrypt ./libcrypto.a(e_padlock.o)
>>>   padlock_key_bswap ./libcrypto.a(e_padlock.o)
>>>   padlock_cbc_encrypt ./libcrypto.a(e_padlock.o)
>>>   padlock_cfb_encrypt ./libcrypto.a(e_padlock.o)
>>>   padlock_ecb_encrypt ./libcrypto.a(e_padlock.o)
>>>   padlock_ofb_encrypt ./libcrypto.a(e_padlock.o)
>>>   padlock_aes_block ./libcrypto.a(e_padlock.o)
>>>   ld: fatal: symbol referencing errors. No output written to 
> apps/openssl
>>>   ../Makefile.shared:186: recipe for target 'link_app.' failed
>>>   make[1]: *** [link_app.] Error 2
>>> 
>>> 
>>>   % ../Configure solaris-x86-cc no-asm
>>> 
>>>   % make
>>>   % make test
>>>   passes.
>>> 
>>> 
>>>   OS: Solaris10 x86/x64
>>>   cc: /opt/solarisstudio12.4/bin/cc
>>> 
>>> 
>>>   Best Regards,
>>> 
>>>   --- Kiyoshi 
>>> 
>>> 
>> 
>> 
>>  --
>>  Richard Levitte
>>  levi...@openssl.org
>> 
>>  -- 
>>  Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4452
>>  Please log in as guest with password guest if prompted
>> 
>


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4452
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4459] openssl-1.1.0-pre4: make install fals on solaris64-x86_64-gcc.

2016-03-21 Thread Kiyoshi KANAZAWA via RT
Thank you, Richard.
Make install succeeded with your new patch.

--- Kiyoshi 




> My earlier patch was incorrect, it introduced another syntax error. Try this
> one instead.
> 
> --
> Richard Levitte
> levi...@openssl.org


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4459
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4459] openssl-1.1.0-pre4: make install fals on solaris64-x86_64-gcc.

2016-03-20 Thread Kiyoshi KANAZAWA via RT
Hmm,

% ./config --prefix=/tmp/install_check shared
makes 'ENGINES=engines/capi.so engines/dasync.so engines/ossltest.so 
engines/padlock.so'

I confirmed
% make install
passes in this case.
('A' is also echoed.)


Regards,

--- Kiyoshi <yoi_no_myou...@yahoo.co.jp>





> Still I have the same error.
> 
> % make install_engines
> *** Installing engines
> /bin/sh: syntax error at line 2: `;' unexpected
> Makefile:251: recipe for target 'install_engines' failed
> make: *** [install_engines] Error 2
> 
> 
> 
> I tried to enter 'echo "A"' before for loop, such as
> --- Makefile    2016-03-19 14:08:21.655179000 +0100
> +++ Makefile    2016-03-20 17:08:48.298012000 +0100
> @@ -284,7 +284,9 @@
>     @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; 
> exit 1)
>     @$(PERL) $(SRCDIR)/util/mkdir-p.pl 
> $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/
>     @echo "*** Installing engines"
> -   @set -e; for e in $(ENGINES); do \
> +   @set -e; if [ "X$(ENGINES)" != "X" ]; then \
> +   echo "A"; \
> +   for e in $(ENGINES); do \
>     fn=`basename $$e`; \
>     if [ "$$fn" = 'ossltest.so' ]; then \
>     continue; \
> @@ -294,7 +295,8 @@
>     chmod 755 $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$$fn.new; \
>     mv -f $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$$fn.new \
>   $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$$fn; \
> -   done
> +   done; \
> +   fi
>  
>  uninstall_engines:
>     @echo "*** Uninstalling engines"
> 
> 
> % make install_engines
> *** Installing engines
> /bin/sh: syntax error at line 3: `;' unexpected
> Makefile:251: recipe for target 'install_engines' failed
> make: *** [install_engines] Error 2
> 
> 
> "A" is not echoed, but
> 
> '/bin/sh: syntax error at line 2: `;' unexpected'
> changed to
> '/bin/sh: syntax error at line 3: `;' unexpected'
> 
> 
> Inside of if condition is not executed,
> but seems to be checked by sh.
> 
> 
> BTW, is it OK that ENGINES is empty on Solaris 10 x86/x64,
> although
> ENGINES=engines/capi.so engines/dasync.so engines/ossltest.so 
> engines/padlock.so
> on your Solaris Sparc ?
> 
> 
> Regards,
> 
> --- Kiyoshi <yoi_no_myou...@yahoo.co.jp>
> 
> 
> 
> 
> 
>>  I'm sorry and thanks for your patience: there's a bug in the patch: 
> 
>>  Replace the $$(ENGINE) in the line
>> 
>>  @set -e; if [ "X$$(ENGINES)" != "X" ]; then \
>> 
>>  by $(ENGINE) (no "$$" instead just a single "$").
>> 
>>  The new line is
>> 
>>  @set -e; if [ "X$(ENGINES)" != "X" ]; then \
>> 
>>  (plus a tab and some additional whitespace in front).
>> 
>>  The wrong "X$$(ENGINES)" is reduced by make into 
>>  "X$(ENGINES)" which 
>>  doesn't make sense in shell. The "X$$ENGINES" in your 
> suggested 
>>  echo 
>>  line is reduced to "X$ENGINES" and since there's no shell 
> variable 
>>  named 
>>  ENGINES set, this is reduced by the shell to "X". But I want 
>>  "X$(ENGINES)" in my patch: make reduces this to "X", 
> because 
>>  the make 
>>  variable ENGINES has an empty value and that's what we want to test in 
>>  the new "if".
>> 
>>  Regards,
>> 
>>  Rainer
>> 
>>  Am 21.03.2016 um 00:05 schrieb Kiyoshi KANAZAWA via RT:
>>>   Hello,
>>> 
>>>   Tried your openssl-install-engines.patch, but have the same result.
>>>   % make install_engines
>>>   *** Installing engines
>>>   /bin/sh: syntax error at line 2: `;' unexpected
>>>   Makefile:251: recipe for target 'install_engines' failed
>>>   make: *** [install_engines] Error 2
>>> 
>>> 
>>>   I think it should work, and added, for double check,
>>>   @echo "XENGINES="X$$ENGINES
>>>   after the line
>>> 
>>>   @echo "*** Installing engines".
>>>   % make install_engines
>>>   *** Installing engines
>>>   XENGINES=X
>>>   /bin/sh: syntax error at line 2: `;' unexpected
>>>   Makefile:251: recipe for target 'install_engines' failed
>>>   make: *** [install_engines] Error 2
>>> 
>>> 
>>> 
>>>   Regards,
>>> 
>>>   --- Kiyoshi <yoi_no_myou...@yahoo.co.jp>
>>> 
>>> 
>>> 
>>>   - Original Message -
>>>>   

[openssl-dev] [openssl.org #4459] openssl-1.1.0-pre4: make install fals on solaris64-x86_64-gcc.

2016-03-20 Thread Kiyoshi KANAZAWA via RT
Still I have the same error.

% make install_engines
*** Installing engines
/bin/sh: syntax error at line 2: `;' unexpected
Makefile:251: recipe for target 'install_engines' failed
make: *** [install_engines] Error 2



I tried to enter 'echo "A"' before for loop, such as
--- Makefile    2016-03-19 14:08:21.655179000 +0100
+++ Makefile    2016-03-20 17:08:48.298012000 +0100
@@ -284,7 +284,9 @@
    @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
    @$(PERL) $(SRCDIR)/util/mkdir-p.pl 
$(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/
    @echo "*** Installing engines"
-   @set -e; for e in $(ENGINES); do \
+   @set -e; if [ "X$(ENGINES)" != "X" ]; then \
+   echo "A"; \
+   for e in $(ENGINES); do \
    fn=`basename $$e`; \
    if [ "$$fn" = 'ossltest.so' ]; then \
    continue; \
@@ -294,7 +295,8 @@
    chmod 755 $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$$fn.new; \
    mv -f $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$$fn.new \
  $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$$fn; \
-   done
+   done; \
+   fi
 
 uninstall_engines:
    @echo "*** Uninstalling engines"


% make install_engines
*** Installing engines
/bin/sh: syntax error at line 3: `;' unexpected
Makefile:251: recipe for target 'install_engines' failed
make: *** [install_engines] Error 2


"A" is not echoed, but

'/bin/sh: syntax error at line 2: `;' unexpected'
changed to
'/bin/sh: syntax error at line 3: `;' unexpected'


Inside of if condition is not executed,
but seems to be checked by sh.


BTW, is it OK that ENGINES is empty on Solaris 10 x86/x64,
although
ENGINES=engines/capi.so engines/dasync.so engines/ossltest.so engines/padlock.so
on your Solaris Sparc ?


Regards,

--- Kiyoshi <yoi_no_myou...@yahoo.co.jp>





> I'm sorry and thanks for your patience: there's a bug in the patch: 
> Replace the $$(ENGINE) in the line
> 
> @set -e; if [ "X$$(ENGINES)" != "X" ]; then \
> 
> by $(ENGINE) (no "$$" instead just a single "$").
> 
> The new line is
> 
> @set -e; if [ "X$(ENGINES)" != "X" ]; then \
> 
> (plus a tab and some additional whitespace in front).
> 
> The wrong "X$$(ENGINES)" is reduced by make into 
> "X$(ENGINES)" which 
> doesn't make sense in shell. The "X$$ENGINES" in your suggested 
> echo 
> line is reduced to "X$ENGINES" and since there's no shell variable 
> named 
> ENGINES set, this is reduced by the shell to "X". But I want 
> "X$(ENGINES)" in my patch: make reduces this to "X", because 
> the make 
> variable ENGINES has an empty value and that's what we want to test in 
> the new "if".
> 
> Regards,
> 
> Rainer
> 
> Am 21.03.2016 um 00:05 schrieb Kiyoshi KANAZAWA via RT:
>>  Hello,
>> 
>>  Tried your openssl-install-engines.patch, but have the same result.
>>  % make install_engines
>>  *** Installing engines
>>  /bin/sh: syntax error at line 2: `;' unexpected
>>  Makefile:251: recipe for target 'install_engines' failed
>>  make: *** [install_engines] Error 2
>> 
>> 
>>  I think it should work, and added, for double check,
>>  @echo "XENGINES="X$$ENGINES
>>  after the line
>> 
>>  @echo "*** Installing engines".
>>  % make install_engines
>>  *** Installing engines
>>  XENGINES=X
>>  /bin/sh: syntax error at line 2: `;' unexpected
>>  Makefile:251: recipe for target 'install_engines' failed
>>  make: *** [install_engines] Error 2
>> 
>> 
>> 
>>  Regards,
>> 
>>  --- Kiyoshi <yoi_no_myou...@yahoo.co.jp>
>> 
>> 
>> 
>>  - Original Message -
>>>  From: Rainer Jung via RT <r...@openssl.org>
>>>  To: yoi_no_myou...@yahoo.co.jp
>>>  Cc: openssl-dev@openssl.org
>>>  Date: 2016/3/21, Mon 01:16
>>>  Subject: Re: [openssl-dev] [openssl.org #4459] openssl-1.1.0-pre4: make 
> install fals on solaris64-x86_64-gcc.
>>> 
>>>  Am 20.03.2016 um 16:46 schrieb Kiyoshi KANAZAWA via RT:
>>>>    Hello,
>>>> 
>>>>    Yes, ENGINES in the top level Makefile is empty.
>>>> 
>>>>        22:  LIBS=libcrypto.a libssl.a
>>>>        23:  SHLIBS=
>>>>        24:  ENGINES=
>>>>        25:  PROGRAMS=apps/openssl
>>> 
>>>  OK, that explains the error, because the install_engines target then
>>>  contains a shell snippet
>>> 
>>>      for e in ; do
>>> 
>>>  ($(ENGINES) is empty, but since it is not used as a sh

[openssl-dev] [openssl.org #4459] openssl-1.1.0-pre4: make install fals on solaris64-x86_64-gcc.

2016-03-20 Thread Kiyoshi KANAZAWA via RT
Hello,

Tried your openssl-install-engines.patch, but have the same result.
% make install_engines
*** Installing engines
/bin/sh: syntax error at line 2: `;' unexpected
Makefile:251: recipe for target 'install_engines' failed
make: *** [install_engines] Error 2


I think it should work, and added, for double check,
@echo "XENGINES="X$$ENGINES
after the line

@echo "*** Installing engines".
% make install_engines
*** Installing engines
XENGINES=X
/bin/sh: syntax error at line 2: `;' unexpected
Makefile:251: recipe for target 'install_engines' failed
make: *** [install_engines] Error 2



Regards,

--- Kiyoshi <yoi_no_myou...@yahoo.co.jp>



- Original Message -
> From: Rainer Jung via RT <r...@openssl.org>
> To: yoi_no_myou...@yahoo.co.jp
> Cc: openssl-dev@openssl.org
> Date: 2016/3/21, Mon 01:16
> Subject: Re: [openssl-dev] [openssl.org #4459] openssl-1.1.0-pre4: make 
> install fals on solaris64-x86_64-gcc.
> 
> Am 20.03.2016 um 16:46 schrieb Kiyoshi KANAZAWA via RT:
>>  Hello,
>> 
>>  Yes, ENGINES in the top level Makefile is empty.
>> 
>>      22:  LIBS=libcrypto.a libssl.a
>>      23:  SHLIBS=
>>      24:  ENGINES=
>>      25:  PROGRAMS=apps/openssl
> 
> OK, that explains the error, because the install_engines target then 
> contains a shell snippet
> 
>    for e in ; do
> 
> ($(ENGINES) is empty, but since it is not used as a shell variable but 
> instead as a make variable, that is the resulting for loop). That results in
> 
>    /bin/sh: syntax error at line 1: `;' unexpected
> 
> at least for /bin/sh on Solaris.
> 
> So we need to add special handling in $(ENGINES) is empty.
> 
> You could try the attached patch.
> 
> Regards,
> 
> Rainer
> 
> -- 
> Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4459
> Please log in as guest with password guest if prompted
>


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4459
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4459] openssl-1.1.0-pre4: make install fals on solaris64-x86_64-gcc.

2016-03-20 Thread Kiyoshi KANAZAWA via RT
Hello,

Yes, ENGINES in the top level Makefile is empty.

   22:  LIBS=libcrypto.a libssl.a
   23:  SHLIBS=
   24:  ENGINES=
   25:  PROGRAMS=apps/openssl



Changing Makefile has no effect.

% make install
    :
/bin/sh: syntax error at line 1: `;' unexpected
Makefile:251: recipe for target 'install_engines' failed
make: *** [install_engines] Error 2



Makefile is changed as:
% diff -c5 Makefile.orig Makefile
*** Makefile.orig   2016-03-21 00:26:45.677312045 +0900
--- Makefile    2016-03-21 00:41:29.792734235 +0900
***
*** 249,259 
  
  install_engines:
    @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
    @$(PERL) $(SRCDIR)/util/mkdir-p.pl 
$(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/
    @echo "*** Installing engines"
!   @set -e; for e in $(ENGINES); do \
    fn=`basename $$e`; \
    if [ "$$fn" = 'ossltest.so' ]; then \
    continue; \
    fi; \
    echo "install $$e -> 
$(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$$fn"; \
--- 249,259 
  
  install_engines:
    @[ -n "$(INSTALLTOP)" ] || (echo INSTALLTOP should not be empty; exit 1)
    @$(PERL) $(SRCDIR)/util/mkdir-p.pl 
$(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/
    @echo "*** Installing engines"
!   @set -ex; for e in $(ENGINES); do \
    fn=`basename $$e`; \
    if [ "$$fn" = 'ossltest.so' ]; then \
    continue; \
    fi; \
    echo "install $$e -> 
$(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$$fn"; \



Regards,

--- Kiyoshi <yoi_no_myou...@yahoo.co.jp>




> Am 20.03.2016 um 15:07 schrieb Kiyoshi KANAZAWA via RT:
>>  With patch for #,
>> 
>> 
>>  % mkdir /tmp/install_check
>>  % ./config --prefix=/tmp/install_check
>> 
>>       :
>>  Configured for solaris64-x86_64-gcc.
>> 
>>  % make
>>  (passed)
>> 
>>  % make test
>>  (passed)
>> 
>>  % make install
>>       :
>>  install openssl.pc -> /tmp/install_check/lib/pkgconfig/openssl.pc
>>  *** Installing engines
>>  /bin/sh: syntax error at line 1: `;' unexpected
>>  Makefile:251: recipe for target 'install_engines' failed
>>  make: *** [install_engines] Error 2
>> 
>> 
>> 
>>  OS: Solaris10 x86/x64
> 
> Could it be that the ENGINES variable in the top level Makefile is 
> empty? On my Solaris Sparc system it is
> 
> ENGINES=engines/capi.so engines/dasync.so engines/ossltest.so 
> engines/padlock.so
> 
> (line 24)
> 
> To debug, you might look for the line starting with
> 
> install_engines:
> 
> and then change the
> 
> @set -e; ...
> 
> a few lines down into
> 
> @set -ex; ...
> 
> (add the "x") and run "make install" again.
> 
> Regards,
> 
> Rainer
> 
> 
> -- 
> Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4459
> Please log in as guest with password guest if prompted
>


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4459
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4459] openssl-1.1.0-pre4: make install fals on solaris64-x86_64-gcc.

2016-03-20 Thread Kiyoshi KANAZAWA via RT
With patch for #,


% mkdir /tmp/install_check
% ./config --prefix=/tmp/install_check

    :
Configured for solaris64-x86_64-gcc.

% make
(passed)

% make test
(passed)

% make install
    :
install openssl.pc -> /tmp/install_check/lib/pkgconfig/openssl.pc
*** Installing engines
/bin/sh: syntax error at line 1: `;' unexpected
Makefile:251: recipe for target 'install_engines' failed
make: *** [install_engines] Error 2



OS: Solaris10 x86/x64


Best Regards,

--- Kiyoshi 



-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4459
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4454] openssl-1.1.0-pre4: zlib-dynamic problems

2016-03-20 Thread Kiyoshi KANAZAWA via RT
Tested with patch for #.


(1) Default choice
    INSTALL says zlib-dynamic is the default choice.
    But ./config sets no-zlib-dynamic [default]



(2) Make error with solaris64-x86_64-gcc shared zlib-dynamic
    % mkdir build
    % cd build
    % ../Configure solaris64-x86_64-gcc shared zlib-dynamic
    % make
  :
        Undefined   first referenced
     symbol in file
    BIO_f_zlib  ./libcrypto.so
    ld: fatal: symbol referencing errors. No output written to apps/openssl
    collect2: error: ld returned 1 exit status
    ../Makefile.shared:384: recipe for target 'link_app.solaris' failed

    Combination of shared & zlib-dynamic causes this.
    % ../Configure solaris64-x86_64-gcc shared; make; make test
    passes.
    % ../Configure solaris64-x86_64-gcc zlib-dynamic; make
    passes, but make test fails (see (3)).


(3) Test error with solaris64-x86_64-gcc zlib-dynamic
    % ../Configure solaris64-x86_64-gcc zlib-dynamic
    % make
    % make test
  :
        #   Failed test 'compressed content test streaming PEM format'
        #   at ../../test/recipes/80-test_cms.t line 452.
        # Looks like you failed 1 test of 11.

    #   Failed test 'CMS <=> CMS consistency tests, modified key parameters
    # '
    #   at ../../test/recipes/80-test_cms.t line 458.
    # Looks like you failed 1 test of 4.
    ../../test/recipes/80-test_cms.t . 
    Dubious, test returned 1 (wstat 256, 0x100)
    Failed 1/4 subtests 



Test environment
OS: Solaris10 x86/x64
Gcc: version 4.8.5
ld: /usr/ccs/bin/ld


--- Kiyoshi 



-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4454
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4452] openssl-1.1.0-pre4: undefined symbol for solaris-x86-cc

2016-03-20 Thread Kiyoshi KANAZAWA via RT
Tried with openssl-SNAP-20160320,
but have the same result, not fixed yet.


Regards,

--- Kiyoshi 




> If you have the possibility, please try a fresh checkout of the master branch
> and see if this is fixed.
> 
> Cheers,
> Richard
> 
> Vid Sat, 19 Mar 2016 kl. 10.55.59, skrev yoi_no_myou...@yahoo.co.jp:
>>  With patch for #,
>> 
>>  % mkdir build_solaris-x86-cc
>>  % cd build_solaris-x86-cc
>>  % ../Configure solaris-x86-cc
>>  % make
>>  :
>>  Undefined first referenced
>>  symbol in file
>>  padlock_xstore ./libcrypto.a(e_padlock.o)
>>  padlock_capability ./libcrypto.a(e_padlock.o)
>>  padlock_reload_key ./libcrypto.a(e_padlock.o)
>>  padlock_ctr32_encrypt ./libcrypto.a(e_padlock.o)
>>  padlock_key_bswap ./libcrypto.a(e_padlock.o)
>>  padlock_cbc_encrypt ./libcrypto.a(e_padlock.o)
>>  padlock_cfb_encrypt ./libcrypto.a(e_padlock.o)
>>  padlock_ecb_encrypt ./libcrypto.a(e_padlock.o)
>>  padlock_ofb_encrypt ./libcrypto.a(e_padlock.o)
>>  padlock_aes_block ./libcrypto.a(e_padlock.o)
>>  ld: fatal: symbol referencing errors. No output written to apps/openssl
>>  ../Makefile.shared:186: recipe for target 'link_app.' failed
>>  make[1]: *** [link_app.] Error 2
>> 
>> 
>>  % ../Configure solaris-x86-cc no-asm
>> 
>>  % make
>>  % make test
>>  passes.
>> 
>> 
>>  OS: Solaris10 x86/x64
>>  cc: /opt/solarisstudio12.4/bin/cc
>> 
>> 
>>  Best Regards,
>> 
>>  --- Kiyoshi 
>> 
>> 
> 
> 
> --
> Richard Levitte
> levi...@openssl.org
> 
> -- 
> Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4452
> Please log in as guest with password guest if prompted
>


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4452
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4444] [openssl-1.1.0-pre4] Make fails with "recipe for target 'depend' failed" on solaris64-x86_64

2016-03-19 Thread Kiyoshi KANAZAWA via RT
% ./config --prefix=/opt/openssl
Operating system: i86pc-whatever-solaris2
Configuring for solaris64-x86_64-gcc
Configuring OpenSSL version 1.1.0-pre4 (0x0x1014L)
    no-crypto-mdebug [default]  OPENSSL_NO_CRYPTO_MDEBUG (skip dir)
    no-crypto-mdebug-backtrace [forced]   OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE 
(skip dir)
    no-dynamic-engine [forced]  
    no-ec_nistp_64_gcc_128 [default]  OPENSSL_NO_EC_NISTP_64_GCC_128 (skip dir)
    no-egd  [default]  OPENSSL_NO_EGD (skip dir)
    no-heartbeats   [default]  OPENSSL_NO_HEARTBEATS (skip dir)
    no-md2  [default]  OPENSSL_NO_MD2 (skip dir)
    no-rc5  [default]  OPENSSL_NO_RC5 (skip dir)
    no-sctp [default]  OPENSSL_NO_SCTP (skip dir)
    no-shared   [default] 
    no-ssl-trace    [default]  OPENSSL_NO_SSL_TRACE (skip dir)
    no-ssl3 [default]  OPENSSL_NO_SSL3 (skip dir)
    no-ssl3-method  [default]  OPENSSL_NO_SSL3_METHOD (skip dir)
    no-unit-test    [default]  OPENSSL_NO_UNIT_TEST (skip dir)
    no-weak-ssl-ciphers [default]  OPENSSL_NO_WEAK_SSL_CIPHERS (skip dir)
    no-zlib [default] 
    no-zlib-dynamic [default] 
Configuring for solaris64-x86_64-gcc
IsMK1MF   =no
CC    =gcc
CFLAG =-m64 -Wall -DL_ENDIAN -O3 -pthread -DFILIO_H  -Wa,--noexecstack
SHARED_CFLAG  =-fPIC
DEFINES   =DSO_DLFCN HAVE_DLFCN_H OPENSSL_THREADS OPENSSL_NO_DYNAMIC_ENGINE 
OPENSSL_PIC OPENSSL_IA32_SSE2 OPENSSL_BN_ASM_MONT OPENSSL_BN_ASM_MONT5 
OPENSSL_BN_ASM_GF2m SHA1_ASM SHA256_ASM SHA512_ASM MD5_ASM AES_ASM VPAES_ASM 
BSAES_ASM GHASH_ASM ECP_NISTZ256_ASM POLY1305_ASM
LFLAG =
PLIB_LFLAG    =
EX_LIBS   =-lresolv -lsocket -lnsl -ldl 
APPS_OBJ  =
CPUID_OBJ =x86_64cpuid.o
UPLINK_OBJ    =
BN_ASM    =asm/x86_64-gcc.o x86_64-mont.o x86_64-mont5.o x86_64-gf2m.o 
rsaz_exp.o rsaz-x86_64.o rsaz-avx2.o
EC_ASM    =ecp_nistz256.o ecp_nistz256-x86_64.o
DES_ENC   =des_enc.o fcrypt_b.o
AES_ENC   =aes-x86_64.o vpaes-x86_64.o bsaes-x86_64.o aesni-x86_64.o 
aesni-sha1-x86_64.o aesni-sha256-x86_64.o aesni-mb-x86_64.o
BF_ENC    =bf_enc.o
CAST_ENC  =c_enc.o
RC4_ENC   =rc4-x86_64.o rc4-md5-x86_64.o
RC5_ENC   =rc5_enc.o
MD5_OBJ_ASM   =md5-x86_64.o
SHA1_OBJ_ASM  =sha1-x86_64.o sha256-x86_64.o sha512-x86_64.o sha1-mb-x86_64.o 
sha256-mb-x86_64.o
RMD160_OBJ_ASM=
CMLL_ENC  =cmll-x86_64.o cmll_misc.o
MODES_OBJ =ghash-x86_64.o aesni-gcm-x86_64.o
PADLOCK_OBJ   =e_padlock-x86_64.o
CHACHA_ENC    =chacha-x86_64.o
POLY1305_OBJ  =poly1305-x86_64.o
BLAKE2_OBJ    =
PROCESSOR =
RANLIB    =/usr/ccs/bin/ranlib
ARFLAGS   =
PERL  =/opt/perl5/bin/perl

SIXTY_FOUR_BIT_LONG mode

Configured for solaris64-x86_64-gcc.


% make
  :
make[1]: Leaving directory '/tmp/openssl-1.1.0-pre4'
/opt/perl5/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
    "-oMakefile" apps/CA.pl.in > "apps/CA.pl"
chmod a+x apps/CA.pl
/opt/perl5/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
    "-oMakefile" tools/c_rehash.in > "tools/c_rehash"
chmod a+x tools/c_rehash
Makefile:170: recipe for target 'depend' failed
make: *** [depend] Error 1



Other information
OS: Solaris10 x86/64

perl version:v5.22.1
gcc version: 4.8.5
ld: /usr/ccs/bin/ld


Best Regards,


--- Kiyoshi 


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] [openssl.org #4453] openssl-1.1.0-pre4: make fails with 'wrong ELF class: ELFCLASS64' on solaris64-x86_64-cc

2016-03-19 Thread Kiyoshi KANAZAWA via RT
Hello, 



> Already done.
> 
>>  It seems to be better to change '-xarch=generic64' to 
> '-m64' in line
>>  196 & 201 of the same file, too.
> 
> Hmm, not in line 191?

Sorry, not 196 but 191.


Regards,

--- Kiyoshi 



-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4453
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4452] openssl-1.1.0-pre4: undefined symbol for solaris-x86-cc

2016-03-19 Thread Kiyoshi KANAZAWA via RT
With patch for #,

% mkdir build_solaris-x86-cc
% cd build_solaris-x86-cc
% ../Configure solaris-x86-cc
% make
    :
Undefined   first referenced
 symbol in file
padlock_xstore  ./libcrypto.a(e_padlock.o)
padlock_capability  ./libcrypto.a(e_padlock.o)
padlock_reload_key  ./libcrypto.a(e_padlock.o)
padlock_ctr32_encrypt   ./libcrypto.a(e_padlock.o)
padlock_key_bswap   ./libcrypto.a(e_padlock.o)
padlock_cbc_encrypt ./libcrypto.a(e_padlock.o)
padlock_cfb_encrypt ./libcrypto.a(e_padlock.o)
padlock_ecb_encrypt ./libcrypto.a(e_padlock.o)
padlock_ofb_encrypt ./libcrypto.a(e_padlock.o)
padlock_aes_block   ./libcrypto.a(e_padlock.o)
ld: fatal: symbol referencing errors. No output written to apps/openssl
../Makefile.shared:186: recipe for target 'link_app.' failed
make[1]: *** [link_app.] Error 2


% ../Configure solaris-x86-cc no-asm

% make
% make test
passes.


OS: Solaris10 x86/x64
cc: /opt/solarisstudio12.4/bin/cc


Best Regards,

--- Kiyoshi 



-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4452
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4453] openssl-1.1.0-pre4: make fails with 'wrong ELF class: ELFCLASS64' on solaris64-x86_64-cc

2016-03-19 Thread Kiyoshi KANAZAWA via RT
Hello,

Tested with patch for #, and removing gcc from path.

% ./config
Operating system: i86pc-whatever-solaris2
Configuring for solaris64-x86_64-cc
Configuring OpenSSL version 1.1.0-pre4 (0x0x1014L)
    no-crypto-mdebug [default]  OPENSSL_NO_CRYPTO_MDEBUG (skip dir)
    no-crypto-mdebug-backtrace [forced]   OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE 
(skip dir)
    no-dynamic-engine [forced]  
    no-ec_nistp_64_gcc_128 [default]  OPENSSL_NO_EC_NISTP_64_GCC_128 (skip dir)
    no-egd  [default]  OPENSSL_NO_EGD (skip dir)
    no-heartbeats   [default]  OPENSSL_NO_HEARTBEATS (skip dir)
    no-md2  [default]  OPENSSL_NO_MD2 (skip dir)
    no-rc5  [default]  OPENSSL_NO_RC5 (skip dir)
    no-sctp [default]  OPENSSL_NO_SCTP (skip dir)
    no-shared   [default] 
    no-ssl-trace    [default]  OPENSSL_NO_SSL_TRACE (skip dir)
    no-ssl3 [default]  OPENSSL_NO_SSL3 (skip dir)
    no-ssl3-method  [default]  OPENSSL_NO_SSL3_METHOD (skip dir)
    no-unit-test    [default]  OPENSSL_NO_UNIT_TEST (skip dir)
    no-weak-ssl-ciphers [default]  OPENSSL_NO_WEAK_SSL_CIPHERS (skip dir)
    no-zlib [default] 
    no-zlib-dynamic [default] 
Configuring for solaris64-x86_64-cc
IsMK1MF   =no
CC    =cc
CFLAG =-xarch=generic64 -xstrconst -Xa -DL_ENDIAN -xO5 -xdepend 
-xbuiltin -D_REENTRANT -DFILIO_H 
SHARED_CFLAG  =-KPIC
DEFINES   =DSO_DLFCN HAVE_DLFCN_H OPENSSL_THREADS OPENSSL_NO_DYNAMIC_ENGINE 
OPENSSL_PIC OPENSSL_IA32_SSE2 OPENSSL_BN_ASM_MONT OPENSSL_BN_ASM_MONT5 
OPENSSL_BN_ASM_GF2m SHA1_ASM SHA256_ASM SHA512_ASM MD5_ASM AES_ASM VPAES_ASM 
BSAES_ASM GHASH_ASM ECP_NISTZ256_ASM POLY1305_ASM
LFLAG =-mt
PLIB_LFLAG    =
EX_LIBS   =-lresolv -lsocket -lnsl -ldl -lpthread 
APPS_OBJ  =
CPUID_OBJ =x86_64cpuid.o
UPLINK_OBJ    =
BN_ASM    =asm/x86_64-gcc.o x86_64-mont.o x86_64-mont5.o x86_64-gf2m.o 
rsaz_exp.o rsaz-x86_64.o rsaz-avx2.o
EC_ASM    =ecp_nistz256.o ecp_nistz256-x86_64.o
DES_ENC   =des_enc.o fcrypt_b.o
AES_ENC   =aes-x86_64.o vpaes-x86_64.o bsaes-x86_64.o aesni-x86_64.o 
aesni-sha1-x86_64.o aesni-sha256-x86_64.o aesni-mb-x86_64.o
BF_ENC    =bf_enc.o
CAST_ENC  =c_enc.o
RC4_ENC   =rc4-x86_64.o rc4-md5-x86_64.o
RC5_ENC   =rc5_enc.o
MD5_OBJ_ASM   =md5-x86_64.o
SHA1_OBJ_ASM  =sha1-x86_64.o sha256-x86_64.o sha512-x86_64.o sha1-mb-x86_64.o 
sha256-mb-x86_64.o
RMD160_OBJ_ASM=
CMLL_ENC  =cmll-x86_64.o cmll_misc.o
MODES_OBJ =ghash-x86_64.o aesni-gcm-x86_64.o
PADLOCK_OBJ   =e_padlock-x86_64.o
CHACHA_ENC    =chacha-x86_64.o
POLY1305_OBJ  =poly1305-x86_64.o
BLAKE2_OBJ    =
PROCESSOR =
RANLIB    =/usr/ccs/bin/ranlib
ARFLAGS   =
PERL  =/opt/perl5/bin/perl

SIXTY_FOUR_BIT_LONG mode

Configured for solaris64-x86_64-cc.



% make
    :
make[1]: Entering directory '/tmp/openssl-1.1.0-pre4'
( :; LIBDEPS="${LIBDEPS:--L. -lssl -L. -lcrypto -lresolv -lsocket -lnsl -ldl 
-lpthread }"; LDCMD="${LDCMD:-cc}"; LDFLAGS="${LDFLAGS:--DDSO_DLFCN 
-DHAVE_DLFCN_H -DOPENSSL_THREADS -DOPENSSL_NO_DYNAMIC_ENGINE -DOPENSSL_PIC 
-DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 
-DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM 
-DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM 
-DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines\"" 
-xarch=generic64 -xstrconst -Xa -DL_ENDIAN -xO5 -xdepend -xbuiltin -D_REENTRANT 
-DFILIO_H   -mt}"; LIBPATH=`for x in $LIBDEPS; do echo $x; done | sed -e 's/^ 
*-L//;t' -e d | uniq`; LIBPATH=`echo $LIBPATH | sed -e 's/ /:/g'`; echo 
LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o 
${APPNAME:=apps/openssl} apps/app_rand.o apps/apps.o apps/asn1pars.o apps/ca.o 
apps/ciphers.o apps/cms.o apps/crl.o apps/crl2p7.o apps/dgst.o apps/dhparam.o
 apps/dsa.o apps/dsaparam.o apps/ec.o apps/ecparam.o apps/enc.o apps/engine.o 
apps/errstr.o apps/gendsa.o apps/genpkey.o apps/genrsa.o apps/nseq.o 
apps/ocsp.o apps/openssl.o apps/opt.o apps/passwd.o apps/pkcs12.o apps/pkcs7.o 
apps/pkcs8.o apps/pkey.o apps/pkeyparam.o apps/pkeyutl.o apps/prime.o 
apps/rand.o apps/rehash.o apps/req.o apps/rsa.o apps/rsautl.o apps/s_cb.o 
apps/s_client.o apps/s_server.o apps/s_socket.o apps/s_time.o apps/sess_id.o 
apps/smime.o apps/speed.o apps/spkac.o apps/srp.o apps/ts.o apps/verify.o 
apps/version.o apps/x509.o ${LIBDEPS}; 
LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD} ${LDFLAGS} -o 
${APPNAME:=apps/openssl} apps/app_rand.o apps/apps.o apps/asn1pars.o apps/ca.o 
apps/ciphers.o apps/cms.o apps/crl.o apps/crl2p7.o apps/dgst.o apps/dhparam.o 
apps/dsa.o apps/dsaparam.o apps/ec.o apps/ecparam.o apps/enc.o apps/engine.o 
apps/errstr.o apps/gendsa.o apps/genpkey.o apps/genrsa.o apps/nseq.o 
apps/ocsp.o apps/openssl.o apps/opt.o
 apps/passwd.o apps/pkcs12.o apps/pkcs7.o apps/pkcs8.o apps/pkey.o 
apps/pkeyparam.o apps/pkeyutl.o apps/prime.o apps/rand.o apps/rehash.o 
apps/req.o apps/rsa.o apps/rsautl.o apps/s_cb.o 

Re: [openssl-dev] [openssl.org #4353] openssl-1.0.2f dependency error

2016-02-27 Thread Kiyoshi KANAZAWA via RT
Hmm...

% make libcrypto.so.1.0.0 libssl.so.1.0.0
always remakes them.

It is better to change Makefile in top, but too complicated for me.
Easier sample patch is as follows.


diff -cr ../openssl-1.0.2f.orig/crypto/Makefile ./crypto/Makefile
*** ../openssl-1.0.2f.orig/crypto/Makefile  2016-01-28 22:57:08.0 +0900
--- ./crypto/Makefile   2016-02-28 00:08:39.481790027 +0900
***
*** 106,112 
    $(RANLIB) $(LIB) || echo Never mind.
 
  shared: buildinf.h lib subdirs
!   if [ -n "$(SHARED_LIBS)" ]; then \
    (cd ..; $(MAKE) $(SHARED_LIB)); \
    fi
 
--- 106,112 
    $(RANLIB) $(LIB) || echo Never mind.
 
  shared: buildinf.h lib subdirs
!   if [ ! -f "../$(SHARED_LIB)" ]; then \
    (cd ..; $(MAKE) $(SHARED_LIB)); \
    fi
 
diff -cr ../openssl-1.0.2f.orig/ssl/Makefile ./ssl/Makefile
*** ../openssl-1.0.2f.orig/ssl/Makefile 2016-01-28 22:57:19.0 +0900
--- ./ssl/Makefile  2016-02-28 00:08:39.482126645 +0900
***
*** 61,67 
    @touch lib
 
  shared: lib
!   if [ -n "$(SHARED_LIBS)" ]; then \
    (cd ..; $(MAKE) $(SHARED_LIB)); \
    fi
 
--- 61,67 
    @touch lib
 
  shared: lib
!   if [ ! -f "../$(SHARED_LIB)" ]; then \
    (cd ..; $(MAKE) $(SHARED_LIB)); \
    fi


Best Regards,

--- Kiyoshi 


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4353
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4353] openssl-1.0.2f dependency error

2016-02-27 Thread Kiyoshi KANAZAWA via RT
Hmm...

% make libcrypto.so.1.0.0 libssl.so.1.0.0
always remakes them.

It is better to change Makefile in top, but too complicated for me.
Easier sample patch is as follows.


diff -cr ../openssl-1.0.2f.orig/crypto/Makefile ./crypto/Makefile
*** ../openssl-1.0.2f.orig/crypto/Makefile  2016-01-28 22:57:08.0 +0900
--- ./crypto/Makefile   2016-02-28 00:08:39.481790027 +0900
***
*** 106,112 
    $(RANLIB) $(LIB) || echo Never mind.
  
  shared: buildinf.h lib subdirs
!   if [ -n "$(SHARED_LIBS)" ]; then \
    (cd ..; $(MAKE) $(SHARED_LIB)); \
    fi
  
--- 106,112 
    $(RANLIB) $(LIB) || echo Never mind.
  
  shared: buildinf.h lib subdirs
!   if [ ! -f "../$(SHARED_LIB)" ]; then \
    (cd ..; $(MAKE) $(SHARED_LIB)); \
    fi
  
diff -cr ../openssl-1.0.2f.orig/ssl/Makefile ./ssl/Makefile
*** ../openssl-1.0.2f.orig/ssl/Makefile 2016-01-28 22:57:19.0 +0900
--- ./ssl/Makefile  2016-02-28 00:08:39.482126645 +0900
***
*** 61,67 
    @touch lib
  
  shared: lib
!   if [ -n "$(SHARED_LIBS)" ]; then \
    (cd ..; $(MAKE) $(SHARED_LIB)); \
    fi
  
--- 61,67 
    @touch lib
  
  shared: lib
!   if [ ! -f "../$(SHARED_LIB)" ]; then \
    (cd ..; $(MAKE) $(SHARED_LIB)); \
    fi


Best Regards,

--- Kiyoshi 



-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4353
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4353] openssl-1.0.2f dependency error

2016-02-27 Thread Kiyoshi KANAZAWA via RT
There are dependency error in Makefile(s).
SHARED_LIBS are checked in . but make will be run in ..


crypto/Makefile:
   108  shared: buildinf.h lib subdirs
   109  if [ -n "$(SHARED_LIBS)" ]; then \
   110  (cd ..; $(MAKE) $(SHARED_LIB)); \
   111  fi

ssl/Makefile:
    63  shared: lib
    64  if [ -n "$(SHARED_LIBS)" ]; then \
    65  (cd ..; $(MAKE) $(SHARED_LIB)); \
    66  fi


I do not know if this is the reason,
libcrypto.so.1.0.0 & libssl.so.1.0.0 are remade in "make install".


Best regards,

--- Kiyoshi 


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4353
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4324] openssl-1.1.0-pre3 with solaris-x86-cc & solaris64-x86_64-cc make fails

2016-02-25 Thread Kiyoshi KANAZAWA via RT
With the following patch,
% ./Configure --unified solaris-x86-cc
% make
% make test
passed.

% ./Configure --unifiedsolaris64-x86_64-cc; make; make test
also passed.


This patch was written comparing to openssl-1.0.2f.

It has side effect for other configurations.
Please add some conditions.


diff -cr ../openssl-1.1.0-pre3.orig/Makefile.shared ./Makefile.shared
*** ../openssl-1.1.0-pre3.orig/Makefile.shared  2016-02-16 03:08:07.0 
+0900
--- ./Makefile.shared   2016-02-25 22:57:23.347187336 +0900
***
*** 398,409 
    ($(CC) -v 2>&1 | grep gcc) > /dev/null && MINUSZ='-Wl,-z,'; \
    SHLIB=lib$(LIBNAME).so; \
    SHLIB_SUFFIX=;\
!   if [ $(LIBNAME) != "crypto" -a $(LIBNAME) != "ssl" ]; then \
    ALLSYMSFLAGS="$${MINUSZ}allextract"; \
!   else \
!   $(PERL) $(SRCDIR)/util/mkdef.pl $(LIBNAME) linux >$(LIBNAME).map; \
!   ALLSYMSFLAGS="$${MINUSZ}allextract,-M,$(LIBNAME).map"; \
!   fi; \
    NOALLSYMSFLAGS="$${MINUSZ}defaultextract"; \
    SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -h 
$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX -Wl,-Bsymbolic"; \
    fi; \
--- 398,409 
    ($(CC) -v 2>&1 | grep gcc) > /dev/null && MINUSZ='-Wl,-z,'; \
    SHLIB=lib$(LIBNAME).so; \
    SHLIB_SUFFIX=;\
! # if [ $(LIBNAME) != "crypto" -a $(LIBNAME) != "ssl" ]; then \
    ALLSYMSFLAGS="$${MINUSZ}allextract"; \
! # else \
! # $(PERL) $(SRCDIR)/util/mkdef.pl $(LIBNAME) linux >$(LIBNAME).map; \
! # ALLSYMSFLAGS="$${MINUSZ}allextract,-M,$(LIBNAME).map"; \
! # fi; \
    NOALLSYMSFLAGS="$${MINUSZ}defaultextract"; \
    SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -h 
$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX -Wl,-Bsymbolic"; \
    fi; \


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4324
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4324] openssl-1.1.0-pre3 with solaris-x86-cc & solaris64-x86_64-cc make fails

2016-02-20 Thread Kiyoshi KANAZAWA via RT
Make fails with ./Configure solaris-x86-cc such as
  :
cc -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_THREADS -DOPENSSL_PIC 
-DOPENSSLDIR=/opt/openssl/ssl -DENGINESDIR=/opt/openssl/lib/engines -KPIC 
-D_REENTRANT -xarch=generic -xstrconst -Xa -DL_ENDIAN -DFILIO_H -xO5 
-xregs=frameptr -xdepend -xbuiltin -G -dy -z text -h libcrypto.so.1.1 
-Wl,-Bsymbolic -o ./libcrypto.so.1.1 -z allextract,-M,crypto.map ./libcrypto.a 
-z defaultextract -lsocket -lnsl -ldl
ld: fatal: option -z has illegal argument 'allextract,-M,crypto.map'
ld: fatal: flags processing errors



./Configure solaris64-x86_64-cc fails with the same error.


Tested on Solaris10 x86/64
cc: solarisstudio12.4 cc
ld: /usr/ccs/bin/ld


Before get here, you need #4314 fix &
patch as follows, because "add_before" in 10-main.conf does not set cflags 
correctly.
(See #4319)


diff -cr ../openssl-1.1.0-pre3.orig/Configurations/10-main.conf 
./Configurations/10-main.conf
*** ../openssl-1.1.0-pre3.orig/Configurations/10-main.conf  2016-02-16 
03:08:07.0 +0900
--- ./Configurations/10-main.conf   2016-02-20 15:13:44.634129625 +0900
***
*** 35,44 
  shared_extension => ".so",
  },
  
!  Solaros configirations
  "solaris-common" => {
  template => 1,
- cflags   => "-DFILIO_H",
  ex_libs  => "-lsocket -lnsl -ldl",
  dso_scheme   => "dlfcn",
  shared_target    => "solaris-shared",
--- 35,43 
  shared_extension => ".so",
  },
  
!  Solaris configurations
  "solaris-common" => {
  template => 1,
  ex_libs  => "-lsocket -lnsl -ldl",
  dso_scheme   => "dlfcn",
  shared_target    => "solaris-shared",
***
*** 53,59 
  # with "Illegal mnemonic" error message.
  inherit_from => [ "solaris-common", asm("x86_elf_asm") ],
  cc   => "gcc",
! cflags   => add_before("-march=pentium -Wall -DL_ENDIAN 
-DOPENSSL_NO_INLINE_ASM"),
  debug_cflags => "-O0 -g",
  release_cflags   => "-O3 -fomit-frame-pointer",
  thread_cflag => "-pthread",
--- 52,58 
  # with "Illegal mnemonic" error message.
  inherit_from => [ "solaris-common", asm("x86_elf_asm") ],
  cc   => "gcc",
! cflags   => "-march=pentium -Wall -DL_ENDIAN 
-DOPENSSL_NO_INLINE_ASM -DFILIO_H",
  debug_cflags => "-O0 -g",
  release_cflags   => "-O3 -fomit-frame-pointer",
  thread_cflag => "-pthread",
***
*** 72,78 
  # 
  inherit_from => [ "solaris-common", asm("x86_64_asm") ],
  cc   => "gcc",
! cflags   => add_before("-m64 -Wall -DL_ENDIAN"),
  debug_cflags => "-O0 -g",
  release_cflags   => "-O3",
  thread_cflag => "-pthread",
--- 71,77 
  # 
  inherit_from => [ "solaris-common", asm("x86_64_asm") ],
  cc   => "gcc",
! cflags   => "-m64 -Wall -DL_ENDIAN -DFILIO_H",
  debug_cflags => "-O0 -g",
  release_cflags   => "-O3",
  thread_cflag => "-pthread",
***
*** 87,93 
  "solaris-x86-cc" => {
  inherit_from => [ "solaris-common" ],
  cc   => "cc",
! cflags   => add_before("-xarch=generic -xstrconst -Xa 
-DL_ENDIAN"),
  debug_cflags => "-g",
  release_cflags   => "-xO5 -xregs=frameptr -xdepend -xbuiltin",
  thread_cflag => "-D_REENTRANT",
--- 86,92 
  "solaris-x86-cc" => {
  inherit_from => [ "solaris-common" ],
  cc   => "cc",
! cflags   => "-xarch=generic -xstrconst -Xa -DL_ENDIAN 
-DFILIO_H",
  debug_cflags => "-g",
  release_cflags   => "-xO5 -xregs=frameptr -xdepend -xbuiltin",
  thread_cflag => "-D_REENTRANT",
***
*** 100,106 
  "solaris64-x86_64-cc" => {
  inherit_from => [ "solaris-common", asm("x86_64_asm") ],
  cc   => "cc",
! cflags   => add_before("-xarch=generic64 -xstrconst -Xa 
-DL_ENDIAN"),
  debug_cflags => "-g",
  release_cflags   => "-xO5 -xdepend -xbuiltin",
  thread_cflag => "-D_REENTRANT",
--- 99,105 
  "solaris64-x86_64-cc" => {
  inherit_from => [ "solaris-common", asm("x86_64_asm") ],
  cc   => "cc",
! cflags   => "-m64 -xstrconst -Xa -DL_ENDIAN -DFILIO_H",
  debug_cflags => "-g",
  release_cflags   => "-xO5 -xdepend -xbuiltin",
  thread_cflag => "-D_REENTRANT",
***
*** 109,115 
  bn_ops   => "SIXTY_FOUR_BIT_LONG",
  perlasm_scheme   => "elf",
  

[openssl-dev] [openssl.org #4319] openssl-1.1.0-pre3 Configure does not set cflags correctly on Solaris10 x64

2016-02-19 Thread Kiyoshi KANAZAWA via RT
I do not know how to change "add_before" in Configure.
So I tested changing Configurations/10-main.conf as follows, not to use 
"add_before",
and found make & make check passes. (need to Apply fix #4314.)


% ../openssl-1.1.0-pre3/Configure --unified solaris64-x86_64-gcc threads shared 
no-ssl3
% make
% make check


diff -cr ../openssl-1.1.0-pre3.orig/Configurations/10-main.conf 
./Configurations/10-main.conf
*** ../openssl-1.1.0-pre3.orig/Configurations/10-main.conf  2016-02-16 
03:08:07.0 +0900
--- ./Configurations/10-main.conf   2016-02-20 15:22:15.939637874 +0900
***
*** 35,44 
  shared_extension => ".so",
  },
  
!  Solaros configirations
  "solaris-common" => {
  template => 1,
- cflags   => "-DFILIO_H",
  ex_libs  => "-lsocket -lnsl -ldl",
  dso_scheme   => "dlfcn",
  shared_target    => "solaris-shared",
--- 35,43 
  shared_extension => ".so",
  },
  
!  Solaris configurations
  "solaris-common" => {
  template => 1,
  ex_libs  => "-lsocket -lnsl -ldl",
  dso_scheme   => "dlfcn",
  shared_target    => "solaris-shared",
***
*** 53,59 
  # with "Illegal mnemonic" error message.
  inherit_from => [ "solaris-common", asm("x86_elf_asm") ],
  cc   => "gcc",
! cflags   => add_before("-march=pentium -Wall -DL_ENDIAN 
-DOPENSSL_NO_INLINE_ASM"),
  debug_cflags => "-O0 -g",
  release_cflags   => "-O3 -fomit-frame-pointer",
  thread_cflag => "-pthread",
--- 52,58 
  # with "Illegal mnemonic" error message.
  inherit_from => [ "solaris-common", asm("x86_elf_asm") ],
  cc   => "gcc",
! cflags   => "-march=pentium -Wall -DL_ENDIAN 
-DOPENSSL_NO_INLINE_ASM -DFILIO_H",
  debug_cflags => "-O0 -g",
  release_cflags   => "-O3 -fomit-frame-pointer",
  thread_cflag => "-pthread",
***
*** 72,78 
  # 
  inherit_from => [ "solaris-common", asm("x86_64_asm") ],
  cc   => "gcc",
! cflags   => add_before("-m64 -Wall -DL_ENDIAN"),
  debug_cflags => "-O0 -g",
  release_cflags   => "-O3",
  thread_cflag => "-pthread",
--- 71,77 
  # 
  inherit_from => [ "solaris-common", asm("x86_64_asm") ],
  cc   => "gcc",
! cflags   => "-m64 -Wall -DL_ENDIAN -DFILIO_H",
  debug_cflags => "-O0 -g",
  release_cflags   => "-O3",
  thread_cflag => "-pthread",



Best regards,

--- Kiyoshi 



-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4319
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4319] openssl-1.1.0-pre3 Configure does not set cflags correctly on Solaris10 x64

2016-02-17 Thread Kiyoshi KANAZAWA via RT
Configure does not set cflags correctly on Solaris10 x64.
In Configurations/10-main.conf line 75, it is written as
 cflags   => add_before("-m64 -Wall -DL_ENDIAN"),
but, it is not set to CFLAGS.
Make does not generate 64-bits code (-m64 is not used).

Configure log is attached.



% ./Configure solaris64-x86_64-gcc
% make
  :
gcc -I. -I.. -I../include -Iinclude  -DDSO_DLFCN -DHAVE_DLFCN_H 
-DOPENSSL_THREADS -DOPENSSL_IA32
_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m 
-DSHA1_ASM -DSHA256_ASM
 -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM 
-DECP_NISTZ256_ASM -DPOLY1
305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" 
-DENGINESDIR="\"/usr/local/lib/engines\""  -pthread -D
FILIO_H -O3   -c -o cryptlib.o cryptlib.c
  :
/opt/perl5/bin/perl x86_64cpuid.pl elf > x86_64cpuid.s
gcc -I. -I.. -I../include -Iinclude  -DDSO_DLFCN -DHAVE_DLFCN_H 
-DOPENSSL_THREADS -DOPENSSL_IA32
_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m 
-DSHA1_ASM -DSHA256_ASM
 -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM 
-DECP_NISTZ256_ASM -DPOLY1
305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" 
-DENGINESDIR="\"/usr/local/lib/engines\""  -pthread -D
FILIO_H -O3 -c  -o x86_64cpuid.o x86_64cpuid.s
x86_64cpuid.s: Assembler messages:
x86_64cpuid.s:15: Error: bad register name `%rdi)'
x86_64cpuid.s:16: Error: bad register name `%rsi'
x86_64cpuid.s:18: Error: bad register name `%r8d'
x86_64cpuid.s:20: Error: bad register name `%r8d'
x86_64cpuid.s:30: Error: bad register name `%rdx'
x86_64cpuid.s:31: Error: bad register name `%rdx'
x86_64cpuid.s:39: Error: bad register name `%rbx'
x86_64cpuid.s:42: Error: bad register name `%rdi)'
x86_64cpuid.s:44: Error: bad register name `%r11d'
x86_64cpuid.s:49: Error: bad register name `%r9d'
x86_64cpuid.s:52: Error: bad register name `%r9d'
x86_64cpuid.s:55: Error: bad register name `%r9d'
x86_64cpuid.s:60: Error: bad register name `%r10d'
x86_64cpuid.s:63: Error: bad register name `%r10d'
x86_64cpuid.s:66: Error: bad register name `%r10d'
x86_64cpuid.s:74: Error: bad register name `%r10d'
x86_64cpuid.s:77: Error: bad register name `%r9d'
x86_64cpuid.s:78: Error: bad register name `%r9d'
x86_64cpuid.s:80: Error: bad register name `%r10d'
x86_64cpuid.s:85: Error: `movzbq' is only supported in 64-bit mode
  :


Best Regards,

--- Kiyoshi 

-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4319
Please log in as guest with password guest if prompted



Configure.log
Description: Binary data
-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4317] openssl-1.1.0-pre3 make error with Configure option "zlib-dynamic"

2016-02-17 Thread Kiyoshi KANAZAWA via RT
Openssl-1.1.0-pre3 make fails with Configure option "zlib-dynamic".
Without "zlib-dynamic", make & make check passed.
With "zlib", make & make check also passed.

Tried on Solaris10 x86, with #4314 fix.


% ./Configure solaris-x86-gcc threads shared zlib-dynamic no-ssl3
% make
  :
gcc -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_THREADS -DOPENSSL_PIC 
-DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT 
-DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM 
-DRMD160_ASM -DAES_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM 
-DPOLY1305_ASM -DOPENSSLDIR="/opt/openssl/ssl" 
-DENGINESDIR="/opt/openssl/lib/engines" -fPIC -pthread -DFILIO_H -O3 
-fomit-frame-pointer -DWHIRLPOOL_ASM -R /opt/openssl/lib -o openssl openssl.o 
asn1pars.o ca.o ciphers.o cms.o crl.o crl2p7.o dgst.o dhparam.o dsa.o 
dsaparam.o ec.o ecparam.o enc.o engine.o errstr.o gendsa.o genpkey.o genrsa.o 
nseq.o ocsp.o passwd.o pkcs12.o pkcs7.o pkcs8.o pkey.o pkeyparam.o pkeyutl.o 
prime.o rand.o req.o rsa.o rsautl.o s_client.o s_server.o s_time.o sess_id.o 
smime.o speed.o spkac.o srp.o ts.o verify.o version.o x509.o rehash.o apps.o 
opt.o s_cb.o s_socket.o app_rand.o -L.. -lssl -L.. -lcrypto -lsocket -lnsl -ldl
Undefined   first referenced
 symbol in file
BIO_f_zlib  ../libcrypto.so
ld: fatal: symbol referencing errors. No output written to openssl
collect2: error: ld returned 1 exit status
../Makefile.shared:412: recipe for target 'link_app.solaris' failed




Best regards,

--- Kiyoshi 


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4317
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4314] openssl-1.1.0-pre3 make error on Solaris 10 x86

2016-02-17 Thread Kiyoshi KANAZAWA via RT
Hello,

Openssl-1.1.0-pre3 make fails on Solaris 10 x86, such as
make[2]: Entering directory '/tmp/openssl-1.1.0-pre3/crypto/bio'
gcc -I.. -I../.. -I../modes -I../include -I../../include  -DDSO_DLFCN 
-DHAVE_DLFCN_H -DOPENSSL_T
HREADS -DOPENSSL_PIC -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 
-DOPENSSL_BN_ASM_MONT -DOPE
NSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM 
-DAES_ASM -DVPAES_A
SM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM 
-DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR=
"\"/usr/local/lib/engines\"" -fPIC  -pthread -DFILIO_H -O3 -fomit-frame-pointer 
-DWHIRLPOOL_ASM 
  -c -o bss_fd.o bss_fd.c
bio_lcl.h:60:24: error: expected identifier or '(' before numeric constant
 struct sockaddr_un sun;
    ^
In file included from bss_fd.c:61:0:
bio_lcl.h:62:1: warning: no semicolon at end of struct or union [enabled by 
default]
 };


This happens because "sun" is #defined as 1 on Solaris.
On the other hand, the same name is used in crypto/bio/bio_lcl.h,
    53  union bio_addr_st {
    54  struct sockaddr sa;
    55  # ifdef AF_INET6
    56  struct sockaddr_in6 sin6;
    57  # endif
    58  struct sockaddr_in sin;
    59  # ifdef AF_UNIX
    60  struct sockaddr_un sun;
    61  # endif
    62  };
    63  #endif


Best regards,

--- Kiyoshi 


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4314
Please log in as guest with password guest if prompted

-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[openssl-dev] [openssl.org #4279] openssl-1.1.0-pre2 make failes on Solaris10 x64

2016-01-29 Thread Kiyoshi KANAZAWA via RT
Hello,


I tried openssl-1.1.0-pre2 on Solaris10 x86/x64.

For x86, no error found.
But for X64, make fails in crypto/modes.
Got the same result with solarisstudio12.4 & gcc-4.8.5.


1. with solarisstudio12.4
% ./Configure solaris64-x86_64-cc
% make
  :
cc -I.. -I../.. -I../modes -I../include -I../../include  -DOPENSSL_THREADS 
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=generic64 -xstrconst -Xa 
-DL_ENDIAN -DFILIO_H -xO5 -xdepend -xbuiltin -DOPENSSL_IA32_SSE2 
-DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM 
-DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM 
-DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -c  -o ghash-x86_64.o 
ghash-x86_64.s
cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs
Assembler: 
    "ghash-x86_64.s", line 890 : Syntax error
    Near line: "    movq    $1.15473355479995e+19,%rax"
cc: fbe failed for ghash-x86_64.s
: recipe for target 'ghash-x86_64.o' failed
make[2]: *** [ghash-x86_64.o] Error 2
make[2]: Leaving directory '/tmp/openssl-1.1.0-pre2/crypto/modes'



2. with gcc-4.8.5
% ./Configure solaris64-x86_64-gcc
% make
  :
make[2]: Entering directory '/tmp/openssl-1.1.0-pre2/crypto/modes'
gcc -I.. -I../.. -I../modes -I../include -I../../include  -DOPENSSL_THREADS 
-pthread -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -Wall -DL_ENDIAN -DFILIO_H -O3 
-DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 
-DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM 
-DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -c  -o 
ghash-x86_64.o ghash-x86_64.s
ghash-x86_64.s: Assembler messages:
ghash-x86_64.s:890: Error: junk `.15473355479995e+19' after expression
: recipe for target 'ghash-x86_64.o' failed
make[2]: *** [ghash-x86_64.o] Error 1
make[2]: Leaving directory '/tmp/openssl-1.1.0-pre2/crypto/modes'
Makefile:90: recipe for target 'subdirs' failed
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory '/tmp/openssl-1.1.0-pre2/crypto'
Makefile:287: recipe for target 'build_crypto' failed
make: *** [build_crypto] Error 1


Regards,

--- Kiyoshi 


___
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl.org #3566] openssl-1.0.1j make depend failes

2014-10-31 Thread Kiyoshi KANAZAWA via RT
Hi,

About make check.
It seems that no-ssl3 disables ssl2 in openssl library automatically, but 
dose not in test.
Specifying not only no-ssl3 but also no-ssl2, make check passes.

Regards,

--- Kiyoshi yoi_no_myou...@yahoo.co.jp




- Original Message -
From: Kiyoshi KANAZAWA yoi_no_myou...@yahoo.co.jp
To: r...@openssl.org r...@openssl.org 
Cc: openssl-dev@openssl.org openssl-dev@openssl.org
Date: 2014/10/17, Fri 00:32
Subject: Re: [openssl.org #3566] openssl-1.0.1j make depend failes 
 

Hello,



Yes, I can make without make depend,
but make check fails with Failed AES256-GCM-SHA384, if I specify no-ssl3.


Without no-ssl3, make check passes.


I tried 4 patterns of Configure parameters, and got the same result.

- solaris-x86-cc threads shared zlib no-ssl3
- solaris64-x86_64-cc threads shared zlib no-ssl3
(cc is solarisstudio12.3/bin/cc)
- solaris-x86-gcc threads shared zlib no-ssl3
- solaris64-x86_64-gcc threads shared zlib no-ssl3
(gcc version 4.8.3)


Regards,


--- Kiyoshi yoi_no_myou...@yahoo.co.jp



- Original Message -
From: Stephen Henson via RT r...@openssl.org
To: yoi_no_myou...@yahoo.co.jp 
Cc: openssl-dev@openssl.org
Date: 2014/10/16, Thu 21:50
Subject: [openssl.org #3566] openssl-1.0.1j make depend failes 
 
On Thu Oct 16 14:22:19 2014, yoi_no_myou...@yahoo.co.jp wrote:
 Hello,

 I'd like to build openssl-1.0.1j with no-ssl3, but can not.


 ./Configure --prefix=/opt/local/openssl solaris-x86-cc threads shared
 zlib no-ssl3

 Got message:

 --- from here, message ---

 Since you've disabled or enabled at least one algorithm, you need to
 do
 the following before building:

 make depend

 Configured for solaris-x86-cc.

 --- till here, message ---


Obviously this needs fixing but as a workaround: if you're building from
scratch (or after make clean) it should compile fine with without doing 
make
depend.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org






__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


Re: [openssl.org #3566] openssl-1.0.1j make depend failes

2014-10-30 Thread Kiyoshi KANAZAWA via RT


Hello,

Sorry, makedepend is the one distributed with X11 or Openwin.
With path to it, make depend is done.

make check with no-ssl3 is another problem.


--- Kiyoshi yoi_no_myou...@yahoo.co.jp



- Original Message -
From: Kiyoshi KANAZAWA yoi_no_myou...@yahoo.co.jp
To: r...@openssl.org r...@openssl.org 
Cc: openssl-dev@openssl.org openssl-dev@openssl.org
Date: 2014/10/17, Fri 00:32
Subject: Re: [openssl.org #3566] openssl-1.0.1j make depend failes 
 

Hello,



Yes, I can make without make depend,
but make check fails with Failed AES256-GCM-SHA384, if I specify no-ssl3.


Without no-ssl3, make check passes.


I tried 4 patterns of Configure parameters, and got the same result.

- solaris-x86-cc threads shared zlib no-ssl3
- solaris64-x86_64-cc threads shared zlib no-ssl3
(cc is solarisstudio12.3/bin/cc)
- solaris-x86-gcc threads shared zlib no-ssl3
- solaris64-x86_64-gcc threads shared zlib no-ssl3
(gcc version 4.8.3)


Regards,


--- Kiyoshi yoi_no_myou...@yahoo.co.jp



- Original Message -
From: Stephen Henson via RT r...@openssl.org
To: yoi_no_myou...@yahoo.co.jp 
Cc: openssl-dev@openssl.org
Date: 2014/10/16, Thu 21:50
Subject: [openssl.org #3566] openssl-1.0.1j make depend failes 
 
On Thu Oct 16 14:22:19 2014, yoi_no_myou...@yahoo.co.jp wrote:
 Hello,

 I'd like to build openssl-1.0.1j with no-ssl3, but can not.


 ./Configure --prefix=/opt/local/openssl solaris-x86-cc threads shared
 zlib no-ssl3

 Got message:

 --- from here, message ---

 Since you've disabled or enabled at least one algorithm, you need to
 do
 the following before building:

 make depend

 Configured for solaris-x86-cc.

 --- till here, message ---


Obviously this needs fixing but as a workaround: if you're building from
scratch (or after make clean) it should compile fine with without doing 
make
depend.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org






__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


[openssl.org #3586] openssl-1.0.1j make fails if -j option is used

2014-10-30 Thread Kiyoshi KANAZAWA via RT
Hello,

make with -j option fails,
because dependency to libraries is not described in Makefile.

Sample fix is attached.

--- Kiyoshi yoi_no_myou...@yahoo.co.jp



Makefile.org.patch
Description: Binary data


[openssl.org #3587] openssl-1.0.1j configuration for solaris-x86/x64 should be changed

2014-10-30 Thread Kiyoshi KANAZAWA via RT
Hello, again.

Configuration for solaris-x86/x64 is not good.

(1) solaris-x86-gcc
    -march=pentium should not be specified.
(2) solaris-x86-cc
    -O after -fast overrides optimizing level.
(3) solaris64-x86_64-cc
    -xarch=amd64 is too old style.
    -m64 should be used instead.

Sample patch is attached.


--- Kiyoshi yoi_no_myou...@yahoo.co.jp


Configure.patch
Description: Binary data


[openssl.org #3582] Request openssl-1.0.1j Makefile: move build_tests to do in test

2014-10-29 Thread Kiyoshi KANAZAWA via RT
Hello,

make build_tests is done in make build_all, which is executed in make.
It is better to do make build_tests in make test, isn't it ?

--- Kiyoshi yoi_no_myou...@yahoo.co.jp
__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


[openssl.org #3566] openssl-1.0.1j make depend failes

2014-10-16 Thread Kiyoshi KANAZAWA via RT
Hello,

I'd like to build openssl-1.0.1j with no-ssl3, but can not.


./Configure --prefix=/opt/local/openssl solaris-x86-cc threads shared zlib 
no-ssl3

Got message:

--- from here, message ---

Since you've disabled or enabled at least one algorithm, you need to do
the following before building:

    make depend

Configured for solaris-x86-cc.

--- till here, message ---


But when I tried make depend, it failed:
--- from here, message ---making depend in crypto...
make[1]: Entering directory '/tmp/openssl-1.0.1j/crypto'
../util/domd: makedepend: not found
mv: cannot stat 'Makefile.new': No such file or directory
Makefile:134: recipe for target 'depend' failed
make[1]: *** [depend] Error 1
make[1]: Leaving directory '/tmp/openssl-1.0.1j/crypto'
Makefile:465: recipe for target 'depend' failed
make: *** [depend] Error 1
--- till here, message ---



Regards,

--- Kiyoshi yoi_no_myou...@yahoo.co.jp

__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org


Re: [openssl.org #3566] openssl-1.0.1j make depend failes

2014-10-16 Thread Kiyoshi KANAZAWA via RT
Hello,


Yes, I can make without make depend,
but make check fails with Failed AES256-GCM-SHA384, if I specify no-ssl3.

Without no-ssl3, make check passes.

I tried 4 patterns of Configure parameters, and got the same result.

- solaris-x86-cc threads shared zlib no-ssl3
- solaris64-x86_64-cc threads shared zlib no-ssl3
(cc is solarisstudio12.3/bin/cc)
- solaris-x86-gcc threads shared zlib no-ssl3
- solaris64-x86_64-gcc threads shared zlib no-ssl3
(gcc version 4.8.3)

Regards,

--- Kiyoshi yoi_no_myou...@yahoo.co.jp



- Original Message -
From: Stephen Henson via RT r...@openssl.org
To: yoi_no_myou...@yahoo.co.jp 
Cc: openssl-dev@openssl.org
Date: 2014/10/16, Thu 21:50
Subject: [openssl.org #3566] openssl-1.0.1j make depend failes 
 
On Thu Oct 16 14:22:19 2014, yoi_no_myou...@yahoo.co.jp wrote:
 Hello,

 I'd like to build openssl-1.0.1j with no-ssl3, but can not.


 ./Configure --prefix=/opt/local/openssl solaris-x86-cc threads shared
 zlib no-ssl3

 Got message:

 --- from here, message ---

 Since you've disabled or enabled at least one algorithm, you need to
 do
 the following before building:

 make depend

 Configured for solaris-x86-cc.

 --- till here, message ---


Obviously this needs fixing but as a workaround: if you're building from
scratch (or after make clean) it should compile fine with without doing make
depend.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org




__
OpenSSL Project http://www.openssl.org
Development Mailing List   openssl-dev@openssl.org
Automated List Manager   majord...@openssl.org