[Libwebsockets] LWS_WITH_HTTP_UNCOMMON_HEADERS compile problem

Jakov Smolic jakov.smolic at sartura.hr
Fri May 1 15:54:13 CEST 2020


Hi Andy,
building libwebsockets on Gentoo Linux uncommon header support turned off
causes some build problems.
Namely, I get this error:

/var/tmp/portage/net-libs/libwebsockets-4.0.4/work/libwebsockets-4.0.4/lib/roles/http/server/server.c:
In function 'lws_unauthorised_basic_auth':
/var/tmp/portage/net-libs/libwebsockets-4.0.4/work/libwebsockets-4.0.4/lib/roles/http/server/server.c:873:4:
error: 'WSI_TOKEN_HTTP_WWW_AUTHENTICATE' undeclared (first use in this
function); did you mean 'WSI_TOKEN_HTTP_CONTENT_RANGE'?
  873 |    WSI_TOKEN_HTTP_WWW_AUTHENTICATE,
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |    WSI_TOKEN_HTTP_CONTENT_RANGE
/var/tmp/portage/net-libs/libwebsockets-4.0.4/work/libwebsockets-4.0.4/lib/roles/http/server/server.c:873:4:
note: each undeclared identifier is reported only once for each function it
appears in

I'm not sure if this is related with my build configuration or something
else.
Thank you for your help in advance.

Kind regards,
Jakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20200501/a22aa259/attachment.htm>


More information about the Libwebsockets mailing list