On 1 February 2016 at 11:53, Patrick Welche <[email protected]> wrote: > Following the hints to try out ljsyscall, after: > > git clone https://github.com/justincormack/ljsyscall.git > cd ljsyscall/ > git submodule update --init --recursive > cd include/ > cd buildrump.sh/ > sh buildrump.sh
The "bundled" buildrump with ljsyscall is very old, you should just use upstream now, I should remove the submodule. It was mainly there for dev and CI purposes when it was less stable. Justin > I hit: > > ljsyscall/include/buildrump.sh/src/lib/librumpuser/rumpuser_pth.c:56:1: > error: conflicting types for 'aligned_alloc' > aligned_alloc(size_t size) > ^ > In file included from > /scratch3/prlw1/ljsyscall/include/buildrump.sh/src/lib/librumpuser/rumpuser_pth.c:44:0: > /usr/include/stdlib.h:237:7: note: previous declaration of 'aligned_alloc' > was here > void *aligned_alloc(size_t, size_t); > ^ > > I am compiling on NetBSD-current, which recently grew an aligned_alloc() > definition in src/include/stdlib.h: > > revision 1.116 > date: 2015-11-07 16:21:42 +0000; author: nros; state: Exp; lines: +2 -1; > commitid: guYSC2DYbEnN8bIy; > Add the C11 function aligned_alloc to libc. > @@ -234,6 +234,7 @@ > > #if defined(_ISOC11_SOURCE) || (__STDC_VERSION__ - 0) >= 201101L || \ > defined(_NETBSD_SOURCE) || (__cplusplus - 0) >= 201103L > +void *aligned_alloc(size_t, size_t); > int at_quick_exit(void (*)(void)); > __dead void quick_exit(int); > #endif > > man page: > void * > aligned_alloc(size_t alignment, size_t size); > > > Not sure what is best given single argument use in rumpuser_pth.c... > > > Cheers, > > Patrick >
