Re: [openssl-users] make test failed on HPUX parisc

2016-05-25 Thread Alexandre Klein
Thanks Viktor for your reply.

I forgot to mention that I can compile 1.0.2h 64-bit version on the same
machine. The only problem is when building the 32-bit version of OpenSSL.

Here is full line:
"hpux-parisc2-cc","cc:+DAportable +O3 +Optrs_strongly_typed -Ae +ESlit
-DB_ENDIAN -DMD32_XARRAY -D_REENTRANT-Wl,+s -ldld:SIXTY_FOUR_BIT
MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_
RISC1 DES_INT:".eval{my
$asm=$parisc20_asm;$asm=~s/2W\./2\./;$asm=~s/:64/:32/;$asm}.":dl:hpux-shared:+Z:-b:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::/pa20_32",

The only difference is:
- I removed "+DA2.0 +DS2.0"
- I added "+DAportable"

If I use the original line, then I have the same error.

Alexandre Klein
Tanuki Software, Ltd.
6-18-10-4F Nishi-Kasai, Edogawa-ku
Tokyo 134-0088 Japan
Tel: +81-3-3878-3211
Fax: +81-3-3878-0313
http://www.tanukisoftware.com

On Wed, May 25, 2016 at 12:19 AM, Viktor Dukhovni <
openssl-us...@dukhovni.org> wrote:

> On Tue, May 24, 2016 at 06:05:34PM +0900, Alexandre Klein wrote:
>
> >
> > I'm using "hpux-parisc2-cc". I modified Configure to use +DAportable:
> > "hpux-parisc2-cc","cc:+DAportable   +O3 ...
> > "hpux-parisc2-cc","cc:+DA2.0 +DS2.0 +O3 ...
>
> For meaningful help, post an unedited "diff" between the original
> and your version.
>
> The original Configure file has:
>
> "hpux-parisc2-cc","cc:+DA2.0 +DS2.0 +O3 +Optrs_strongly_typed -Ae
> +ESlit -DB_ENDIAN -DMD32_XARRAY -D_REENTRANT-Wl,+s -ldld:SIXTY_FOUR_BIT
> MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT:".eval{my
> $asm=$parisc20_asm;$asm=~s/2W\./2\./;$asm=~s/:64/:32/;$asm}.":dl:hpux-shared:+Z:-b:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::/pa20_32",
> "hpux64-parisc2-cc","cc:+DD64 +O3 +Optrs_strongly_typed -Ae +ESlit
> -DB_ENDIAN -DMD32_XARRAY -D_REENTRANT-ldl:SIXTY_FOUR_BIT_LONG MD2_CHAR
> RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1
> DES_INT:${parisc20_asm}:dlfcn:hpux-shared:+Z:+DD64
> -b:.sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::/pa20_64",
>
> > $ ./Configure hpux-parisc2-cc --prefix=path/to/folder no-shared no-zlib
> > no-zlib-dynamic no-rc5 no-idea no-ec no-ecdh no-ecdsa no-asm no-mdc2
> no-bf
> > no-cast no-md2 no-rc4 no-jpake no-gmp
>
> In particular you sure you want "no-asm" and "no-shared"?  Those
> targets seem to be designed for shared builds with asm.
>
> --
> Viktor.
> --
> openssl-users mailing list
> To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
>
-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


[openssl-users] make test failed on HPUX parisc

2016-05-24 Thread Alexandre Klein
Hi,

I would like to build openssl 1.0.2h on my HPUX but it failed when running
the tests (v3nametest).

My machine: HPUX PARISC B11.11
B9007AAB.11.11.20 HP C/aC++ Developer's Bundle


I'm using "hpux-parisc2-cc". I modified Configure to use +DAportable:
"hpux-parisc2-cc","cc:+DAportable   +O3 ...
"hpux-parisc2-cc","cc:+DA2.0 +DS2.0 +O3 ...

$ ./Configure hpux-parisc2-cc --prefix=path/to/folder no-shared no-zlib
no-zlib-dynamic no-rc5 no-idea no-ec no-ecdh no-ecdsa no-asm no-mdc2 no-bf
no-cast no-md2 no-rc4 no-jpake no-gmp
$ make depend
$ make
$ make test

