From dff7dd7087f33150dcf33be4f7174aa70d58426e Mon Sep 17 00:00:00 2001 From: Ayrton Sparling Date: Thu, 21 Apr 2022 10:34:25 -0700 Subject: [PATCH 1/2] Add alpine linux instructions to readme Alpine's uses musl rather than libc and does not have support for `pthread_getname_np`. Therefore it must be build with `WITH_PTHREAD_NP=false`. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7529899..da7136e 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ You'll need ```make```, ```gcc```, ```libevent``` with ```pthreads``` support, * Arch: `sudo pacman -S libevent libjpeg-turbo libutil-linux libbsd`. * Raspbian: `sudo apt install libevent-dev libjpeg8-dev libbsd-dev`. Add `libgpiod-dev` for `WITH_GPIO=1` and `libsystemd-dev` for `WITH_SYSTEMD=1`. * Debian/Ubuntu: `sudo apt install build-essential libevent-dev libjpeg-dev libbsd-dev`. +* Alpine: `sudo apk add libevent-dev libbsd-dev libjpeg-turbo-dev musl-dev`. Build with `WITH_PTHREAD_NP=false`. To enable GPIO support install [libgpiod](https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/about) and pass option ```WITH_GPIO=1```. If the compiler reports about a missing function ```pthread_get_name_np()``` (or similar), add option ```WITH_PTHREAD_NP=0``` (it's enabled by default). For the similar error with ```setproctitle()``` add option ```WITH_SETPROCTITLE=0```. From caef82d96f4c1cd6d6c229f20532e82e2b91f79f Mon Sep 17 00:00:00 2001 From: Ayrton Sparling Date: Thu, 21 Apr 2022 13:34:05 -0700 Subject: [PATCH 2/2] Change WITH_PTHREAD_NP=false to WITH_PTHREAD_NP=0 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index da7136e..2d2cfcd 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ You'll need ```make```, ```gcc```, ```libevent``` with ```pthreads``` support, * Arch: `sudo pacman -S libevent libjpeg-turbo libutil-linux libbsd`. * Raspbian: `sudo apt install libevent-dev libjpeg8-dev libbsd-dev`. Add `libgpiod-dev` for `WITH_GPIO=1` and `libsystemd-dev` for `WITH_SYSTEMD=1`. * Debian/Ubuntu: `sudo apt install build-essential libevent-dev libjpeg-dev libbsd-dev`. -* Alpine: `sudo apk add libevent-dev libbsd-dev libjpeg-turbo-dev musl-dev`. Build with `WITH_PTHREAD_NP=false`. +* Alpine: `sudo apk add libevent-dev libbsd-dev libjpeg-turbo-dev musl-dev`. Build with `WITH_PTHREAD_NP=0`. To enable GPIO support install [libgpiod](https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/about) and pass option ```WITH_GPIO=1```. If the compiler reports about a missing function ```pthread_get_name_np()``` (or similar), add option ```WITH_PTHREAD_NP=0``` (it's enabled by default). For the similar error with ```setproctitle()``` add option ```WITH_SETPROCTITLE=0```.