Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#78,747 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c
Ambito
build-system

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Shell
Stelle
1.3k
Fork
443
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wolfi-dev/os

Tutte le issue di wolfi-dev/os

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.