Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Building against libwebsockets-dev fails with openssl-hardened-dev installed

Đang mở
#78,747 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ả

bug needs-triage

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của wolfi-dev/os

Tất cả issue của wolfi-dev/os

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.