View Issue Details

IDProjectCategoryView StatusLast Update
0009667libmicrohttpddocumentationpublic2025-08-16 15:43
Reporterwiz Assigned ToChristian Grothoff  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version1.0.0 
Target Version1.0.1Fixed in Version1.0.1 
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

Christian Grothoff

2025-08-16 15:42

manager   ~0025650

Fixed now, thanks for reporting!

Issue History

Date Modified Username Field Change
2025-03-27 11:43 wiz New Issue
2025-03-27 11:47 wiz Note Added: 0024314
2025-08-14 13:55 Christian Grothoff Assigned To => Christian Grothoff
2025-08-14 13:55 Christian Grothoff Status new => assigned
2025-08-16 15:42 Christian Grothoff Note Added: 0025650
2025-08-16 15:42 Christian Grothoff Status assigned => resolved
2025-08-16 15:42 Christian Grothoff Resolution open => fixed
2025-08-16 15:42 Christian Grothoff Fixed in Version => 1.0.1
2025-08-16 15:43 Christian Grothoff Target Version => 1.0.1