View Issue Details

IDProjectCategoryView StatusLast Update
0009667libmicrohttpddocumentationpublic2025-03-27 11:47
Reporterwiz Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version1.0.0 
Summary0009667: tutorial is outdated
DescriptionThe tutorial at https://www.gnu.org/software/libmicrohttpd/tutorial.html seems to have last been updated in 2016.
Much of the code in it doesn't compile since the HTTP handler function return value was changed from 'int' to 'MHD_Result' since then, leading to errors like this:
 error: invalid conversion from ‘int’ to ‘MHD_Result’ [-fpermissive]

Please update the tutorial so the code compiles. Thank you!
Steps To ReproduceRead the tutorial, try to run the code.
TagsNo tags attached.

Activities

wiz

2025-03-27 11:47

reporter   ~0024314

Additionally, the example on the homepage doesn't compile either with -fpermissive:
https://www.gnu.org/software/libmicrohttpd/

error: invalid conversion from ‘void*’ to ‘const char*’ [-fpermissive]
   75 | const char * page = cls;
      | ^~~
      | |
      | void*

error: invalid conversion from ‘int’ to ‘MHD_Result’ [-fpermissive]
   98 | return ret;
      | ^~~
      | |
      | int

Issue History

Date Modified Username Field Change
2025-03-27 11:43 wiz New Issue
2025-03-27 11:47 wiz Note Added: 0024314