ossrs / srs

SRS is a simple, high-efficiency, real-time media server supporting RTMP, WebRTC, HLS, HTTP-FLV, HTTP-TS, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
25.37k stars 5.34k forks source link

srs compilation using --use-sys-ssl and --srt=on issues #3098

Closed victoriahammer closed 2 years ago

victoriahammer commented 2 years ago

Note: Please read FAQ before file an issue, see 2716

Note: Before asking a question, please refer to the FAQ, specifically 2716.

Compiling SRS with "--srt=on --use-sys-ssl" will result in a compilation failure. The error message states "OpenSSL pkgconfig not found, build srt-1-fit failed." Upon examining the compilation script, it appears that OpenSSL is not being compiled, hence the inability to locate "objs/${SRS_PLATFORM}/openssl/lib/pkgconfig".

auto/depends.sh

if [[ ! -d ${SRS_OBJS}/${SRS_PLATFORM}/openssl/lib/pkgconfig ]]; then
                echo "OpenSSL pkgconfig no found, build srt-1-fit failed.";
                exit -1;
            fi

Please describe the issue you are facing here.

  1. SRS Version: 4.0.236

  2. SRS Log:

OpenSSL pkgconfig no found, build srt-1-fit failed.
  1. SRS Config:

N/A

Replay (重现)

Please describe how to replay the bug? (重现Bug的步骤)

./configure --srt=on --use-sys-ssl && make

Expect (Expected Behavior)

Please describe your expectation. The srt file compiles correctly.

TRANS_BY_GPT3

xiaozhihong commented 2 years ago

./configure --srt=on Is it necessary for you to use the system's SSL library?

TRANS_BY_GPT3

victoriahammer commented 2 years ago

./configure --srt=on. Do you really need to use the system's SSL library?

I mainly provide feedback on the issue with the compilation script in this scenario. Using the system's SSL is because SSL vulnerabilities have been constantly reported.

TRANS_BY_GPT3

winlinvip commented 2 years ago

The SSL system may also have vulnerabilities, but compiling and upgrading the SSL source code of SRS will be faster.

TRANS_BY_GPT3

victoriahammer commented 2 years ago

The SSL system may also have vulnerabilities, but compiling and upgrading the SSL source code of SRS will be faster.

Does it mean to directly replace /3rdparty/openssl-1.1-fit and compile directly?

TRANS_BY_GPT3