<?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>218469</bug_id>
          
          <creation_ts>2008-04-19 19:57 0000</creation_ts>
          <short_desc>sys-libs/db-3.2.9-r11 fails w/ gcc-4.3.0 and should be purged from tree</short_desc>
          <delta_ts>2008-08-20 20:29:42 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>GCC Porting</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>148096</dependson>
    
    <dependson>217221</dependson>
    
    <dependson>218467</dependson>
    
    <dependson>218473</dependson>
    
    <dependson>218477</dependson>
    
    <dependson>218479</dependson>
    
    <dependson>218489</dependson>
    
    <dependson>219348</dependson>
          <blocked>198121</blocked>
          <votes>1</votes>
          <everconfirmed>1</everconfirmed>
          <reporter>loki_val@gentoo.org</reporter>
          <assigned_to>pauldv@gentoo.org</assigned_to>
          <cc>bugs@dev.gentooexperimental.org</cc>
    
    <cc>dairinin@gmail.com</cc>
    
    <cc>esigra@gmail.com</cc>
    
    <cc>rob@wallace.gen.nz</cc>
    
    <cc>tetromino@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>loki_val@gentoo.org</who>
            <bug_when>2008-04-19 19:57:10 0000</bug_when>
            <thetext>In file included from ../dist/../cxx/cxx_app.cpp:18:
../dist/../include/db_cxx.h:52:22: error: iostream.h: No such file or directory
In file included from ../dist/../cxx/cxx_app.cpp:18:
../dist/../include/db_cxx.h:397: error: ‘ostream’ has not been declared
../dist/../include/db_cxx.h:480: error: ISO C++ forbids declaration of ‘ostream’ with no type
../dist/../include/db_cxx.h:480: error: expected ‘;’ before ‘*’ token
../dist/../include/db_cxx.h:545: error: ‘ostream’ has not been declared
../dist/../include/db_cxx.h:549: error: ‘ostream’ has not been declared
../dist/../cxx/cxx_app.cpp:41: error: expected constructor, destructor, or type conversion before ‘*’ token
../dist/../cxx/cxx_app.cpp: In static member function ‘static void DbEnv::_destroy_check(const char*, int)’:
../dist/../cxx/cxx_app.cpp:51: error: ‘ostream’ was not declared in this scope
../dist/../cxx/cxx_app.cpp:51: error: ‘out’ was not declared in this scope
../dist/../cxx/cxx_app.cpp:53: error: ‘error_stream_’ was not declared in this scope
../dist/../cxx/cxx_app.cpp:55: error: ‘cerr’ was not declared in this scope
../dist/../cxx/cxx_app.cpp: In static member function ‘static void DbEnv::_stream_error_function(const char*, char*)’:
../dist/../cxx/cxx_app.cpp:284: error: ‘error_stream_’ was not declared in this scope
../dist/../cxx/cxx_app.cpp: At global scope:
../dist/../cxx/cxx_app.cpp:300: error: variable or field ‘set_error_stream’ declared void
../dist/../cxx/cxx_app.cpp:300: error: ‘ostream’ was not declared in this scope
../dist/../cxx/cxx_app.cpp:300: error: ‘stream’ was not declared in this scope
make: *** [cxx_app.o] Error 1


Reproducible: Always

Steps to Reproduce:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>loki_val@gentoo.org</who>
            <bug_when>2008-04-19 19:59:58 0000</bug_when>
            <thetext>It&apos;s quite a road we&apos;ve taken together:
*db-3.2.9 (25 Jul 2002)
  25 Jul 2002; Spider &lt;spider@gentoo.org&gt; :
  Add a fix to remove -fno-exceptions in CXXFLAGS as it doesnt build then

But no other distro maintains db-3.2 and neither should we. Unless someone has grown seriously attached to it, I will use this as a tracker bug to remove its reverse dependencies.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>loki_val@gentoo.org</who>
            <bug_when>2008-04-19 20:37:23 0000</bug_when>
            <thetext>[22:30] &lt;loki_val&gt; !meta -v python
