Chinaunix

标题: 有谁在HP-UX 11下编译过OpenSSL的? [打印本页]

作者: sunlan    时间: 2005-12-24 23:15
标题: 有谁在HP-UX 11下编译过OpenSSL的?
在HP-UX11下编译OpenSSL 0.9.7e,遇到以下问题:

执行./Configure hpux-parisc-cc,报:
Can't locate strict.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1
/opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5.005/PA-RISC1.1 /opt/perl5/lib
/site_perl/5.005 .) at ./Configure line 9.
BEGIN failed--compilation aborted at ./Configure line 9.
检查Configure文件,发现第9句是
    use strict;
试着把这句注释掉,执行./Configure能成功。接着就是make,但又出现以下错误:
making all in crypto/objects...
        /usr/contrib/bin/perl objects.pl objects.txt obj_mac.num obj_mac.h
        /usr/contrib/bin/perl obj_dat.pl obj_mac.h obj_dat.h
Can't locate integer.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.
1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5.005/PA-RISC1.1 /opt/perl5/li
b/site_perl/5.005 .) at obj_dat.pl line 5.
BEGIN failed--compilation aborted at obj_dat.pl line 5.
*** Error exit code 2

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1
这下可真是没辙了!

有谁成功编译过的,讲讲经验!
作者: sunlan    时间: 2005-12-24 23:28
补充一下,perl的版本是
perl, version 5.005_02 built for PA-RISC1.1
作者: sunlan    时间: 2005-12-25 09:11
试了一下,把crypto/objects/obj_dat.pl中第5行:
use integer;
注释掉.对这一行有个说明:
# fixes bug in floating point emulation on sparc64 when
# this script produces off-by-one output on sparc64
猜测注释掉这行应该没有关系,然后重新执行make,总算顺利地通过了。
接着执行了test目录下的一些测试程序,也都顺利通过了。
作者: sunlan    时间: 2005-12-25 09:41
刚才又试着用64位模式编译,先执行Configure hpux64-parisc2-cc,然后执行make,但执行到一半的时候报了这么个错误:
        cc -I../crypto -I.. -I../include  -DOPENSSL_THREADS -D_REENTRANT -DDSO_D
LFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -Ae +DD64 +O3 +ESlit -z -DB_ENDIAN -DMD32_
XARRAY -c s2_clnt.c
cc: error 1405: "/opt/ansic/lbin/ccom" terminated abnormally with signal 11.
*** Error exit code 9

Stop.
*** Error exit code 1

Stop.
然后就无法编译下去了。
谁能帮我解释一下是什么原因?
作者: rkyhgx    时间: 2005-12-25 22:36
up
作者: wolfg    时间: 2005-12-26 10:51
安装perl 5.8试试
作者: sunlan    时间: 2005-12-26 16:27
原帖由 wolfg 于 2005-12-26 10:51 发表
安装perl 5.8试试


安装perl 5.8应该可以解决前面两个问题,但好象不能解决最后一个问题:
cc: error 1405: "/opt/ansic/lbin/ccom" terminated abnormally with signal 11.
作者: wolfg    时间: 2005-12-26 20:12
你的cc是什么版的?是系统自带的还是aCC
作者: sunlan    时间: 2006-01-02 11:53
原帖由 wolfg 于 2005-12-26 20:12 发表
你的cc是什么版的?是系统自带的还是aCC


是系统自带的
能完成libcrypto.a的编译,但无法完成其余部分的编译

[ 本帖最后由 sunlan 于 2006-1-2 11:55 编辑 ]
作者: wolfg    时间: 2006-01-02 19:12
原帖由 sunlan 于 2006-1-2 11:53 发表


是系统自带的
能完成libcrypto.a的编译,但无法完成其余部分的编译


我编译时用的是aCC
作者: sunlan    时间: 2006-01-03 09:57
原帖由 wolfg 于 2006-1-2 19:12 发表


我编译时用的是aCC


那我改天再用aCC试试。
起先是用gcc编译的,但编译不过去
作者: wolf_of_north    时间: 2006-01-03 12:36
标题: 遇到相同问题,安装perl_D.5.8.3.C_HP-UX_B.11.11_32+64.depot通过
我在运行./Configure hpux-parisc-cc时遇到一楼相同问题
在INSTTALL文件中,第一页说需要 Perl 5,我查了一下:
# what /opt/perl/bin/perl
/opt/perl/bin/perl:
        $Revision: 92453-07 linker linker crt0.o B.11.37 040219 $
感觉好象不是,安装了perl_D.5.8.3.C_HP-UX_B.11.11_32+64.depot问题不出现了

但make时,又有新问题了:
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C pro
duct; ignored.
(Bundled) cc: warning 480: The +ESlit option is available only with the C/ANSI C
product; ignored.
(Bundled) cc: "../include/openssl/stack.h", line 73: warning 5: "const" will bec
ome a keyword.
(Bundled) cc: "../include/openssl/stack.h", line 73: error 1000: Unexpected symb
ol: "char".
(Bundled) cc: "../include/openssl/stack.h", line 73: warning 5: "const" will bec
ome a keyword.
(Bundled) cc: "../include/openssl/stack.h", line 73: warning 5: "const" will bec
ome a keyword.
(Bundled) cc: "../include/openssl/stack.h", line 73: warning 5: "const" will bec
ome a keyword.
(Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1

检查了一下cc:
# ls -l /usr/bin/cc
lrwxr-xr-t   1 root       sys             15 Aug 11 11:49 /usr/bin/cc -> /usr/ccs/bin/cc
# ls -l /usr/ccs/bin/cc
lrwxr-xr-x   1 root       sys             12 Aug 11 11:27 /usr/ccs/bin/cc -> ./cc_bundled
# ls -l /usr/ccs/bin/cc_bundled
-r-xr-xr-x   1 bin        bin         258048 Nov 14  2000 /usr/ccs/bin/cc_bundled


在Makefile中将CC=cc全部改成了CC=aCC,make时,出现了一堆Warning,不知道是否还会有问题,其中一段为:
Warning 67: "/usr/include/math.h", line 224 # Invalid pragma name:
    'no_side_effects' (ignored).
    #    pragma NO_SIDE_EFFECTS _Signbit, _Signbitf, _Isnanf, _Isinf, _Isinff
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 67: "/usr/include/math.h", line 225 # Invalid pragma name:
    'no_side_effects' (ignored).
    #    pragma NO_SIDE_EFFECTS _Isfinite, _Isfinitef, _Isnormal, _Isnormalf, _I
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
先写到这,机器很慢,给我的感觉make好象需要一年时间,不太爽。
作者: xiaomage79    时间: 2006-02-27 11:26
到hp网站上找T1471AA安装好了  openssl

swinstall –s /depot/T1471AA_A.04.20.004_HP-UX_B.11.11_32+64.depot




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2