我正在寻找适用于 Centos 6.5 的 stunnel 5.x RPM,以便获得 TLS1.2 支持。我到处都找过了,但找不到。我尝试按照此处的另一个问题(标题:Stunnel 5.4 on Centos )下载和编译,并按照所有说明进行操作,但遇到了编译错误。
命令是:rpmbuild -ta stunnel-5.46.tar.gz
这是一个例子。
client.c:147: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic'
client.c:180: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic'
client.c:203: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic'
/root/rpmbuild/BUILD/stunnel-5.46/src/client.c:487: undefined reference to `OpenSSL_version_num'
/root/rpmbuild/BUILD/stunnel-5.46/src/client.c:487: undefined reference to `OpenSSL_version_num'
/root/rpmbuild/BUILD/stunnel-5.46/src/client.c:488: undefined reference to `OpenSSL_version_num'
/root/rpmbuild/BUILD/stunnel-5.46/src/stunnel.c:897: undefined reference to `OpenSSL_version'
/root/rpmbuild/BUILD/stunnel-5.46/src/stunnel.c:899: undefined reference to `OpenSSL_version'
/root/rpmbuild/BUILD/stunnel-5.46/src/stunnel.c:900: undefined reference to `OpenSSL_version_num'
collect2: ld returned 1 exit status
make[2]: *** [stunnel] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/stunnel-5.46/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/rpmbuild/BUILD/stunnel-5.46/src'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.mbHOf4 (%build)
如果有人可以提供帮助,我将不胜感激。
问候理查德
答案1
CentOS 6.9 - x86_64 .... stunnel-5.46
设置“rpmbuild 环境”$HOME/rpms/https://www.linuxquestions.org/questions/linux-software-2/need-rpm-package-for-php-version-5-2-7-and-up-on-redhat-5-1-a- 766486/#13
$ rpm -i http://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/s/stunnel-5.46-1.fc29.src.rpm
$ cd rpms/SPECS/ // Edit stunnel.spec to :
: 37 : # BuildRequires: systemd // comment out "BuildRequires: systemd"
: 69 : make // edit to "no-pie" ( to 'make' only )
$ rpmbuild -bb stunnel.spec
.
Wrote: /home/knudfl/rpms/RPMS/x86_64/stunnel-5.46-1.el6.x86_64.rpm
Wrote: /home/knudfl/rpms/RPMS/x86_64/stunnel-debuginfo-5.46-1.el6.x86_64.rpm
stunnel_make.log.txt https://www.dropbox.com/s/idn5i7mrn16feor/stunnel_make.log.txt?dl=0
包裹stunnel-5.46-1.el6.x86_64.rpm
https://drive.google.com/file/d/1Sd7TdW9GWJppN_jqsmVE9U68gBCxn3sr/view?usp=sharing
# yum install Downloads/stunnel-5.46-1.el6.x86_64.rpm
我的安装测试...
# yum install /home/knudfl/rpms/RPMS/x86_64/stunnel-5.46-1.el6.x86_64.rpm
.
.
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : stunnel-5.46-1.el6.x86_64
/var/tmp/rpm-tmp.82cIfj: line 2: fg: no job control
warning: %post(stunnel-5.46-1.el6.x86_64) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package stunnel-5.46-1.el6.x86_64
Cleanup : stunnel-4.56-4.el6.x86_64
Verifying : stunnel-5.46-1.el6.x86_64
Verifying : stunnel-4.56-4.el6.x86_64
“非致命 POSTIN scriptlet 失败”是关于%systemd_post stunnel.service
→ CentOS 6 中没有 systemd. ...笔记:诸如“第 2 行:fg:无作业控制”之类的信息和警告不是错误。只是信息。
stunnel-4.29
(再次)安装默认值:https://www.dropbox.com/s/tvhyt44br567jkr/stunnel_install.txt?dl=0
答案2
rhel/centos 6.x 中的 stunnel 4.56 已支持 TLS v1.2。
然而,6.5 是一个相当旧的版本,因此您应该迁移到 6.9(或很快的 6.10)以获得最新的 openssl 软件包。