On Mon Aug 19 11:21:18 EDT 2013, staal1...@gmail.com wrote: > Dear all, > > I just hit the following compilation error and I wonder if this is some > sort of bug in the APE libraries and how to trace down what is really > wrong: > > ??none??: incompatible type signatures > 50220469(/386/lib/ape/libdraw.a(screen)) and > 9bbe58(/386/lib/ape/libbsd(bind)) for bind > > htonl: incompatible type signatures > 617952a3(/386/lib/ape/libbsd.a(bind)) and ac7c45d0 > (/386/lib/ape/libbsd.a(ntohs)) for ntohs
this is a bug in the ape libraries. the ape version of devdraw should be including /sys/src/ape/lib/9/libc.h which should #define bind _BIND it looks like 9atom doesn't do this properly. i'll submit a 9atom patch, but simply adding it to /sys/src/ape/lib/9/libc.h doesn't work, so give me a bit. it's a rats' nest of defines... the sloppy way to get this done would be to add -Dbind=_BIND to draw's mkfile. - erik