Package Details: libhttpserver 0.19.0-1

Git Clone URL: (read-only, click to copy)
Package Base: libhttpserver
Description: C++ library for creating an embedded Rest HTTP server (and more)
Upstream URL:
Licenses: BSD
Conflicts: libhttpserver-git
Submitter: PhCl
Maintainer: PhCl
Last Packager: PhCl
Votes: 0
Popularity: 0.000000
First Submitted: 2020-05-18 13:19 (UTC)
Last Updated: 2023-11-09 23:43 (UTC)

Latest Comments

PhCl commented on 2023-11-09 23:49 (UTC)

Updated to 0.19.0. Hope it fixes the problem.

dreieck commented on 2023-11-06 09:49 (UTC) (edited on 2023-11-06 09:51 (UTC) by dreieck)

I have the same issue that CtrlC-Root reported on 2022-07-01, and there is a new version 0.19.0 out.

The package libhttpserver-git builds, so some update of this package is needed (if 0.19.0 also does not build, then maybe some patch manually applied from the current git state may be needed in addition).

Please update the package.

Regards and thanks for maintaining!

CtrlC-Root commented on 2022-07-01 01:10 (UTC)

Version 0.18.2 fails to build on my machine:

g++ -DHAVE_CONFIG_H -I. -I../../examples -I..  -I../../src -I../../src/httpserver/  -DENABLE_POLL -DENABLE_EPOLL -O3 -DUSE_FASTOPEN -std=c++11 -DHTTPSERVER_COMPILATION -D_REENTRANT  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -MT minimal_deferred.o -MD -MP -MF $depbase.Tpo -c -o minimal_deferred.o ../../examples/minimal_deferred.cpp &&\
mv -f $depbase.Tpo $depbase.Po
../../examples/minimal_deferred.cpp: In function ‘ssize_t test_callback(std::shared_ptr<void>, char*, size_t)’:
../../examples/minimal_deferred.cpp:32:9: error: ‘memset’ was not declared in this scope
   32 |         memset(buf, 0, max);
      |         ^~~~~~
../../examples/minimal_deferred.cpp:22:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
   21 | #include <httpserver.hpp>
  +++ |+#include <cstring>
   22 | 
../../examples/minimal_deferred.cpp:33:9: error: ‘strcat’ was not declared in this scope
   33 |         strcat(buf, " test ");
      |         ^~~~~~
../../examples/minimal_deferred.cpp:33:9: note: ‘strcat’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
make[2]: *** [Makefile:683: minimal_deferred.o] Error 1
make[2]: Leaving directory '/home/alex/packages/libhttpserver/src/libhttpserver-0.18.2/build/examples'
make[1]: *** [Makefile:616: all-recursive] Error 1
make[1]: Leaving directory '/home/alex/packages/libhttpserver/src/libhttpserver-0.18.2/build'
make: *** [Makefile:503: all] Error 2
==> ERROR: A failure occurred in build().

PhCl commented on 2020-11-16 00:10 (UTC)

0.18.2 has been released, fixing the build problem.

PhCl commented on 2020-11-13 10:38 (UTC)

Holding back the 0.18.1 release, as it will lead to build errors.

It is an incompatibility with the latest libmicrohttpd. The problem has been fixed on master (, but the current 0.18.1 release does not include it. That is why it will break when you build it on Arch Linux: