Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150548 - net-proxy/squid-2.6.4-r1 : sandbox violation
Summary: net-proxy/squid-2.6.4-r1 : sandbox violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: John Mylchreest (RETIRED)
URL:
Whiteboard:
Keywords:
: 151677 (view as bug list)
Depends on:
Blocks: kernel-2.6.19
  Show dependency tree
 
Reported: 2006-10-09 01:55 UTC by António Godinho
Modified: 2006-12-07 10:56 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
error log from squid emerge with --debug (squid-error.txt,18.05 KB, text/plain)
2006-10-10 08:33 UTC, António Godinho
Details
emerge --info for the machine that had sandbox fail (cool) (info-cool.txt,3.17 KB, text/plain)
2006-11-10 23:52 UTC, Peter Fox
Details
emerge --info for the machine that built fine (emily) (info-emily.txt,2.93 KB, text/plain)
2006-11-10 23:53 UTC, Peter Fox
Details
linux-info.eclass patch (patch,559 bytes, patch)
2006-12-06 10:59 UTC, Daniel Drake (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description António Godinho 2006-10-09 01:55:45 UTC
i686-pc-linux-gnu-gcc  -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=pentium4 -O3 -pipe -D_REENTRANT  -m32  -o cachemgr.cgi  cachemgr__CGIEXT_-cachemgr.o -L../lib -lmiscutil -lrt -lpthread -lm -lbsd -lnsl 
make[2]: Leaving directory `/var/tmp/portage/squid-2.6.4-r1/work/squid-2.6.STABLE4/tools'
make[1]: Leaving directory `/var/tmp/portage/squid-2.6.4-r1/work/squid-2.6.STABLE4/tools'
make[1]: Entering directory `/var/tmp/portage/squid-2.6.4-r1/work/squid-2.6.STABLE4'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/var/tmp/portage/squid-2.6.4-r1/work/squid-2.6.STABLE4'
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-net-proxy_-_squid-2.6.4-r1-22647.log"

open_wr:   /usr/src/linux-2.6.18/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18/scripts/kconfig/conf
--------------------------------------------------------------------------------
gandalf ~ # emerge --info
Portage 2.1.2_pre2-r7 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r4, 2.6.17.11-grsec i686)
=================================================================
System uname: 2.6.17.11-grsec i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
Gentoo Base System version 1.12.5
Last Sync: Mon, 09 Oct 2006 08:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.3.5, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoclean autoconfig ccache distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.rnl.ist.utl.pt/gentoo/ http://darkstar.ist.utl.pt/gentoo/ ftp://mirrors1.netvisao.pt/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apache apache2 apm atm berkdb bitmap-fonts cli crypt dlloader dri eds elibc_glibc emboss encode foomaticdb fortran gd gif gpm gstreamer gtk2 imap input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kernel_linux libg++ libwww mad mmx motif mpeg mysql ncurses nls nptl ogg opengl pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl server session spell spl sqlite sse ssl tcpd threads truetype truetype-fonts type1-fonts udev userland_GNU video_cards_ati video_cards_fbdev video_cards_vesa xml xml2 xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

gandalf ~ # 


gandalf ~ # ls -la /usr/src/linux-2.6.18/scripts/kconfig/conf
ls: cannot access /usr/src/linux-2.6.18/scripts/kconfig/conf: No such file or directory
gandalf ~ #
Comment 1 yogeshbug 2006-10-09 01:59:46 UTC
Pls attache /var/log/sandbox/sandbox-net-proxy_-_squid-2.6.4-r1-22647.log with this bug.
Comment 2 António Godinho 2006-10-09 06:24:09 UTC
to@gandalf ~ $ cat /var/log/sandbox/sandbox-net-proxy_-_squid-2.6.4-r1-22647.log
open_wr:   /usr/src/linux-2.6.18/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18/scripts/kconfig/conf
to@gandalf ~ $ 
Comment 3 António Godinho 2006-10-09 08:39:18 UTC
Solved. I've made a few changes on my kernel and after I did and make clean.
Since I endup to have no time to copile the new image the file /usr/src/linux-2.6.18/scripts/kconfig/conf was deleted with the make clean.
A simples make bzImage && modules on my kernel solved the problem.
The main issue here is why this is needed at all? I don't undertstand it. Seams like a sandbox problem.
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2006-10-09 10:44:50 UTC
Apparently, get_version function from linux-info.eclass will screw environment vars when kernel config isn't found.
Somewhere, between src_compile and src_test, portage will try to make something in kernel directory.
Comment 5 Alin Năstac (RETIRED) gentoo-dev 2006-10-09 10:50:56 UTC
Zach, can you see what happens? I failed to figure it out by myself.

If you have a mrproper'ed /usr/src/linux and use get_version() from linux-info.eclass, you will get this sandbox violation.
Comment 6 Zac Medico gentoo-dev 2006-10-10 03:57:22 UTC
BTW, I'm pretty sure this bug has nothing to do with portage. :)

Anyway, I built it once with no trouble.  Then I ran `make mrproper`, and sure enough, here's what I got:

make[1]: Leaving directory `/mnt/storage/local/var/tmp/portage/squid-2.6.4-r1/work/squid-2.6.STABLE4'
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-net-proxy_-_squid-2.6.4-r1-21189.log"

open_wr:   /usr/src/linux/fixdep.gcda
open_wr:   /usr/src/linux/scripts/basic/.fixdep.d
open_wr:   /usr/src/linux/fixdep.gcda
open_wr:   /usr/src/linux/scripts/basic/.fixdep.d
open_wr:   /usr/src/linux/fixdep.gcda
open_wr:   /usr/src/linux/scripts/basic/.fixdep.d
open_wr:   /usr/src/linux/scripts/basic/.fixdep.d

and about 2 times more that many lines...

We might want to try this with --debug or strace or something to pinpoint the cause of the violation.  I'll try that...
Comment 7 António Godinho 2006-10-10 08:33:49 UTC
Created attachment 99292 [details]
error log from squid emerge with --debug
Comment 8 Zac Medico gentoo-dev 2006-10-10 13:47:21 UTC
I'm throwing this at the bug wranglers for now since I haven't had a chance to look at it.
Comment 9 Zac Medico gentoo-dev 2006-10-10 13:55:27 UTC
(In reply to comment #5)
> If you have a mrproper'ed /usr/src/linux and use get_version() from
> linux-info.eclass, you will get this sandbox violation.

Seems like a problem with linux-info.eclass then...
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-10-17 11:47:07 UTC
*** Bug 151677 has been marked as a duplicate of this bug. ***
Comment 11 Peter Fox 2006-11-10 23:47:23 UTC
I have two almost identical machines (same motherboard, processor, kernel version). One built net-proxy/squid-2.6.4-r2 fine, the other had a sandbox violation like described here, except the logfile contains:

cat /var/log/sandbox/sandbox-net-proxy_-_squid-2.6.4-r2-2194.log
open_wr:   /usr/src/linux-2.6.18-gentoo-r1/..config.tmp
open_wr:   /usr/src/linux-2.6.18-gentoo-r1/.tmpconfig
open_wr:   /usr/src/linux-2.6.18-gentoo-r1/..config.tmp
open_wr:   /usr/src/linux-2.6.18-gentoo-r1/.tmpconfig
open_wr:   /usr/src/linux-2.6.18-gentoo-r1/..config.tmp
open_wr:   /usr/src/linux-2.6.18-gentoo-r1/.tmpconfig
open_wr:   /usr/src/linux-2.6.18-gentoo-r1/..config.tmp
open_wr:   /usr/src/linux-2.6.18-gentoo-r1/.tmpconfig
open_wr:   /usr/src/linux-2.6.18-gentoo-r1/..config.tmp
open_wr:   /usr/src/linux-2.6.18-gentoo-r1/.tmpconfig

I've had a look at the differences between the two machines emerge --info, and it is basically that I'v missed some processor optimisations on the one that worked (CFLAGS: -msse2, USE sse2 3dnowext). I'm rebuilding the one that worked with the same CFLAGS and USE as the one that failed to see if it makes a difference.

It built fine again, so maybe the processor flags affect something else that was built before which is used during the build of squidm or maybe it is irrelevant.

I'll attach the full emerge --info for the two machines, as originally configured (cool is the one that failed, emily is the one that built ok).
Comment 12 Peter Fox 2006-11-10 23:52:40 UTC
Created attachment 101654 [details]
emerge --info for the machine that had sandbox fail (cool)
Comment 13 Peter Fox 2006-11-10 23:53:21 UTC
Created attachment 101655 [details]
emerge --info for the machine that built fine (emily)
Comment 14 Alin Năstac (RETIRED) gentoo-dev 2006-11-11 00:11:28 UTC
Build your kernel properly and you will not be affected by this bug (see my previous comments).
Comment 15 Peter Fox 2006-11-11 08:49:06 UTC
My previous comments are irrelevant. I've done another emerge --sync and emerge -puNDv world, and it compiled fine this time. I haven't changed/recompiled my kernel in between, so I doubt it's got much to do with the kernel build.
Comment 16 Lawrence Kong 2006-11-16 08:00:57 UTC
Since I have the same problem but with squid-2.6.4-r2
and I only have gentoo-sources-2.6.18-r2
(didn't compile and also running gentoo-sources-2.6.17-r8)
After skimming through the comments...

I tried goto compile the kernel and goto emerge -u squid
(I think I was using 2.6.3)

And successfully compiled and running... doesn't understand.

Comment 17 Thomas Tesone 2006-11-21 16:25:14 UTC
Tried emerging squid and this access violation appeared:

--------------------------- ACCESS VIOLATION SUMMARY
---------------------------
LOG FILE = "/var/log/sandbox/sandbox-net-proxy_-_squid-2.6.4-r2-7494.log"

unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
--------------------------------------------------------------------------------

Here's what is in the log:

nlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf


My emerge --info is:

Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4,
2.6.18-gentoo-r2 i686)
=================================================================
System uname: 2.6.18-gentoo-r2 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.6
Last Sync: Mon, 20 Nov 2006 15:30:02 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms
strict userfetch"
GENTOO_MIRRORS="http://gentoo.localhost.net.ar/
ftp://mirrors.localhost.net.ar/pub/mirrors "
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac alsa apache2 berkdb bitmap-fonts cli cracklib crypt cups
dlloader dri elibc_glibc fortran gdbm gif gpm hal iconv input_devices_keyboard
input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux libg++ mp3 mpeg ncurses
nls nptl nptlonly ogg opengl pam pcre perl php png postgresql ppds pppd python
qt3 qt4 readline real reflection session slang spl ssl tcpd tiff truetype-fonts
type1-fonts udev unicode userland_GNU video_cards_nvidia vorbis win32codecs
xine xorg xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS,
PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 18 Thomas Tesone 2006-11-21 16:28:18 UTC
(In reply to comment #17)
> Tried emerging squid and this access violation appeared:

Forgot to tell that as I wasn't working I emerged it with --debug to paste this here
Comment 19 Thomas Tesone 2006-11-23 18:47:09 UTC
Emerged gentoo-sources-2.6.18-r3 and recompiled it. Now I have been able to emerge squid without any trouble. No idea why it worked now... :S 

Comment 20 wbrana 2006-11-28 10:50:03 UTC
USE="-kernel_linux" emerge -Dva squid
helped me.
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2006-11-28 10:54:42 UTC
(In reply to comment #20)
> USE="-kernel_linux" emerge -Dva squid helped me.

Ouch, never do such stuff please... Don't mess w/ userland variables, they are NOT  meant to be set by users. 

Comment 22 Alin Năstac (RETIRED) gentoo-dev 2006-11-28 11:09:20 UTC
People, please stop posting meaningless comments!
At least read previous comments before you decide you have something to say. 

For the third time, COMPILE YOUR KERNEL (the one found in /usr/src/linux) before emerge squid and you'll be fine.
Comment 23 Thomas Tesone 2006-11-28 11:17:29 UTC
(In reply to comment #22)
> People, please stop posting meaningless comments!
> At least read previous comments before you decide you have something to say. 
> 
> For the third time, COMPILE YOUR KERNEL (the one found in /usr/src/linux)
> before emerge squid and you'll be fine.
> 

It is working fine for me now, but with gentoo-sources-2.6.18-r2 I didn't. And I HAD compiled my kernel. It worked ok after I got r3, compiled it and started using it
Comment 24 wbrana 2006-11-30 11:36:08 UTC
I compiled vanilla-sources-2.6.19.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-net-proxy_-_squid-2.6.5-17772.log"

open_wr:   /usr/src/linux-2.6.19/astest17857.out
open_wr:   /usr/src/linux-2.6.19/astest17861.out
open_wr:   /usr/src/linux-2.6.19/astest17868.out
open_wr:   /usr/src/linux-2.6.19/astest17872.out
open_wr:   /usr/src/linux-2.6.19/astest17929.out
open_wr:   /usr/src/linux-2.6.19/astest17933.out
open_wr:   /usr/src/linux-2.6.19/astest17940.out
open_wr:   /usr/src/linux-2.6.19/astest17944.out
open_wr:   /usr/src/linux-2.6.19/astest18001.out
open_wr:   /usr/src/linux-2.6.19/astest18005.out
open_wr:   /usr/src/linux-2.6.19/astest18012.out
open_wr:   /usr/src/linux-2.6.19/astest18016.out
open_wr:   /usr/src/linux-2.6.19/astest18073.out
open_wr:   /usr/src/linux-2.6.19/astest18077.out
open_wr:   /usr/src/linux-2.6.19/astest18084.out
open_wr:   /usr/src/linux-2.6.19/astest18088.out
open_wr:   /usr/src/linux-2.6.19/astest18145.out
open_wr:   /usr/src/linux-2.6.19/astest18149.out
open_wr:   /usr/src/linux-2.6.19/astest18156.out
open_wr:   /usr/src/linux-2.6.19/astest18160.out
--------------------------------------------------------------------------------
Comment 25 Charlie Shepherd (RETIRED) gentoo-dev 2006-11-30 11:40:49 UTC
(In reply to comment #24)
> I compiled vanilla-sources-2.6.19.

From bug 149307:

------- Comment #41 From Daniel Drake  2006-11-30 09:15 PST  [reply] -------

Fixed in gentoo-sources-2.6.19 (genpatches-2.6.19-1)


------- Comment #42 From Sven 2006-11-30 09:21 PST [reply] -------

So vanilla sources are not going to work?


------- Comment #43 From Daniel Drake 2006-11-30 10:01 PST [reply] -------

No, we don't patch that kernel, sorry.

However (assuming no problems or objections appear) the patch will be merged
upstream sometime soon.
Comment 26 Alin Năstac (RETIRED) gentoo-dev 2006-12-02 05:34:50 UTC

*** This bug has been marked as a duplicate of 149307 ***
Comment 27 wbrana 2006-12-02 10:07:46 UTC
same error with gentoo-sources-2.6.19-r1

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-net-proxy_-_squid-2.6.5-30115.log"

open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30199.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30203.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30210.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30214.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30271.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30275.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30282.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30286.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30343.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30347.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30354.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30358.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30415.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30419.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30426.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30430.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30487.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30491.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30498.out
open_wr:   /usr/src/linux-2.6.19-gentoo-r1/astest30502.out
--------------------------------------------------------------------------------
Comment 28 Daniel Drake (RETIRED) gentoo-dev 2006-12-02 11:34:14 UTC
OK, means that squid is buggy. See bug #156807 and bug #156838 for examples of other packages we've had to fix
Comment 29 Alin Năstac (RETIRED) gentoo-dev 2006-12-02 23:48:01 UTC
(In reply to comment #28)
> OK, means that squid is buggy. See bug #156807 and bug #156838 for examples of
> other packages we've had to fix

I disagree. Squid doesn't have anything in its makefiles related to the kernel directory. The only link with the kernel is checking kernel version through kernel_is() of the linux-info.eclass. If the kernel version is >=2.6 then it adds --enable-poll to the configure params.
Comment 30 Yan-Fa Li 2006-12-03 23:52:33 UTC
Having the same issue with squid 2.6.5 and kernel 2.6.19-r1.  Got it to build if I supply FEATURES="-sandbox"

emerge --info
Portage 2.1.2_rc2-r4 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.19-gentoo-r1 i686)
=================================================================
System uname: 2.6.19-gentoo-r1 i686 Intel(R) Pentium(R) III CPU family      1266MHz
Gentoo Base System version 1.12.6
Last Sync: Sun, 03 Dec 2006 19:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ "
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --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="x86 alsa apache2 bash-completion bash_completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cscope cups dlloader doc dri elibc_glibc fortran gdbm gif gpm iconv ieee1394 input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog ithreads java java5 jpeg kde kdeenablefinal kdehiddenvisibility kernel_linux ldap libg++ logrotate lvm2 mmx mysql ncurses nls nptl nptlonly opengl pam pcre perl png ppds pppd python qt3 qt4 readline reflection ruby samba session spl sqlite ssl syslog tcpd threads truetype truetype-fonts type1-fonts udev unicode userland_GNU xcomposite xinerama xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 31 Daniel Drake (RETIRED) gentoo-dev 2006-12-06 10:59:39 UTC
Created attachment 103472 [details, diff]
linux-info.eclass patch

Does this help?
Comment 32 Alin Năstac (RETIRED) gentoo-dev 2006-12-06 11:47:50 UTC
Yes, thank you! I have only a little remark about your patch: ${S} should be quoted.

John, care to fix this or you'd rather let me doing it? I will wait for your reply till the end of the week. If you don't reply, I will consider I have your approval to fix it myself.
Comment 33 Daniel Drake (RETIRED) gentoo-dev 2006-12-06 12:56:52 UTC
Please don't do anything - I'll take care of it.
Comment 34 Daniel Drake (RETIRED) gentoo-dev 2006-12-07 10:56:19 UTC
committed