Summary: | net-proxy/squid-3.0.13,14 fails to compile, le32 does not name a type | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Patryk Rzadzinski <patryk> |
Component: | [OLD] Server | Assignee: | Gentoo Network Proxy Developers (OBSOLETE) <net-proxy+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bas, hppa, krzysztof.kozlowski, nicolasbock, scwang, spam, toto, web |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 269096 | ||
Attachments: |
Squid 3.0 patch for linux sys-kernel/linux-headers 2.6.27-r2
Squid 3.0.15 ebuild patch for linux sys-kernel/linux-headers 2.6.27-r2 |
Description
Patryk Rzadzinski
2009-05-19 16:30:16 UTC
> In file included from /usr/include/sys/capability.h:25,
> from tools.cc:50:
> /usr/include/linux/capability.h:73: error: '__le32' does not name a type
> /usr/include/linux/capability.h:75: error: '__le32' does not name a type
> /usr/include/linux/capability.h:76: error: '__le32' does not name a type
> cc1plus: warning: switch '-fhuge-objects' is no longer supported
> make[3]: *** [tools.o] Error 1
I encountered the same problem. After checking files tools.cc, /usr/include/linux/capability.h, /usr/include/linux/types.h, I find the problem is the result of an 'ugly glue' in tools.cc file. That is in file tools.cc as following:
/* Ugly glue to get around linux header madness colliding with glibc */
#define _LINUX_TYPES_H
#define _LINUX_FS_H
typedef uint32_t __u32;
#include <sys/capability.h>
My solution is to comment out this "Ugly glue" as following:
//#define _LINUX_TYPES_H
#define _LINUX_FS_H
//typedef uint32_t __u32;
Then you can compile it! Hope it help you.
Created attachment 192017 [details, diff]
Squid 3.0 patch for linux sys-kernel/linux-headers 2.6.27-r2
After upgrading sys-kernel/linux-headers to 2.6.27-r2 - the same problem (I have tried squid 3.0.13, 3.0.14, 3.0.15). Scwang's patch works well for me (Squid 3.0.15, linux-headers 2.6.27-r2, x86, GCC 4.3.2-r3, Glibc 2.8_p20080602-r1).
Created attachment 192018 [details, diff]
Squid 3.0.15 ebuild patch for linux sys-kernel/linux-headers 2.6.27-r2
Squid 3.0.15 ebuild patch
Confirmed. *** Bug 271311 has been marked as a duplicate of this bug. *** Confirm this bug for squid 3.0.15 *** Bug 273713 has been marked as a duplicate of this bug. *** Fixed in versions 3.0.15, 3.0.16 and 3.1.0.7_beta. Thanks! |