Re: [dev] [9base] [musl] "Undefined reference to sigsetjmp"

From: Anselm R Garbe <garbeam_AT_gmail.com>
Date: Sat, 26 Aug 2017 15:41:33 +0200

On 25 August 2017 at 22:17, fao_ <finnoleary_AT_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
Received on Sat Aug 26 2017 - 15:41:33 CEST

This archive was generated by hypermail 2.3.0 : Sat Aug 26 2017 - 15:48:16 CEST