For anyone else interested, try this chunk in any Makefile of a misbehaving program. .if !empty(GLIBC_VERSION) # gnu-lib before 2018/03/05 doesn't handle glibc-2.28's libio.h removal CFLAGS+= -D_IO_ftrylockfile .endif (I assume more than 1 program will need it)