User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6 Build Identifier: squidGuard-1.2.0-r1 doesn't compile with sys-libs/db-4.3.29-r2 This is not a new BUG, it's the same Bugzilla Bug 34154 It seams that the patches provided for Bug 34154 only solved the problem for db-4.1.xx but not for db-4.3 Reproducible: Always Steps to Reproduce: emerge squidguard Actual Results: The program does not compile Expected Results: Compile correctly >>> Emerging (1 of 1) net-proxy/squidguard-1.2.0-r1 to / * squidGuard-1.2.0.tar.gz MD5 ;-) ... [ ok ] * squidGuard-1.2.0.tar.gz size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking squidGuard-1.2.0.tar.gz ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking squidGuard-1.2.0.tar.gz to /var/tmp/portage/squidguard-1.2.0-r1/work * Applying squidguard-1.2.0-db4.patch ... [ ok ] * Applying squidguard-1.2.0-db41.patch ... [ ok ] * Applying squidguard-1.2.0-db42.patch ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/squidguard-1.2.0-r1/work/squidGuard-1.2.0 ... ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-sg-config=/etc/squidGuard/squidGuard.conf --with-sg-logdir=/var/log/squidGuard --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking whether make sets $(MAKE)... yes checking for a BSD-compatible install... /bin/install -c checking for bison... bison -y checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for lynx... false checking for perl... /usr/bin/perl checking for db_version in -ldb... yes checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking db.h usability... yes checking db.h presence... yes checking for db.h... yes checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for regcomp... yes checking for regerror... yes checking for regexec... yes checking for strdup... yes checking for strerror... yes checking for vsprintf... yes checking for sigaction... yes checking for signal... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/sg.h config.status: creating doc/Makefile config.status: creating test/Makefile config.status: creating test/test1.conf config.status: creating test/test2.conf config.status: creating samples/Makefile config.status: creating samples/sample.conf config.status: creating samples/squidGuard.cgi config.status: creating samples/squidGuard-simple.cgi config.status: creating contrib/Makefile config.status: creating contrib/squidGuardRobot/squidGuardRobot config.status: creating contrib/sgclean/sgclean config.status: creating contrib/hostbyname/hostbyname config.status: creating src/config.h making all in squidGuard-1.2.0 make[1]: Entering directory `/var/tmp/portage/squidguard-1.2.0-r1/work/squidGuard-1.2.0/src' x86_64-pc-linux-gnu-gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -march=k8 -O3 -fomit-frame-pointer -pipe -I/usr/local/BerkeleyDB/include -c main.c making all in src x86_64-pc-linux-gnu-gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -march=k8 -O3 -fomit-frame-pointer -pipe -I/usr/local/BerkeleyDB/include -c sgLog.c x86_64-pc-linux-gnu-gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -march=k8 -O3 -fomit-frame-pointer -pipe -I/usr/local/BerkeleyDB/include -c sgDb.c sgDb.c: In function 'sgDbInit': sgDb.c:104: warning: passing argument 2 of 'Db->dbp->open' from incompatible pointer type sgDb.c:104: warning: passing argument 4 of 'Db->dbp->open' makes pointer from integer without a cast sgDb.c:104: error: too few arguments to function 'Db->dbp->open' sgDb.c:114: warning: passing argument 2 of 'Db->dbp->open' from incompatible pointer type sgDb.c:114: warning: passing argument 4 of 'Db->dbp->open' makes pointer from integer without a cast sgDb.c:114: error: too few arguments to function 'Db->dbp->open' x86_64-pc-linux-gnu-gcc -I.. -I. -I. -I/usr/local/BerkeleyDB/include -DHAVE_CONFIG_H -march=k8 -O3 -fomit-frame-pointer -pipe -I/usr/local/BerkeleyDB/include -c sgDiv.c make[1]: *** [sgDb.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/squidguard-1.2.0-r1/work/squidGuard-1.2.0/src' make: *** [all] Error 1 !!! ERROR: net-proxy/squidguard-1.2.0-r1 failed. Call stack: ebuild.sh, line 1543: Called dyn_compile ebuild.sh, line 936: Called src_compile squidguard-1.2.0-r1.ebuild, line 45: Called die !!! compile problem !!! If you need support, post the topmost build error, and the call stack if relevant.
- not a blocker - not a bugzilla product bug at all
Portage 2.1.1_rc1-r3 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r5 x86_64) ================================================================= System uname: 2.6.17-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.4 Last Sync: Tue, 05 Sep 2006 01:54:01 +0000 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r3 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-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O3 -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo" CXXFLAGS="-march=k8 -O3 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://darkstar.ist.utl.pt/gentoo/" LINGUAS="" 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="amd64 X aalib alsa apache2 avi berkdb bitmap-fonts cli crypt cups directfb dlloader dri eds elibc_glibc emboss encode fbcon foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux ldap libcaca logrotate lzw lzw-tiff mp3 mpeg mysql ncurses nls nptl nptlonly odbc opengl openntpd pam parse-clocks pcre pdflib perl png postgres pppd python qt3 qt4 quicktime readline reflection samba sdl session spell spl sse3 ssl tcpd threads tiff truetype-fonts type1-fonts usb userland_GNU v4l v4l2 video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i810 video_cards_mga video_cards_neomagic video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo xml xorg xpm xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
fixed without revision bump by replacing the old db4* patches with a better one. This patch should work with any future db versions... unless there will be another interface change which will require a new set of #if-#else directives.