TLS1.2 지원을 받기 위해 Centos 6.5용 stunnel 5.x RPM을 찾고 있습니다. 여기저기 찾아보았으나 찾을 수가 없습니다. 여기의 다른 질문(제목: Centos의 Stunnel 5.4)에 따라 다운로드 및 컴파일을 시도하고 모든 지침을 따랐지만 컴파일 오류가 발생했습니다.
명령은 다음과 같습니다: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 스크립틀릿 실패"에 관한 내용 %systemd_post stunnel.service
→ CentOS 6에는 시스템이 없습니다.…노트: "Line 2: fg: no job control"과 같은 메시지 및 경고아니요실수. 그냥 정보.
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는 상당히 오래된 버전이므로 최신 openssl 패키지를 얻으려면 6.9(또는 곧 6.10)로 마이그레이션해야 합니다.