Can't compile old commits

Tomohiro Kusumi kusumi.tomohiro at gmail.com
Wed Oct 5 15:08:37 PDT 2016


I'm using the current master, and trying to compile some userspace
code (run make under some dir) in a dragonfly commit of about a month
ago, but fails with bunch of these.

This at least occurs with sbin/hammer,hammer2,newfs_hammer,newfs_hammer2.
What are these __malloclike errors ?


In file included from hammer.h:45:0,
                 from hammer.c:35:
/usr/include/stdlib.h:93:7: error: no previous prototype for 'calloc'
[-Werror=missing-prototypes]
 void *calloc(size_t, size_t) __malloclike __heedresult;
       ^
/usr/include/stdlib.h: In function 'calloc':
/usr/include/stdlib.h:93:30: error: expected declaration specifiers
before '__malloclike'
 void *calloc(size_t, size_t) __malloclike __heedresult;
                              ^
/usr/include/stdlib.h:102:22: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__malloclike'
 void *malloc(size_t) __malloclike __heedresult __alloc_size(1);
                      ^
/usr/include/stdlib.h:108:44: error: expected ',' or ';' before '__alloc_size'
 void *realloc(void *, size_t) __heedresult __alloc_size(2);
                                            ^
/usr/include/stdlib.h:141:3: error: storage class specified for
parameter 'lldiv_t'
 } lldiv_t;
   ^
/usr/include/stdlib.h:150:1: error: expected declaration specifiers
before 'lldiv_t'
 lldiv_t  lldiv(long long, long long) __pure2;
 ^
/usr/include/stdlib.h:166:37: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__malloclike'
 void *aligned_alloc(size_t, size_t) __malloclike __heedresult
                                     ^
/usr/include/stdlib.h:300:45: error: expected ',' or ';' before '__alloc_size'
 void *reallocf(void *, size_t) __heedresult __alloc_size(2);
                                             ^
/usr/include/stdlib.h:318:14: error: storage class specified for
parameter 'suboptarg'
 extern char *suboptarg;   /* getsubopt(3) external variable */


More information about the Users mailing list