loentar / ngrest

Fast and easy C++ RESTful WebServices framework
Apache License 2.0
464 stars 93 forks source link

Couldn't be built from source code on Raspberry PI Bullseye #89

Open burakgokberk opened 2 years ago

burakgokberk commented 2 years ago

Hi, I can not build ngrest from source code. I have raspberry pi 3 with bullseye. I followed the instructions but after "make" command, I get this error

            from /usr/include/apache2/ap_config.h:25,
             from /home/pi/install/ngrest/modules/apache2/src/mod_ngrest.c:2                  2:

/usr/include/apr-1.0/apr.h:381:10: error: unknown type name ‘off64_t’ 381 | typedef off64_t apr_off_t; | ^~~ make[2]: [modules/apache2/CMakeFiles/ngrest_apache2_mod.dir/build.make:95: m odules/apache2/CMakeFiles/ngrest_apache2_mod.dir/src/mod_ngrest.c.o] Error 1 make[1]: [CMakeFiles/Makefile2:935: modules/apache2/CMakeFiles/ngrest_apache 2_mod.dir/all] Error 2 make: *** [Makefile:160: all] Error 2

Can you help me please ? Thanks in advance

loentar commented 2 years ago

Hi, it looks like is a platform problem, try one of solutions described here: https://stackoverflow.com/questions/22663897/unknown-type-name-off64-t