On 2009-11-26 at 22:23:23 [+0100], Alexandre Deckner <alex@xxxxxxxxxxxx> wrote: > ingo_weinhold@xxxxxx wrote: > > Log: > > Replaced hardcoded printf()/scanf() format modifiers by the B_{PRI,SCN}* > > macros. This fixes the broken keymaps when building on a 64 bit host. > > > Worked for me on a 64 bit Ubuntu :) Didn't try long, i just noticed > opengl demos not working. A problem I've found is that Mesa's gen_matypes tool is not suitable for cross-compilation. It computes offsets into structs on the build platform, but the structs don't use fixed-size types for the members. So on a 64 bit platform the header file the tool generates contains offsets that can't work on a 32 bit Haiku. The build system already has a mechanism to generate headers with struct offset definitions. It should be possible to use it here, too. CU, Ingo