clang -O2 -Wall -Wextra -Werror=implicit-function-declaration sys_msg/msgget.c -o sys_msg/msgget -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lintl ../out/minix/basic/sys_msg/msgget.o: In function `main': sys_msg/msgget.c:(.text+0x3d4): undefined reference to `msgget' ../out/minix/basic/sys_msg/msgget.o: In function `cleanup': sys_msg/msgget.c:(.text+0x47b): undefined reference to `__msgctl50' ../out/minix/basic/sys_msg/msgget.o: In function `on_signal': sys_msg/msgget.c:(.text+0x5af): undefined reference to `__msgctl50' clang: error: linker command failed with exit code 1 (use -v to see invocation)