Error compiling on gentoo, type.h

hmm still no luck, what I did is following :

added types.h to the end of Sources.pp

asm/types.h rfftw.h libtar.h malloc.h ucontext.h

added dummy blank file types.h

touch dtool/src/parser-inc/types.h

as far the editing makepanda, I didn’t understand if I need to copy
original types.p to panda includes or what… And anyway I guess
that wouldn’t be necessary for panda to compile.
Unfortunately same error persist

 *** Error in /usr/include/asm/types.h near line 13, column 25:
                              syntax error, unexpected KW_CHAR, expecting '{' or ';' or ':' or '='
Error parsing file: 'asyncTaskManager.h'

joeldg: what version of kernel,gcc python do you have ?

[Edit]

I managed to compile it with dirty hack … mv /include/asm/types.h /include/asm/types.h.orig
touch /include/asm/types.h
compile … move back … compile … again mv and touch and manualy install
now I’m having it in /opt/panda3d and it’s working
but It would be nice to have it within ebuild