Then it is failing when running:
../util/shlib_wrap.sh ./v3nametest
set CN: host: [a] does not match [a]
set CN: host-no-wildcards: [a] does not match [a]
set CN: host: [b] does not match [b]
set CN: host-no-wildcards: [b] does not match [b]
...
set rfc822Name: email: [postmas...@example.com] does not match [
postmas...@example.com]
set rfc822Name: email: [postmas...@example.com] does not match [
postmas...@example.com]
set rfc822Name: email: [postmas...@example.com] does not match [
postmas...@example.com]
Makefile:347: recipe for target 'test_v3name' failed
make[1]: Leaving directory '/home/alex/workspace/openssl/temp/test'
Makefile:460: recipe for target 'tests' failed
make[1]: *** [test_v3name] Error 1
make: *** [tests] Error 2

As far as I remember, it was no problem when building 1.0.1f on this
machine.

Is there something that I am missing?

Please let me know if you would like to see the full log file (or some
parts).

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


HPUX 64-bit make error in crypto/dso/dso_dlfcn.c

2014-01-07 Thread Alexandre Klein
If I modify crypto/dso/dso_dlfcn.c:

# define HAVE_DLINFO 1
/* # if defined(_AIX) || defined(__CYGWIN__) || \
 defined(__SCO_VERSION__) || defined(_SCO_ELF) || \
 (defined(__osf__)  !defined(RTLD_NEXT)) || \
 (defined(__OpenBSD__)  !defined(RTLD_SELF)) || \
defined(__ANDROID__)
*/
#  undef HAVE_DLINFO
/* # endif */

Then the error disappears and openSSL build successfully.

But is that ok? Maybe some strange side effect may happen?


HPUX 64-bit make error in crypto/dso/dso_dlfcn.c

2014-01-06 Thread Alexandre Klein
Hey

After successfully built openssl 32-bit for HPUX, I'm now trying to build
the 64-bit version (hpux64-parisc2-cc).

But I have this error crypto/dso/dso_dlfcn.c:
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include
 -DOPENSSL_THREADS  -DDSO_DLFCN -DHAVE_DLFCN_H +DD64 +O3
+Optrs_strongly_typed -Ae +ESlit -DB_ENDIAN -DMD32_XARRAY -D_REENTRANT   -c
-o dso_dlfcn.o dso_dlfcn.c
cc: dso_dlfcn.c, line 447: error 1000: Unexpected symbol: dli.
cc: dso_dlfcn.c, line 447: error 1588: Dl_info undefined.
cc: dso_dlfcn.c, line 457: error 1588: dli undefined.
cc: dso_dlfcn.c, line 459: error 1529: Cannot select field of
non-structure.
cc: dso_dlfcn.c, line 459: warning 563: Argument #1 is not the correct
type.
cc: dso_dlfcn.c, line 462: error 1529: Cannot select field of
non-structure.
cc: dso_dlfcn.c, line 462: warning 563: Argument #2 is not the correct
type.
cc: dso_dlfcn.c, line 462: warning 725: Argument #3 converts 32 bit
integer to pointer.
make[2]: *** [dso_dlfcn.o] Error 1

The full log:
https://docs.google.com/a/tanukisoftware.com/file/d/0B17xCZmWiYuMWHVvbTVnUGJqNDA/

There is a note here: crypto/dso/README about HPUX, but I'm not sure to get
it.

Any suggestion ?

Alexandre Klein
Tanuki Software, Ltd.


HPUX build test fails

2013-12-27 Thread Alexandre Klein
Hey,

When I'm building openssl 1.0.1e (32-bit) on HPUX (11.11), it failed here:
enveloped content test streaming S/MIME format, 3 recipients, key only
used: verify error

Looks like it is from the file openssl/test/cms-test.pl


I'm doing:
Configure hpux-parisc2-cc --prefix=/somewhere/ no-shared no-zlib
no-zlib-dynamic no-rc5 no-idea no-ec no-ecdh no-ecdsa no-asm no-mdc2 no-bf
no-cast no-md2 no-rc4 no-jpake no-gmp

I modified the file openssl/engines/Makefile:
-  [ -z $(ENGDIRS) ] || for i in $(ENGDIRS) ; do \
+ [ -z $(ENGDIRS) ] || for i in $(ENGDIRS) ; do \


You can see the full output here:
https://drive.google.com/file/d/0B17xCZmWiYuMV1FVUENJMjJlT0U/
(please note that I'm using ant to execute the command to build openssl)

Is there something I am missing ?

Note: I'm building static libraries

Alexandre Klein
Tanuki Software, Ltd.