[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#453264: libc6-dev: fails to define ptrdiff_t in malloc.h



severity 453264 important
thanks

brian m. carlson a écrit :
> Package: libc6-dev
> Version: 2.7-2
> Severity: serious
> Justification: breaks other packages
> 
> The following test program:
> 
> ---
> #define _XOPEN_SOURCE
> #include <wchar.h>
> #include <malloc.h>
> ---
> 
> results in a compile-time error:
> 
> In file included from foo.c:3:
> /usr/include/malloc.h:85: error: expected ‘)’ before ‘__size’
> /usr/include/malloc.h:88: error: expected ‘)’ before ‘__size’
> 
> This is due to ptrdiff_t not being properly defined.  This bug is 
> causing swi-prolog to FTBFS (#453167).  Also note that #defining 
> _XOPEN_SOURCE to 400 (or any other number less than 500) works as well 
> to trigger the bug, in case you have some philosophical objection to 
> #defining it to an empty value.
> 

A quick workaround is to invert the two #include

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net




Reply to: