clang -O2 -Wall -Wextra -Werror=implicit-function-declaration mqueue/mq_setattr.c -o mqueue/mq_setattr -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lintl mqueue/mq_setattr.c:110:21: warning: & has lower precedence than !=; != will be evaluated first [-Wparentheses] if ( attr.mq_flags & O_NONBLOCK != 0 ) ^~~~~~~~~~~~~~~~~ mqueue/mq_setattr.c:110:21: note: place parentheses around the '!=' expression to silence this warning if ( attr.mq_flags & O_NONBLOCK != 0 ) ^ ~~~~~~~~~~~~~~~ mqueue/mq_setattr.c:110:21: note: place parentheses around the & expression to evaluate it first if ( attr.mq_flags & O_NONBLOCK != 0 ) ~~~~~~~~~~~~~~^~~~~~~~~~~~ mqueue/mq_setattr.c:128:25: warning: & has lower precedence than !=; != will be evaluated first [-Wparentheses] if ( old_attr.mq_flags & O_NONBLOCK != 0 ) ^~~~~~~~~~~~~~~~~ mqueue/mq_setattr.c:128:25: note: place parentheses around the '!=' expression to silence this warning if ( old_attr.mq_flags & O_NONBLOCK != 0 ) ^ ~~~~~~~~~~~~~~~ mqueue/mq_setattr.c:128:25: note: place parentheses around the & expression to evaluate it first if ( old_attr.mq_flags & O_NONBLOCK != 0 ) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ mqueue/mq_setattr.c:139:27: warning: & has lower precedence than !=; != will be evaluated first [-Wparentheses] if ( final_attr.mq_flags & O_NONBLOCK != O_NONBLOCK ) ^~~~~~~~~~~~~~~~~~~~~~~~~~ mqueue/mq_setattr.c:139:27: note: place parentheses around the '!=' expression to silence this warning if ( final_attr.mq_flags & O_NONBLOCK != O_NONBLOCK ) ^ ~~~~~~~~~~~~~~~~~~~~~~~~ mqueue/mq_setattr.c:139:27: note: place parentheses around the & expression to evaluate it first if ( final_attr.mq_flags & O_NONBLOCK != O_NONBLOCK ) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 3 warnings generated. ../out/minix/basic/mqueue/mq_setattr.o: In function `main': mqueue/mq_setattr.c:(.text+0x4e3): undefined reference to `mq_open' mqueue/mq_setattr.c:(.text+0x52d): undefined reference to `mq_getattr' mqueue/mq_setattr.c:(.text+0x5b1): undefined reference to `mq_setattr' mqueue/mq_setattr.c:(.text+0x5f5): undefined reference to `mq_getattr' ../out/minix/basic/mqueue/mq_setattr.o: In function `cleanup': mqueue/mq_setattr.c:(.text+0x7ab): undefined reference to `mq_unlink' ../out/minix/basic/mqueue/mq_setattr.o: In function `on_signal': mqueue/mq_setattr.c:(.text+0x8bf): undefined reference to `mq_unlink' clang: error: linker command failed with exit code 1 (use -v to see invocation)