View Issue Details

IDProjectCategoryView StatusLast Update
0002511libmicrohttpdbuild systempublic2012-09-01 20:53
Reporterwella Assigned ToChristian Grothoff  
PriorityhighSeverityblockReproducibilityalways
Status closedResolutionfixed 
PlatformEmbeddedOSFreeRTOSOS Version7.1
Product Version0.9.21 
Target Version0.9.22Fixed in Version0.9.22 
Summary0002511: Not having memory.h prevents from compiling
DescriptionMy toolchain for embedded system (arm-none-eabi-gcc) does not have memory.h.
I am unable to compile the library because of missing memory.h.

In MHD_config.h is set:
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H

but md5.c and base64.c files do not provide checks for this macro and include it always.

I would suggest to put this check after including definition headers:

#if HAVE_MEMORY_H
#include <memory.h>
#else
#include <string.h>
#endif
Steps To ReproduceAlways during compilation
TagsNo tags attached.

Activities

Christian Grothoff

2012-08-23 00:45

manager   ~0006278

Should be fixed in SVN 23370. The real answer is that md5.h and base64.h should have used 'platform.h'.

Christian Grothoff

2012-09-01 20:53

manager   ~0006318

Released in 0.9.22.

Issue History

Date Modified Username Field Change
2012-08-21 13:45 wella New Issue
2012-08-23 00:37 Christian Grothoff Assigned To => Christian Grothoff
2012-08-23 00:37 Christian Grothoff Status new => assigned
2012-08-23 00:45 Christian Grothoff Note Added: 0006278
2012-08-23 00:45 Christian Grothoff Status assigned => resolved
2012-08-23 00:45 Christian Grothoff Fixed in Version => 0.9.22
2012-08-23 00:45 Christian Grothoff Resolution open => fixed
2012-08-23 00:45 Christian Grothoff Target Version => 0.9.22
2012-09-01 20:53 Christian Grothoff Note Added: 0006318
2012-09-01 20:53 Christian Grothoff Status resolved => closed