From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Mon, 19 Aug 2013 13:04:26 -0400 To: 9fans@9fans.net Message-ID: In-Reply-To: <20130819171736.3d6621a9@Krypton> References: <20130819171736.3d6621a9@Krypton> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] libbsd: incompatible type signatures Topicbox-Message-UUID: 728f24c6-ead8-11e9-9d60-3106f5b1d025 On Mon Aug 19 11:21:18 EDT 2013, staal1978@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