Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 3829

Summary: ddd will not build
Product: Gentoo Linux Reporter: Antonio D'souza <gentoo>
Component: New packagesAssignee: Matthew Kennedy (RETIRED) <mkennedy>
Status: VERIFIED FIXED    
Severity: major    
Priority: High    
Version: 1.1a   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Antonio D'souza 2002-06-17 19:11:05 UTC
Ths is the error message I get:

/bin/sh ./config-info ./USERINFO USERINFO > configinfo.C~ && \
mv configinfo.C~ configinfo.C
c++ -DHAVE_CONFIG_H -I. -I. -I. -I./.. -isystem /usr/X11R6/include    -DNDEBUG
-O3  -W -Wall -march=i686 -pipe  -trigraphs  -c ddd.C
In file included from /usr/include/g++-v31/backward/iostream.h:31,
                 from strclass.h:412,
                 from ddd.h:36,
                 from ddd.C:138:
/usr/include/g++-v31/backward/backward_warning.h:32:2: warning: #warning This
file includes at least one deprecated or antiquated header. Please consider
using one of the 32 headers found in section 17.4.1.2 of the C++ standard.
Examples include substituting the <X> header for the <X.h> header for C++
includes, or <sstream> instead of the deprecated header <strstream.h>. To
disable this warning use -Wno-deprecated.
In file included from ddd.h:36,
                 from ddd.C:138:
strclass.h: In member function `string& string::operator=(std::ostrstream&)':
strclass.h:1059: warning: unused variable `const int frozen'
c++ -DHAVE_CONFIG_H -I. -I. -I. -I./.. -isystem /usr/X11R6/include    -DNDEBUG
-O3  -W -Wall -march=i686 -pipe  -trigraphs  -c strclass.C
In file included from /usr/include/g++-v31/backward/iostream.h:31,
                 from strclass.h:412,
                 from strclass.C:41:
/usr/include/g++-v31/backward/backward_warning.h:32:2: warning: #warning This
file includes at least one deprecated or antiquated header. Please consider
using one of the 32 headers found in section 17.4.1.2 of the C++ standard.
Examples include substituting the <X> header for the <X.h> header for C++
includes, or <sstream> instead of the deprecated header <strstream.h>. To
disable this warning use -Wno-deprecated.
In file included from strclass.C:41:
strclass.h: In member function `string& string::operator=(std::ostrstream&)':
strclass.h:1059: warning: unused variable `const int frozen'
strclass.C: In function `std::istream& operator>>(std::istream&, string&)':
strclass.C:1443: invalid conversion from `int' to `std::_Ios_Iostate'
strclass.C:1443:   initializing argument 1 of `void std::basic_ios<_CharT,
_Traits>::clear(std::_Ios_Iostate) [with _CharT = char, _Traits =
std::char_traits<char>]'
make[1]: *** [strclass.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/ddd-3.3.1/work/ddd-3.3.1/ddd'
make: *** [all-recursive] Error 1

!!! ERROR: the emake command did not complete successfully.
!!! ("emake")
!!! Since this is a critical task, ebuild will be stopped.
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-06-17 19:28:38 UTC
what version of gcc?
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-06-17 20:01:23 UTC
2.95.3 apparently, according to Antonio's e-mail.

Note to Antonia, click on this link:
http://bugs.gentoo.org/show_bug.cgi?id=3829 to bring you here -- look up at the
top, where it says "Additional Comments", post a reply in the text area
underneath that, and then hit the "commit" button
Comment 3 Antonio D'souza 2002-06-17 22:49:03 UTC
How did you get 2.95.3???
I am using 3.1
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2002-06-18 10:05:43 UTC
Sorry about that -- I commented the wrong bug.  Gcc-3.1 issue
Comment 5 Richard Torkar 2002-07-01 13:09:29 UTC
It can't compile for me either since yesterday (2002-06-30) (ddd-3.3.1-r1).
BUT I get an error I never seen before. This happens during the last stages when
portage tries to install files:

>>> Install ddd-3.3.1-r1 into /var/tmp/portage/ddd-3.3.1-r1/image/ category dev-util
Making install in readline
make[1]: Entering directory `/var/tmp/portage/ddd-3.3.1-r1/work/ddd-3.3.1/readline'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/var/tmp/portage/ddd-3.3.1-r1/work/ddd-3.3.1/readline'
Making install in libiberty
make[1]: Entering directory `/var/tmp/portage/ddd-3.3.1-r1/work/ddd-3.3.1/libiberty'
make[2]: Entering directory
`/var/tmp/portage/ddd-3.3.1-r1/work/ddd-3.3.1/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/var/tmp/portage/ddd-3.3.1-r1/work/ddd-3.3.1/libiberty/testsuite'
/bin/install -c -m 644 libiberty.a /usr/lib/libiberty.an
ACCESS DENIED  open_wr:   /usr/lib/libiberty.an
/bin/install: cannot create regular file `/usr/lib/libiberty.an': Permission denied
make[1]: *** [install_to_libdir] Error 1
make[1]: Leaving directory `/var/tmp/portage/ddd-3.3.1-r1/work/ddd-3.3.1/libiberty'
make: *** [install-recursive] Error 1

