make fails on daemon 1.9.5.3

so yeah, trying to update my really old version, but I can't get this to compile.

here are the errors:

utility_funcs.c: In function ‘uf_create_pidfile’:
utility_funcs.c:164: warning: operation on ‘l’ may be undefined
utility_funcs.c: In function ‘uf_conf_write’:
utility_funcs.c:362: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
utility_funcs.c:368: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
utility_funcs.c:376: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
In file included from /usr/include/fcntl.h:205,
from utility_funcs.c:34:
In function ‘open’,
inlined from ‘uf_conf_write’ at utility_funcs.c:359:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[2]: *** [utility_funcs.o] Error 1
make[2]: Leaving directory `/home/craig/Desktop/g15daemon-1.9.5.3/g15daemon'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/craig/Desktop/g15daemon-1.9.5.3'
make: *** [all] Error 2

so yeah... any ideas? I have the this version of libg15render v1.2. anyone know whats going on here?