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

From: fao_ <finnoleary_AT_inventati.org>
Date: Fri, 25 Aug 2017 20:17:08 +0000

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.

-- 
- fao_
PGP fingerprint: 739B 6C5C 3DE1 33FA
"Too enough is always not much!"
Received on Fri Aug 25 2017 - 22:17:08 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 25 2017 - 22:24:22 CEST