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
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