Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 275722

Summary: net-proxy/squid-3.0.14-r2 fails to build when including /usr/include/linux/capability.h
Product: Gentoo Linux Reporter: Warren Chartier <icebalm>
Component: Current packagesAssignee: Gentoo Network Proxy Developers (OBSOLETE) <net-proxy+disabled>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Warren Chartier 2009-06-28 18:31:46 UTC
This seems to be the same as bug 264770?


	powerpc-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\" -I. -I../include -I. -I. -I../include -I../include -I../lib/libTrie/include   -I/usr/include/libxml2  -Wall -Wpointer-arith -Wwrite-strings -fhuge-objects -D_REENTRANT -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -MT unlinkd.o -MD -MP -MF $depbase.Tpo -c -o unlinkd.o unlinkd.cc &&\
	mv -f $depbase.Tpo $depbase.Po
cc1plus: warning: switch '-fhuge-objects' is no longer supported
/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
make[3]: *** [tools.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/net-proxy/squid-3.0.14-r2/work/squid-3.0.STABLE14/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-proxy/squid-3.0.14-r2/work/squid-3.0.STABLE14/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/net-proxy/squid-3.0.14-r2/work/squid-3.0.STABLE14/src'
make: *** [all-recursive] Error 1

Reproducible: Always

Steps to Reproduce:
1.Try to emerge net-proxy/squid-3.0.14-r2



Actual Results:  
Squid fails to build.

Expected Results:  
A compiled squid.
Comment 1 Alois Schmid 2009-07-01 11:52:21 UTC
The error occurs on every platform (I have verified it for AMD64 and x86) when libcap-2.16 is newly installed (after integration of 
libcap-2.16-drop-linux-workarounds.patch which was integrated in December 2008 into libcap-2.16.ebuild recording to the Changelog file).

The error is fixed in Squid 3.0.15 by the squid-3-capability.patch-file.
Perhaps the patch could be included in squid-3.0.14 or version 3.0.15 be unmasked???

Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-07-04 15:20:00 UTC
Strange... I cannot reproduce your problem simply because I don't have /usr/include/linux/compatibility.h installed on any of my Gentoo machines...

Could you please be so kind and provide the output of 

  qfile -Cqv /usr/include/linux/compatibility.h

to this bug? "/usr/bin/qfile" belongs to the app-portage/portage-utils package.
Comment 3 Warren Chartier 2009-07-05 16:35:43 UTC
It seems I misread the header file name in the error, it's /usr/include/linux/capability.h and not compatibility.h
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-07-13 13:20:02 UTC
Please post your "emerge --info".
Comment 5 Patrick Lauer gentoo-dev 2009-07-14 20:44:55 UTC
so 3.0.15 is current stable.
Reopen if you can still hit that error and paste emerge --info output.
Comment 6 Warren Chartier 2009-07-19 14:25:50 UTC
3.0.15 is still masked for ppc, even though it does build fine.

emerge --info:

Portage 2.1.6.13 (default/linux/powerpc/ppc32/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r5 ppc)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-ppc-7447A,_altivec_supported-with-glibc2.0
Timestamp of tree: Sun, 19 Jul 2009 13:45:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r13, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/ http://gentoo.arcticnetwork.ca/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="acl altivec apache2 berkdb bzip2 cli cracklib crypt ctype dovecot-sasl dri fortran gdbm gpm iconv isdnlog maildir midi mudflap mysql ncurses nptl nptlonly openmp pam pcre perl php ppc pppd python readline reflection samba session spl ssl sysfs tcpd threads unicode vhosts xorg zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage tdfx trident voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 7 Alin Năstac (RETIRED) gentoo-dev 2009-08-05 16:51:24 UTC

*** This bug has been marked as a duplicate of bug 274668 ***