<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>106970</bug_id>
          
          <creation_ts>2005-09-23 02:11 0000</creation_ts>
          <short_desc>gdbm-1.8.3-r1 (rev. 1.16) breaks ebuilds that need gdbm</short_desc>
          <delta_ts>2005-09-25 07:58:55 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>lzap@seznam.cz</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          <cc>chrb@gentoo.org</cc>
    
    <cc>hhaamu@surfeu.fi</cc>
    
    <cc>mikey@badpenguins.com</cc>
    
    <cc>net-mail@gentoo.org</cc>
    
    <cc>perl@gentoo.org</cc>
    
    <cc>php-bugs@gentoo.org</cc>
    
    <cc>tcltk@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>lzap@seznam.cz</who>
            <bug_when>2005-09-23 02:11:13 0000</bug_when>
            <thetext>GDBM_File.c:470: error: syntax error before &quot;db&quot;
GDBM_File.c:474: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:474: error: called object is not a function
GDBM_File.c: In function `XS_GDBM_File_EXISTS&apos;:
GDBM_File.c:492: error: syntax error before &quot;db&quot;
GDBM_File.c:499: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:499: error: called object is not a function
GDBM_File.c:505: error: `key&apos; undeclared (first use in this function)
GDBM_File.c:514:1: warning: &quot;gdbm_setopt&quot; redefined
GDBM_File.xs:57:1: warning: this is the location of the previous definition
GDBM_File.c: In function `XS_GDBM_File_setopt&apos;:
GDBM_File.c:522: error: syntax error before &quot;db&quot;
GDBM_File.c:531: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:531: error: called object is not a function
GDBM_File.c: In function `XS_GDBM_File_filter_fetch_key&apos;:
GDBM_File.c:549: error: syntax error before &quot;db&quot;
GDBM_File.c:555: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:555: error: called object is not a function
GDBM_File.c: In function `XS_GDBM_File_filter_store_key&apos;:
GDBM_File.c:573: error: syntax error before &quot;db&quot;
GDBM_File.c:579: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:579: error: called object is not a function
GDBM_File.c: In function `XS_GDBM_File_filter_fetch_value&apos;:
GDBM_File.c:597: error: syntax error before &quot;db&quot;
GDBM_File.c:603: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:603: error: called object is not a function
GDBM_File.c: In function `XS_GDBM_File_filter_store_value&apos;:
GDBM_File.c:621: error: syntax error before &quot;db&quot;
GDBM_File.c:627: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:627: error: called object is not a function
make[1]: *** [GDBM_File.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/perl-5.8.6-r6/work/perl-5.8.6/ext/GDBM_File&apos;
make: *** [lib/auto/GDBM_File/GDBM_File.so] Error 2

!!! ERROR: dev-lang/perl-5.8.6-r6 failed.
!!! Function src_compile, Line 262, Exitcode 2
!!! Unable to make
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
Nothing :-)

Expected Results:  
Portage upgrade...

zapletalovi ~ # emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1,
2.6.5-gentoo-r1 i686)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.3-r1 [2.3.3 (#2, Aug 22 2004, 00:52:41)]
dev-lang/python:     2.3.3-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.4.3-r4, 1.5.16
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=pentium3 -O3 -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/domains
/var/vpopmail/etc&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=pentium3 -O3 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache distlocks sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://gentoo.math.bme.hu
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://212.219.247.21/sites/www.ibiblio.org/gentoo&quot;
MAKEOPTS=&quot;-j1&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 apache2 apm bash-completion berkdb cdb clamd crypt cups curl cyrus
foomaticdb gd gdbm gif gzip imagemagick imap imlib innodb java jikes jpeg junit
jython libg++ libwww maildir mmx mysql ncurses nls oav pam perl png python
readline samba sasl sqlite sse ssl tcpd tiff xml2 zlib userland_GNU kernel_linux
elibc_glibc&quot;
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>birder@ozemail.com.au</who>
            <bug_when>2005-09-23 10:42:11 0000</bug_when>
            <thetext>I have the same error compiling perl-5.8.7-r1 on x86 and amd64; re-emerging gdbm
didn&apos;t help:

[snip]
        Making GDBM_File (dynamic)
Writing Makefile for GDBM_File
make[1]: Entering directory
`/var/tmp/portage/perl-5.8.7-r1/work/perl-5.8.7/ext/GDBM_File&apos;
make[1]: Leaving directory
`/var/tmp/portage/perl-5.8.7-r1/work/perl-5.8.7/ext/GDBM_File&apos;
make[1]: Entering directory
`/var/tmp/portage/perl-5.8.7-r1/work/perl-5.8.7/ext/GDBM_File&apos;
cp GDBM_File.pm ../../lib/GDBM_File.pm
../../miniperl &quot;-I../../lib&quot; &quot;-I../../lib&quot; ../../lib/ExtUtils/xsubpp
-noprototypes -typemap ../../lib/ExtUtils/typemap -typemap typemap  GDBM_File.xs
&gt; GDBM_File.xsc &amp;&amp; mv GDBM_File.xsc GDBM_File.c
i686-pc-linux-gnu-gcc -c   -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -march=athlon-xp -O3 -pipe -ftracer   -DVERSION=\&quot;1.07\&quot;
-DXS_VERSION=\&quot;1.07\&quot; -fPIC &quot;-I../..&quot;   GDBM_File.c
GDBM_File.xs:5:18: gdbm.h: No such file or directory
GDBM_File.xs:9: error: parse error before &quot;GDBM_FILE&quot;
GDBM_File.xs:9: warning: no semicolon at end of struct or union
GDBM_File.xs:15: error: parse error before &apos;}&apos; token
GDBM_File.xs:15: warning: data definition has no type or storage class
GDBM_File.xs:17: error: parse error before &apos;*&apos; token
GDBM_File.xs:17: warning: data definition has no type or storage class
GDBM_File.xs:18: error: parse error before &quot;datum_key&quot;
GDBM_File.xs:18: warning: data definition has no type or storage class
GDBM_File.xs:19: error: parse error before &quot;datum_value&quot;
GDBM_File.xs:19: warning: data definition has no type or storage class
GDBM_File.xs:20: error: parse error before &quot;datum_key_copy&quot;
GDBM_File.xs:20: warning: data definition has no type or storage class
GDBM_File.c: In function `XS_GDBM_File_TIEHASH&apos;:
GDBM_File.c:190: error: parse error before &quot;RETVAL&quot;
GDBM_File.xs:75: error: `GDBM_FILE&apos; undeclared (first use in this function)
GDBM_File.xs:75: error: (Each undeclared identifier is reported only once
GDBM_File.xs:75: error: for each function it appears in.)
GDBM_File.xs:75: error: parse error before &quot;dbp&quot;
GDBM_File.xs:77: error: `RETVAL&apos; undeclared (first use in this function)
GDBM_File.xs:78: error: `dbp&apos; undeclared (first use in this function)
GDBM_File.xs:79: error: parse error before &quot;Perl_safesysmalloc&quot;
GDBM_File.c: In function `XS_GDBM_File_close&apos;:
GDBM_File.c:224: error: parse error before &quot;db&quot;
GDBM_File.c:228: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:228: error: called object is not a function
GDBM_File.c: In function `XS_GDBM_File_DESTROY&apos;:
GDBM_File.c:247: error: parse error before &quot;db&quot;
GDBM_File.c:251: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:251: error: called object is not a function
GDBM_File.c: In function `XS_GDBM_File_FETCH&apos;:
GDBM_File.c:271: error: parse error before &quot;db&quot;
GDBM_File.c:277: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:277: error: called object is not a function
GDBM_File.c:283: error: `key&apos; undeclared (first use in this function)
GDBM_File.c:286: error: `RETVAL&apos; undeclared (first use in this function)
GDBM_File.c: In function `XS_GDBM_File_STORE&apos;:
GDBM_File.c:302: error: parse error before &quot;db&quot;
GDBM_File.c:311: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:311: error: called object is not a function
GDBM_File.c:317: error: `key&apos; undeclared (first use in this function)
GDBM_File.c:322: error: `value&apos; undeclared (first use in this function)
GDBM_File.c:331: error: `GDBM_REPLACE&apos; undeclared (first use in this function)
GDBM_File.c: In function `XS_GDBM_File_DELETE&apos;:
GDBM_File.c:358: error: parse error before &quot;db&quot;
GDBM_File.c:365: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:365: error: called object is not a function
GDBM_File.c:371: error: `key&apos; undeclared (first use in this function)
GDBM_File.c: In function `XS_GDBM_File_FIRSTKEY&apos;:
GDBM_File.c:388: error: parse error before &quot;db&quot;
GDBM_File.c:393: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:393: error: called object is not a function
GDBM_File.c:398: error: `RETVAL&apos; undeclared (first use in this function)
GDBM_File.c: In function `XS_GDBM_File_NEXTKEY&apos;:
GDBM_File.c:414: error: parse error before &quot;db&quot;
GDBM_File.c:420: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:420: error: called object is not a function
GDBM_File.c:426: error: `key&apos; undeclared (first use in this function)
GDBM_File.c:429: error: `RETVAL&apos; undeclared (first use in this function)
GDBM_File.c: In function `XS_GDBM_File_reorganize&apos;:
GDBM_File.c:445: error: parse error before &quot;db&quot;
GDBM_File.c:451: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:451: error: called object is not a function
GDBM_File.c:462:1: warning: &quot;gdbm_sync&quot; redefined
GDBM_File.xs:56:1: warning: this is the location of the previous definition
GDBM_File.c: In function `XS_GDBM_File_sync&apos;:
GDBM_File.c:470: error: parse error before &quot;db&quot;
GDBM_File.c:474: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:474: error: called object is not a function
GDBM_File.c: In function `XS_GDBM_File_EXISTS&apos;:
GDBM_File.c:492: error: parse error before &quot;db&quot;
GDBM_File.c:499: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:499: error: called object is not a function
GDBM_File.c:505: error: `key&apos; undeclared (first use in this function)
GDBM_File.c:514:1: warning: &quot;gdbm_setopt&quot; redefined
GDBM_File.xs:57:1: warning: this is the location of the previous definition
GDBM_File.c: In function `XS_GDBM_File_setopt&apos;:
GDBM_File.c:522: error: parse error before &quot;db&quot;
GDBM_File.c:531: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:531: error: called object is not a function
GDBM_File.c: In function `XS_GDBM_File_filter_fetch_key&apos;:
GDBM_File.c:549: error: parse error before &quot;db&quot;
GDBM_File.c:555: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:555: error: called object is not a function
GDBM_File.c: In function `XS_GDBM_File_filter_store_key&apos;:
GDBM_File.c:573: error: parse error before &quot;db&quot;
GDBM_File.c:579: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:579: error: called object is not a function
GDBM_File.c: In function `XS_GDBM_File_filter_fetch_value&apos;:
GDBM_File.c:597: error: parse error before &quot;db&quot;
GDBM_File.c:603: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:603: error: called object is not a function
GDBM_File.c: In function `XS_GDBM_File_filter_store_value&apos;:
GDBM_File.c:621: error: parse error before &quot;db&quot;
GDBM_File.c:627: error: `db&apos; undeclared (first use in this function)
GDBM_File.c:627: error: called object is not a function
make[1]: *** [GDBM_File.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/perl-5.8.7-r1/work/perl-5.8.7/ext/GDBM_File&apos;
make: *** [lib/auto/GDBM_File/GDBM_File.so] Error 2

!!! ERROR: dev-lang/perl-5.8.7-r1 failed.
!!! Function src_compile, Line 263, Exitcode 2
!!! Unable to make
!!! If you need support, post the topmost build error, NOT this status message.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>marienz@gentoo.org</who>
            <bug_when>2005-09-23 13:00:49 0000</bug_when>
            <thetext>Although I didn&apos;t run into this myself, someone else did. I noticed that while
his system didn&apos;t have /usr/include/gdbm.h, my system did have it. Also,
http://www.gentoo.org/cgi-bin/viewcvs.cgi/sys-libs/gdbm/gdbm-1.8.3-r1.ebuild?r1=1.15&amp;r2=1.16
reports a change to the gdbm ebuild that&apos;s roughly at the same time as this bug
showed up, and remerging gdbm using this new ebuild made my /usr/include/gdbm.h
disappear as well.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ct85711@gmail.com</who>
            <bug_when>2005-09-23 14:04:42 0000</bug_when>
            <thetext>Ok, I have been testing with the help from the gentoo-bugs irc channel, and I
have identified the most current patch (GDBM v1.16) is causing this issue. 
patch 1.15 on the same package comnpiles correctly on both gdbm and perl.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>arndt@wills-online.de</who>
            <bug_when>2005-09-24 02:33:12 0000</bug_when>
            <thetext>I got exactly the same problem. It also seems to make php fail to compile  
(an probably most of the other packages with gdbm useflag).  
 
To be precise, not the patch introduced with gdbm 1.16 did cause this, but  
the cleanup that was done to the ebuild at the same time. The basic problem  
is that gdbm.h is now installed to /usr/include/gdbm/gdbm.h instead of 
/usr/include/gdbm.h. 
 
I just reverted some of the cleanup in gdbm-1.8.3-r1.ebuild  
(see includefix.diff) and now everything works as expected. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>arndt@wills-online.de</who>
            <bug_when>2005-09-24 02:34:57 0000</bug_when>
            <thetext>Created an attachment (id=69150)
revert some changes to make gdbm.h install in /usr/include again
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>arndt@wills-online.de</who>
            <bug_when>2005-09-24 02:36:29 0000</bug_when>
            <thetext>(From update of attachment 69150)
revert some changes to make gdbm.h install in /usr/include again
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lzap@seznam.cz</who>
            <bug_when>2005-09-24 03:00:50 0000</bug_when>
            <thetext>gdbmobj.c:166: error: syntax error before &quot;dkey&quot;
gdbmobj.c:168: error: dereferencing pointer to incomplete type
gdbmobj.c:170: error: `dkey&apos; undeclared (first use in this function)
gdbmobj.c:173: error: `val&apos; undeclared (first use in this function)
gdbmobj.c:173: error: dereferencing pointer to incomplete type
make[3]: *** [gdbmobj.lo] Error 1
make[3]: Leaving directory
`/var/tmp/portage/courier-authlib-0.57-r1/work/courier-authlib-0.57/gdbmobj&apos;
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/var/tmp/portage/courier-authlib-0.57-r1/work/courier-authlib-0.57/gdbmobj&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/courier-authlib-0.57-r1/work/courier-authlib-0.57&apos;
make: *** [all] Error 2

!!! ERROR: net-libs/courier-authlib-0.57-r1 failed.
!!! Function src_compile, Line 101, Exitcode 2
!!! Compile problem
!!! If you need support, post the topmost build error, NOT this status message.

Courier-IMAP not installable too! this is CRITICAL ERROR!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lzap@seznam.cz</who>
            <bug_when>2005-09-24 03:08:25 0000</bug_when>
            <thetext>This needs to be reasigned... Its a major issue.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-09-24 03:17:39 0000</bug_when>
            <thetext>dev-tcltk/thread b0rked as well. I&apos;d really say anything w/ gdbm USE flag is
b0rked. *sigh*</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-09-24 03:18:48 0000</bug_when>
            <thetext>*** Bug 107038 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kloeri@gentoo.org</who>
            <bug_when>2005-09-24 04:08:42 0000</bug_when>
            <thetext>Bumped to -r2 with Arndt Wills changes as this hits a lot of packages / users.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-09-25 03:41:26 0000</bug_when>
            <thetext>*** Bug 107152 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-09-25 07:58:55 0000</bug_when>
            <thetext>*** Bug 107180 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>69150</attachid>
            <date>2005-09-24 02:34 0000</date>
            <desc>includefix.diff</desc>
            <filename>includefix.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGdkYm0tMS44LjMtcjEuZWJ1aWxkLm9sZAkyMDA1LTA5LTI0IDExOjAyOjA4LjAwMDAwMDAw
MCArMDIwMAorKysgZ2RibS0xLjguMy1yMS5lYnVpbGQJMjAwNS0wOS0yNCAxMTowNTo0Ni4wMDAw
MDAwMDAgKzAyMDAKQEAgLTI0LDEyICsyNCwxOCBAQAogCiBzcmNfY29tcGlsZSgpIHsKIAl1c2Ug
YmVya2RiIHx8IGV4cG9ydCBhY19jdl9saWJfZGJtX21haW49bm8gYWNfY3ZfbGliX25kYm1fbWFp
bj1ubwotCWVjb25mIC0taW5jbHVkZWRpcj0vdXNyL2luY2x1ZGUvZ2RibSB8fCBkaWUKKwllY29u
ZiB8fCBkaWUKIAllbWFrZSB8fCBkaWUKIH0KIAogc3JjX2luc3RhbGwoKSB7Ci0JbWFrZSBJTlNU
QUxMX1JPT1Q9IiR7RH0iIGluc3RhbGwgaW5zdGFsbC1jb21wYXQgfHwgZGllCisJbWFrZSBJTlNU
QUxMX1JPT1Q9IiR7RH0iIGluc3RhbGwgfHwgZGllCisKKwltYWtlIFwKKwkJaW5jbHVkZWRpcj0v
dXNyL2luY2x1ZGUvZ2RibSBcCisJCUlOU1RBTExfUk9PVD0iJHtEfSIgXAorCQlpbnN0YWxsLWNv
bXBhdCB8fCBkaWUKKwogCWRvZG9jIENoYW5nZUxvZyBORVdTIFJFQURNRQogfQogCg==
</data>        

          </attachment>
    </bug>

</bugzilla>