Languages and Scripting

Re: HP-UX 11.0 - "make test" fails for openssl-0.9.6c

 
Mehmet Musa
Occasional Advisor

Re: HP-UX 11.0 - "make test" fails for openssl-0.9.6c

Luca,

Those are 32 bit files PA1.1.
You can use "odump -compunit file.a" and see the compiler option to effectively confirm that they are 32 bits.

You can also use "elfdump -f file.a" to verify that they are indeed 64 bit (see class of object).

You can also use "strings file.sl" to see the compilation symbols if it is not stripped.

I would suggest you compile openssl in 32 bit to see if it goes away. Just add +DD32 in the compilation flag.

So bottom line is you need to find a 32 bit library or compile in 32 bit mode.

Hope this helps.

--Mehmet
Luca Fasolo
Occasional Advisor

Re: HP-UX 11.0 - "make test" fails for openssl-0.9.6c

Mehmet,
these are the results:
root:/usr/lib# elfdump -f libdbm.a
elfdump: Bad input file type: libdbm.a (elfdumperr 2003)
root:/usr/lib# odump -compunit libdbm.a

Compilation Unit Dictionary from libdbm.a[hpux_rel.o]:

Index Chunk Language Name
Product_id ; Version_id
Compile time ; Source time

0 0 HPC hpux_rel
ccom options = -DA1.1 -DS1.1e -Oq02,al,ag,cn,Lm,sz,Ic,vo,lc,Mf,Po,es,rs,sp,in,vc,Pi,fa,pe,Rr,Fl,pv,pa,nf,cp,lx,st,ap,Pg,ug,Lu,dp,Fs,bp,wp! -Ae

HP92453-01 ; W.11.01.
Compile Time: Thu Oct 02 1997 05:34:56.000000000 WETDST
Source Time: Thu Oct 02 1997 05:19:37.000000000 WETDST


root:/usr/lib#

Sorry, I don't know how to understand if
this is a 32-bit or 64-bit library.
About the flag, +DD32 doesn't work with gcc
and -DD32 builds again a 64-bit library.
I've:
$ gcc -v
Reading specs from /usr/local/pa20_64/lib/gcc-lib/hppa64-hp-hpux11.00/3.0.2/specs
Configured with: ../gcc/configure --prefix=/usr/local/pa20_64 --enable-languages=c,c++ --host=hppa64-hp-hpux11.00 --target=hppa64-hp-hpux11.00 --with-ld=/usr/ccs/bin/ld --with-gnu-as --enable-libstdcxx-v3
Thread model: single
gcc version 3.0.2

Do you know if there's a flag for this gcc
to build a 32-bit executable?

Thanks again for your patience :-))

--Luca
Mehmet Musa
Occasional Advisor

Re: HP-UX 11.0 - "make test" fails for openssl-0.9.6c

Luca,

You libdbm is clearly a 32 bit lib. If you wanna stick with gcc then you can use the "-mpa-risc-1-1" or "-mpa-risc-2-0" options to compile for your architecture. I recommend "-mpa-risc-1-1".
The +DD32 switch is for the ansi C compiler.

I have not compiled openssl with gcc. I mainly use the ansic compiler in /opt/ansic/bin/cc.
So you can also try using this one with +DD32 option.

Good luck.

--Mehmet
Luca Fasolo
Occasional Advisor

Re: HP-UX 11.0 - "make test" fails for openssl-0.9.6c

I've finally compiled openssl,
with hp's cc:
OpenSSL 0.9.6c 21 dec 2001
built on: Fri Apr 26 09:22:56 WETDST 2002
platform: hpux-parisc2-cc
options: bn(64,64) md2(char) rc4(idx,char) des(idx,risc1,16,long) idea(int) blowfish(idx)
compiler: cc +Z -DTHREADS -D_REENTRANT -DDSO_DL +DA2.0 +DS2.0 +O3 +Optrs_strongly_typed +Olibcalls -Ae +ESlit -DB_ENDIAN -DMD32_XARRAY


Thanks to all for your help.
I'll send an e-mail to openssl guys to ask
them if there is some known issue for
HP-UX/gcc, I'll keep you posted.

Thanks again
--Luca