HalosGhost / pandabin

A self-hostable, simple and fast pastebin written in C
GNU General Public License v3.0
3 stars 0 forks source link

pthread_barrier_t is masked by __USE_XOPEN2K #20

Closed buhman closed 5 years ago

buhman commented 6 years ago
tup warning: unshare(CLONE_NEWUSER) failed, and tup is not privileged. Subprocesses will have '.tup/mnt' paths for the current working directory and some dependencies may be missed.
[ tup ] [0.000s] Scanning filesystem...
tup warning: generated file 'dist/pandabin' was deleted outside of tup. This file may be re-created on the next update.
[ tup ] [0.043s] Reading in new environment variables...
[ tup ] [0.043s] Parsing Tupfiles...
 1) [0.001s] .
 2) [0.001s] src                                                            
 3) [0.000s] pandabin                                                       
 [   ] 100%
[ tup ] [0.049s] No files to delete.                                        
[ tup ] [0.049s] Generating .gitignore files...
[ tup ] [0.090s] Executing Commands...
* 1) src: clang -g -O3 -fPIE -pie -Weverything -Werror -Wno-disabled-macro-expansion -std=c11 -ggdb -D_FORTIFY_SOURCE=2 -fstack-protector-strong -march=native --param=ssp-buffer-size=1 -Wl,-z,relro,-z,now -flto -fsanitize=undefined -fsanitize-trap=undefined `pkg-config --libs uuid openssl sqlite3 lwan` main.c paste.c routes.c sql.c -o ../dist/pandabin
In file included from main.c:1:
In file included from ./main.h:16:
/usr/include/lwan/lwan.h:325:9: error: unknown type name 'pthread_barrier_t'; did you mean 'pthread_attr_t'?
        pthread_barrier_t barrier;
        ^
/usr/include/bits/pthreadtypes.h:69:30: note: 'pthread_attr_t' declared here
typedef union pthread_attr_t pthread_attr_t;
                             ^
1 error generated.
 *** tup errors ***
 *** Command ID=35 failed with return value 1
tup error: Expected to write to file '../dist/pandabin' from cmd 35 but didn't
 *** Additionally, command 35 failed to process input dependencies. These should probably be fixed before addressing the command failure.
 [ ] 100%
 *** tup: 1 job failed.
make: *** [Makefile:10: all] Error 1