make[3]: Entering directory `/var/tmp/portage/squid-2.6.1-r1/work/squid-2.6.STABLE1/helpers/external_a cl/session' if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I. -I../../../include -I../../../ include -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -march=pentium4 -fomit-frame-poin ter -D_REENTRANT -MT squid_session.o -MD -MP -MF ".deps/squid_session.Tpo" -c -o squid_session.o squid _session.c; \ then mv -f ".deps/squid_session.Tpo" ".deps/squid_session.Po"; else rm -f ".deps/squid_session .Tpo"; exit 1; fi squid_session.c:39:20: db_185.h: No such file or directory squid_session.c:46: error: syntax error before '*' token squid_session.c:46: warning: data definition has no type or storage class squid_session.c: In function `init_db': squid_session.c:50: error: `DB_BTREE' undeclared (first use in this function) squid_session.c:50: error: (Each undeclared identifier is reported only once squid_session.c:50: error: for each function it appears in.) squid_session.c:50: warning: assignment makes pointer from integer without a cast squid_session.c: In function `shutdown_db': squid_session.c:59: error: request for member `close' in something not a structure or union squid_session.c: In function `session_active': squid_session.c:66: error: `DBT' undeclared (first use in this function) squid_session.c:66: error: syntax error before "key" squid_session.c:67: error: `key' undeclared (first use in this function) squid_session.c:69: error: request for member `get' in something not a structure or union squid_session.c:69: error: `data' undeclared (first use in this function) squid_session.c:73: error: request for member `del' in something not a structure or union squid_session.c: In function `session_login': squid_session.c:85: error: `DBT' undeclared (first use in this function) squid_session.c:85: error: syntax error before "key" squid_session.c:87: error: `key' undeclared (first use in this function) squid_session.c:89: error: `data' undeclared (first use in this function) squid_session.c:91: error: request for member `put' in something not a structure or union squid_session.c: In function `session_logout': squid_session.c:96: error: `DBT' undeclared (first use in this function) squid_session.c:96: error: syntax error before "key" squid_session.c:97: error: `key' undeclared (first use in this function) squid_session.c:99: error: request for member `del' in something not a structure or unionmake[3]: *** [squid_session.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/squid-2.6.1-r1/work/squid-2.6.STABLE1/helpers/external_ac l/session' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/squid-2.6.1-r1/work/squid-2.6.STABLE1/helpers/external_ac l' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/squid-2.6.1-r1/work/squid-2.6.STABLE1/helpers' make: *** [all-recursive] Error 1 !!! ERROR: net-proxy/squid-2.6.1-r1 failed. Call stack: ebuild.sh, line 1545: Called dyn_compile ebuild.sh, line 940: Called src_compile squid-2.6.1-r1.ebuild, line 133: Called die The culprit is adding "session" to "ext_helpers" in the ebuild, which has not been in there in 2.5.*. I'll attach a patch to the ebuild. It compiles and runs with and without the USE flag I introduced, but I do not know whether the session helper stuff works. Portage 2.1.1_pre3-r1 (selinux/2005.1/x86/hardened, gcc-3.4.6/hardened, glibc-2.3.6-r4, 2.6.16-hardened-r11 i686) ================================================================= System uname: 2.6.16-hardened-r11 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz Gentoo Base System version 1.12.1 app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.4.3-r1 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: [Not Present] sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe -march=pentium4 -fomit-frame-pointer" 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/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -pipe -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="autoconfig collision-protect distlocks loadpolicy parallel-fetch sandbox selinux sfperms strict userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from /etc/portage/rsync_excludes" 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/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X a52 aac alsa bzip2 caps cjk crypt cups curl dts dvd dvdread ffmpeg flac ftp gif gtk hardened idn ipv6 jpeg kdeenablefinal mad mikmod mmap mmx mp3 ncurses nptl offensive ogg opengl pam pic png selinux sndfile sse sse2 ssl theora threads tiff truetype unicode vorbis win32codecs xinerama xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux linguas_en userland_GNU video_cards_nvidia" Unset: CTARGET, INSTALL_MASK, LC_ALL
Created attachment 92177 [details, diff] squid-2.6.1-r1.ebuild.patch for session helper
*Sigh*. I just saw a typo in this patch at an important place. I'll try to come up with a better one.
Created attachment 92186 [details, diff] squid-2.6.1-r1.ebuild.patch for session helper Patch that actually works (at least for me :-). db_185.h is not provided by db-1.85 and after some searching I found that debian now has a build dependency on db-4.3* for squid. So I put one in my patch and tested it, my squid is happy now.
I don't see a reason for creating a local USE flag. The session helper is small and sys-lib/db-4 usually gets installed on most gentoo machines anyway. {R}DEPEND variables have been fixed in cvs.