babelouest / ulfius

Web Framework to build REST APIs, Webservices or any HTTP endpoint in C language. Can stream large amount of data, integrate JSON data with Jansson, and create websocket services
https://babelouest.github.io/ulfius
GNU Lesser General Public License v2.1
1.07k stars 183 forks source link

Make fail when disable CURL #218

Closed kiwionly closed 2 years ago

kiwionly commented 2 years ago

Describe the issue Hi, I was try to build the library but have fail to do so, please let me know if my steps of build was wrong, thanks !

To Reproduce

git clone cd make

Expected behavior build success

Screenshots image

System (please complete the following information):

Additional context Add any other context about the problem here.

babelouest commented 2 years ago

Hello @kiwionly ,

I can reproduce the bug using the last commit, but the current release 2.7.7 works fine without curl. I'll fix that asap in the master branch.

Thanks for noticing!

babelouest commented 2 years ago

Hello @kiwionly ,

The bug has been fixed in this commit: https://github.com/babelouest/ulfius/commit/32fa503ef161f13c6a0371246b76f84402fbe55c , can you check if it's fixed on your side as well?

kiwionly commented 2 years ago

@babelouest

I try to skip GNUTLS, but seem like have issue even CRUL could skip.

image

By follow INSTALL.md, the instruction for disabled CRUL is CURLFLAG=1, However in online documentation it show is CURLFLAG=-DU_DISABLE_CURL, perhaps could standardized the command ?

babelouest commented 2 years ago

Indeed, the API.md documentation is not consistent with INSTALL.md

I'll change the API.md (and therefore the online doc) to XXXFLAG=1

Concerning the GNUTLSFLAG issue, I can't reproduce the problem on my side, how did you install the dependencies?

kiwionly commented 2 years ago

I am running on the pretty old OS , centos 7.9, i think all dependencies is missing, even I install manually, still not work really smooth.

babelouest commented 2 years ago

Until recently, I provide Centos packages using powertools repo, check the 2.7.7 release page

libmicrohttpd is available in the PowerTools repo.

Maybe you can check the package build scripts to help you build ulfius on Centos: https://github.com/babelouest/huddersfield/blob/master/docker-base/centos-latest/Dockerfile https://github.com/babelouest/huddersfield/blob/master/ulfius/build/rpm/Dockerfile https://github.com/babelouest/huddersfield/blob/master/ulfius/build/rpm/entrypoint.sh