Monday, March 5, 2007

Bug #1940

bitbake failed compiling libX11 with the following error, with makekeys causing floating point exception. Somebody just posted a fix in the OE Bugtracker.

So I'll try to continue...
To fix the bug I edit: /stuff/tmp/work/armv5te-linux/diet-x11-X11R7.1-1.0.1-r4/libX11-X11R7.1-1.0.1/src/util/makekeys.c
and change

KeySym val;
} info[KTNUM];

#define MIN_REHASH 10
#define MATCHES 10

char tab[KTNUM];
to

KeySym val;
} info[KTNUM];

#define MIN_REHASH 15
#define MATCHES 10

char tab[KTNUM];
I created a /stuff/setVars to setup the enviroment, with the two export command in it:
export PATH=/stuff/bitbake/bin:$PATH
export BBPATH=/stuff/build:/stuff/org.openembedded.dev

Now bitbake:
# cd /stuff/
# . setVars
# bitbake freeciv
This fixed the problem.

No comments:

Post a Comment