Bug 218469 - sys-libs/db-3.2.9-r11 fails w/ gcc-4.3.0 and should be purged from tree
Bug#: 218469 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: pauldv@gentoo.org Reported By: loki_val@gentoo.org
Component: GCC Porting
URL: 
Summary: sys-libs/db-3.2.9-r11 fails w/ gcc-4.3.0 and should be purged from tree
Keywords:  
Status Whiteboard: 
Opened: 2008-04-19 19:57 0000
Description:   Opened: 2008-04-19 19:57 0000
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:

------- Comment #1 From Peter Alfredsen 2008-04-19 19:59:58 0000 -------
It's quite a road we've taken together:
*db-3.2.9 (25 Jul 2002)
  25 Jul 2002; Spider <spider@gentoo.org> :
  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.

------- Comment #2 From Peter Alfredsen 2008-04-19 20:37:23 0000 -------
[22:30] <loki_val> !meta -v python
[22:30] <jeeves> loki_val: Package: dev-lang/python Herd: python Maintainer:
python
[22:30] <jeeves> loki_val: (python) carlo, dev-zero, hawking, lordvan, lucass,
pythonhead
[22:32] <hawking> loki_val: yes?
[22:32] <hawking> :P
[22:32] <loki_val> dev-lang/python-2.3.6-r4             !build? berkdb?
=sys-libs/db-3*
[22:32] <loki_val> Any reason for that that you know of?
[22:33] <loki_val> -r is >=
[22:34] <loki_val> sry, 2.3.6-r3 is >=db-3.1
[22:34] <loki_val> number got lost in the mail
[22:35] <hawking> hmm no, I don't care about those versions though, will punt
them when bug 217221 is resolved.
[22:35] <jeeves> hawking: https://bugs.gentoo.org/217221 nor, P2, All,
hanno@gentoo.org->python@gentoo.org, NEW, pending, dev-lang/python: Buffer
overflow in zlib extension (CVE-2008-1721)
[22:36] <loki_val> hawking: excellent.

------- Comment #3 From Pascal Lim 2008-06-16 03:16:58 0000 -------
I'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 >=db4.2?

------- Comment #4 From Grigor Lekarov 2008-07-01 20:28:51 0000 -------
Created an attachment (id=159147) [details]
fix db-3.2 compile with gcc-4.3.x

Here is some decision. I hope it'll be useful

------- Comment #5 From Steffen 'j0inty' Stollfuß 2008-07-21 17:20:57 0000 -------
the patch fixed the prolem for me.

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

best thanks

------- Comment #6 From Marco Schinkel 2008-08-08 06:41:23 0000 -------
(In reply to comment #4)
> Created an attachment (id=159147) [edit] [details]
> fix db-3.2 compile with gcc-4.3.x
> 
> Here is some decision. I hope it'll be useful
> 

your patch fixed the build on my amd64 system with gcc 4.3.1 

------- Comment #7 From Alexandre Rostovtsev 2008-08-16 18:48:22 0000 -------
I can confirm that Grigor Lekarov'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't compile with same same error as everyone else is
getting.

------- Comment #8 From Robin Johnson 2008-08-16 23:27:09 0000 -------
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).

------- Comment #9 From Michal Kurgan (RETIRED) 2008-08-17 19:09:39 0000 -------
*** Bug 235003 has been marked as a duplicate of this bug. ***

------- Comment #10 From Grigor Lekarov 2008-08-20 20:29:42 0000 -------
(In reply to comment #8)
> 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).
> 

Sorry about #elif (it's my bad habit), and thanks for fix. It'll be pleasure if
I can help in future for my favorite Linux.