On 25 August 2017 at 22:17, fao_ <finnole...@inventati.org> wrote:
> When compiling 9base with
>
>>  CC=musl-gcc
>>  PREFIX=""
>>  OBJTYPE=x86_64
>
>
> I get the error:
>
>>  ../lib9/lib9.a(notify.o): In function `signotify`:
>>  notify.c:(.text+0x9a): undefined reference to `sigsetjmp`
>>  collect2: error: ld returned 1 exit status
>
>
> Except:
> $ grep -Rni "sigsetjmp" /usr/lib/musl/
>>
>>  /usr/lib/musl/include/setjmp.h:22:int sigsetjmp (sigjmp_buf, int);
>>  ...
>
>
> On the offchance that `setjmp.h` was not included in `notify.c`, I
> added it manually. It still failed with the same error.

Nice spot, according to this[0] musl discourages legacy setjmp
behaviour. Hence I guess it will need a bit of fiddling in 9base to
make it p9setjmp-free.

I will check this during next week.

[0] http://wiki.musl-libc.org/wiki/Functional_differences_from_glibc

BR,
Anselm

Reply via email to