Summary: | net-dialup/fbgetty-0.1.698 doesn't compile | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sergey 'L29Ah' Alirzaev <zl29ah> |
Component: | Current packages | Assignee: | Gentoo Dialup Developers <net-dialup> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 2007.0 | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 117482 |
Description
Sergey 'L29Ah' Alirzaev
2007-10-25 15:10:01 UTC
From what I see, gcc-4.1 (and 4.3) don't consider offsetof as a constant. Should I redefine offsetof as follows? #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) Toolchain/gcc-porting teams, please advise. offsetof is never a constant ... it is commonly a macro that expands to __builtin_offsetof(), but that requires you actually include the proper header file add this to options.c: #include <stddef.h> Fixed in cvs without revision bump. |