Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#78,747 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
c
領域
build-system

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Shell
スター
1.3k
フォーク
443
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wolfi-dev/os のほかの issue

wolfi-dev/os の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。