Building against libwebsockets-dev fails with openssl-hardened-dev installed
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- c
- Lĩnh vực
- build-system
Hướng nghiên cứu
Start by running the minimal test.c and Dockerfile reproduction with libwebsockets-dev plus curl-dev, then compare the working openssl-dev setup with the failing openssl-hardened-dev setup. Trace the libwebsockets.h inclusion of lws-genrsa.h and the available OpenSSL headers. Done means gcc test.c succeeds when curl-dev and libwebsockets-dev are installed together.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Compiling a program including libwebsockets.h fails if openssl-hardened-dev is installed. It works if openssl-dev is installed.
This was found when building a program using both libwebsockets-dev and curl-dev... curl-dev depends on openssl-hardened-dev and thus the build fails. This worked until recently.
The build error is:
#0.186 In file included from /usr/include/libwebsockets.h:943,
#0.186 from test.c:1:
#0.186 /usr/include/libwebsockets/lws-genrsa.h:76:9: error: unknown type name 'RSA'
#0.186 76 | RSA *rsa;
#0.186 | ^~~
A minimal program able to reproduce the build error:
#include <libwebsockets.h>
int main()
{
return 0;
}
Dockerfile to reproduce the issue
FROM cgr.dev/chainguard/wolfi-base:latest
RUN apk add --no-cache gcc libwebsockets-dev
COPY ./test.c /src/
WORKDIR /src/
# works
#RUN apk add --no-cache openssl-dev
#RUN apk add --no-cache openssl-3.6-dev
# all fail with "unknown type name RSA"
RUN apk add --no-cache curl-dev
#RUN apk add --no-cache openssl-hardened-dev
#RUN apk add --no-cache openssl-hardened-3.6-dev
#RUN apk add --no-cache openssl-dev curl-dev
RUN gcc test.c
- Ngôn ngữ chính
- Shell
- Star
- 1.3k
- Fork
- 443
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của wolfi-dev/os
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
mariadb: entrypoint hardcodes _mariadb_version() to 11.5.2, silently disabling upgrade detectionĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
py3-ecdsa: add new packageĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Issue tương tự
-
Feature Needs Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
project-chip/certification-tool#1154 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
beehive-lab/TornadoVM#1151 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
component/tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
NVIDIA/nodewright#735 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
writing-plans: user-facing text that describes app behaviour should cite the code it describesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
obra/superpowers#2433 ·
Maintainer thường phản hồi trong vòng 5 ngày