You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Building against libwebsockets-dev fails with openssl-hardened-dev installed #78747
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
changed the title [-]libwebsockets-dev fails with openssl-hardened-dev installed[/-][+]Building against libwebsockets-dev fails with openssl-hardened-dev installed[/+]on Sep 27, 2026
Activity
[-]libwebsockets-dev fails with openssl-hardened-dev installed[/-][+]Building against libwebsockets-dev fails with openssl-hardened-dev installed[/+]