!!! ERROR: the make command did not complete successfully.
!!! ("make DESTDIR=/var/tmp/portage/ddd-3.3.1-r1/image/ install")
!!! Since this is a critical task, ebuild will be stopped.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-ddd-3.3.1-r1-4515.log"

open_wr:   /usr/lib/libiberty.an
--------------------------------------------------------------------------------
!!! emerge aborting on  /usr/portage/dev-util/ddd/ddd-3.3.1-r1.ebuild .
Comment 6 Jorge Schramm 2002-07-05 04:27:23 UTC
I'm having the same problem with gcc (GCC) 3.1 
 
strclass.C: In function `std::istream& operator>>(std::istream&, string&)': 
strclass.C:1443: invalid conversion from `int' to `std::_Ios_Iostate' 
strclass.C:1443:   initializing argument 1 of `void std::basic_ios<_CharT, 
_Traits>::clear(std::_Ios_Iostate) [with _CharT = char, _Traits = 
std::char_traits<char>]' 
make[1]: *** [strclass.o] Error 1 
make[1]: Leaving directory `/var/tmp/portage/ddd-3.3.1-r1/work/ddd-3.3.1/ddd' 
make: *** [all-recursive] Error 1 
 
!!! ERROR: the emake command did not complete successfully. 
!!! ("emake") 
!!! Since this is a critical task, ebuild will be stopped. 
 
!!! emerge aborting on  /usr/portage/dev-util/ddd/ddd-3.3.1-r1.ebuild . 
 
Comment 7 Michal Sylwester 2002-07-16 01:35:29 UTC
It's just a problem with configure script not working correctly with gcc3.1. Add
-Wno-deprecated to CXXFLAS and it will compile (you have to rerun configure
first). However there is similar bug a little later, again caused by configure.
Patch configure with:
*** configure   2002-07-15 16:37:33.000000000 +0200                            
                                                                                    
--- configure.org       2002-07-15 16:36:41.000000000 +0200                    
                                                                                    
***************                                                                
                                                                                    
*** 6166,6171 ****                                                             
                                                                                    
--- 6166,6172 ----                                                             
                                                                                    
  #line 6167 "configure"                                                       
                                                                                    
  #include "confdefs.h"                                                        
                                                                                    
  #include <iostream.h>                                                        
                                                                                    
+ #include <fstream.h>                                                         
                                                                                    
  int main() {                                                                 
                                                                                    
  streampos scan_start;                                                        
                                                                                    
  ; return 0; }

Now it should compile (it worked for me). However ddd crashed for me unless I
compiled it with gcc 3.1.1. 
Comment 8 Matthew Kennedy (RETIRED) gentoo-dev 2002-07-29 08:16:15 UTC
resolved in -r2

thanks for the bug report and solution!

Matt