On Thu, Aug 10, 2017 at 9:45 PM, Karel Gardas <gard...@gmail.com> wrote: > I updated my current to today snapshot and still with original full > version of elf.h patch libelf builds fine -- see below. By quick > comparison of configure outputs in Christian's and mine build it looks > like he gets: > > checking if cc can compile elf.h... yes > > while I get: > > checking if cc can compile elf.h... no > > which is probably the reason (or one of) behind the failure for you > and not failure for me...
config.log is clear about that: configure:1231: checking if cc can compile elf.h configure:1248: cc -c -O2 -pipe conftest.c 1>&5 In file included from configure:1239: In file included from /usr/include/elf.h:31: /usr/include/sys/exec_elf.h:53:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'? typedef __uint32_t Elf32_Addr; /* Unsigned program address */ ^ note: '__uint128_t' declared here /usr/include/sys/exec_elf.h:54:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'? typedef __uint32_t Elf32_Off; /* Unsigned file offset */ ^ note: '__uint128_t' declared here /usr/include/sys/exec_elf.h:55:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'? typedef __uint16_t Elf32_Half; /* Unsigned medium integer */ ^ [...] probably the culprit here is my removal of <sys/types.h> include from sys/exec_elf.h which is presented in full patch version while missing from current OpenBSD.