[22:30] &lt;jeeves&gt; loki_val: Package: dev-lang/python Herd: python Maintainer: python
[22:30] &lt;jeeves&gt; loki_val: (python) carlo, dev-zero, hawking, lordvan, lucass, pythonhead
[22:32] &lt;hawking&gt; loki_val: yes?
[22:32] &lt;hawking&gt; :P
[22:32] &lt;loki_val&gt; dev-lang/python-2.3.6-r4             !build? berkdb? =sys-libs/db-3*
[22:32] &lt;loki_val&gt; Any reason for that that you know of?
[22:33] &lt;loki_val&gt; -r is &gt;=
[22:34] &lt;loki_val&gt; sry, 2.3.6-r3 is &gt;=db-3.1
[22:34] &lt;loki_val&gt; number got lost in the mail
[22:35] &lt;hawking&gt; hmm no, I don&apos;t care about those versions though, will punt them when bug 217221 is resolved.
[22:35] &lt;jeeves&gt; hawking: https://bugs.gentoo.org/217221 nor, P2, All, hanno@gentoo.org-&gt;python@gentoo.org, NEW, pending, dev-lang/python: Buffer overflow in zlib extension (CVE-2008-1721)
[22:36] &lt;loki_val&gt; hawking: excellent.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pascalim@gmail.com</who>
            <bug_when>2008-06-16 03:16:58 0000</bug_when>
            <thetext>I&apos;m having the same problem on gcc-4.3.1.  This is my only blocker so far.  Can I modify the python ebuild to depend on &gt;=db4.2?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>glekarov@gmail.com</who>
            <bug_when>2008-07-01 20:28:51 0000</bug_when>
            <thetext>Created an attachment (id=159147)
fix db-3.2 compile with gcc-4.3.x

Here is some decision. I hope it&apos;ll be useful</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>steffen@stollfuss.net</who>
            <bug_when>2008-07-21 17:20:57 0000</bug_when>
            <thetext>the patch fixed the prolem for me.

after I added them the lib compiled fine on my amd64 arch.

best thanks</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>schinkelm@web.de</who>
            <bug_when>2008-08-08 06:41:23 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; Created an attachment (id=159147) [edit]
&gt; fix db-3.2 compile with gcc-4.3.x
&gt; 
&gt; Here is some decision. I hope it&apos;ll be useful
&gt; 

your patch fixed the build on my amd64 system with gcc 4.3.1 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tetromino@gmail.com</who>
            <bug_when>2008-08-16 18:48:22 0000</bug_when>
            <thetext>I can confirm that Grigor Lekarov&apos;s patch makes db-3.2.9_p2 (added to the tree today) compile with gcc-4.3.1-r1 on my system.

Without the patch, it didn&apos;t compile with same same error as everyone else is getting.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2008-08-16 23:27:09 0000</bug_when>
            <thetext>Added to db-3.2.9_p2.

Your original patch had a bad #elif (missing argument), that I fixed up, along with a better #if check (safe on 4.2 too).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>moloh@gentoo.org</who>
            <bug_when>2008-08-17 19:09:39 0000</bug_when>
            <thetext>*** Bug 235003 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>glekarov@gmail.com</who>
            <bug_when>2008-08-20 20:29:42 0000</bug_when>
            <thetext>(In reply to comment #8)
&gt; Added to db-3.2.9_p2.
&gt; 
&gt; Your original patch had a bad #elif (missing argument), that I fixed up, along
&gt; with a better #if check (safe on 4.2 too).
&gt; 

Sorry about #elif (it&apos;s my bad habit), and thanks for fix. It&apos;ll be pleasure if I can help in future for my favorite Linux.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>159147</attachid>
            <date>2008-07-01 20:28 0000</date>
            <desc>fix db-3.2 compile with gcc-4.3.x</desc>
            <filename>fix_gcc43x_compile.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGRiLTMuMi45L2luY2x1ZGUvZGJfY3h4Lmgub3JpZwkyMDA4LTA3LTAxIDIzOjE1OjU1Ljg5
NDI4NzM2MCArMDMwMAorKysgZGItMy4yLjkvaW5jbHVkZS9kYl9jeHguaAkyMDA4LTA3LTAxIDIz
OjA4OjIwLjMzODI4NjgwMCArMDMwMApAQCAtNDksMTAgKzQ5LDE3IEBACiAvLyBGb3J3YXJkIGRl
Y2xhcmF0aW9ucwogLy8KIAotI2luY2x1ZGUgPGlvc3RyZWFtLmg+CiAjaW5jbHVkZSA8c3RkYXJn
Lmg+CiAjaW5jbHVkZSAiZGIuaCIKIAorI2lmIChfX0dOVUNfXyA+PSA0KSAmJiAoX19HTlVDX01J
Tk9SX18gPj0gMykKKyNpbmNsdWRlIDxpb3N0cmVhbT4KKwordXNpbmcgbmFtZXNwYWNlIHN0ZDsK
KyNlbGlmCisjaW5jbHVkZSA8aW9zdHJlYW0uaD4KKyNlbmRpZgorCiBjbGFzcyBEYjsgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gZm9yd2FyZAogY2xhc3MgRGJjOyAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGZvcndhcmQKIGNsYXNzIERi
RW52OyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBmb3J3YXJkCg==
</data>        

          </attachment>
    </bug>

</bugzilla>