Package: gdb Version: 6.4.90.dfsg-1 Severity: grave gdb FTBFS with:
/tmp/p/gdb-6.4.90.dfsg/bfd/trad-core.c:116: error: 'PAGE_SIZE' undeclared (first use in this function) /tmp/p/gdb-6.4.90.dfsg/bfd/trad-core.c:116: error: (Each undeclared identifier is reported only once /tmp/p/gdb-6.4.90.dfsg/bfd/trad-core.c:116: error: for each function it appears in.) make[5]: *** [trad-core.lo] Error 1 gdb contains bfd, and bfd uses NBPG defined in <sys/user.h>. However, that is just a redefinition of PAGE_SIZE which is no longer defined to user space becasue of #ifdef __KERNEL__, See #393023. Using PAGE_SIZE directly from a user space application is broken because systems now can have variable PAGE_SIZE. The problem is that the clobbered PAGE_SIZE but didn't audit for its dependencies. This will occur on several architectures including Alpha and ia64 when compiled against the new linux-kernel-headers package. I was compiling with version 2.6.18-3. Even gdb-5 upstream has this issue. Troy
pgpSW1rg0I49A.pgp
Description: PGP signature