Processed: Re: Bug#103674: g++-3.0: #include is broken when using -I/usr/include

2001-07-05 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

> reassign 103674 libgtkmm-dev
Bug#103674: g++-3.0: #include  is broken when using -I/usr/include
Bug reassigned from package `g++-3.0' to `libgtkmm-dev'.

> thanks
Stopping processing here.

Please contact me if you need assistance.

Darren Benham
(administrator, Debian Bugs database)




Bug#103674: g++-3.0: #include is broken when using -I/usr/include

2001-07-05 Thread Daniel Jacobowitz
reassign 103674 libgtkmm-dev
thanks

On Thu, Jul 05, 2001 at 05:56:10PM -0700, Michael Babcock wrote:
> Package: g++-3.0
> Version: 1:3.0-4
> Severity: normal
> 
> With g++ 3.0 if you have "-I/usr/include" on the command line,
> "#include " does not work properly.
> Since `gtkmm-config --cflags` includes this automatically it is a problem.

This is a bug in gtkmm-config.  If the path desired is in the standard
search path, it may not be respecified in a -I option.  It will be a
more explicit warning in GCC 3.0.1.


-- 
Daniel Jacobowitz   Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer




Bug#103674: g++-3.0: #include is broken when using -I/usr/include

2001-07-05 Thread Michael Babcock
Package: g++-3.0
Version: 1:3.0-4
Severity: normal

With g++ 3.0 if you have "-I/usr/include" on the command line,
"#include " does not work properly.
Since `gtkmm-config --cflags` includes this automatically it is a problem.

[EMAIL PROTECTED]:~$ cat teststring.cc
#include 

int main () {
return 0;
}
[EMAIL PROTECTED]:~$ gcc-3.0 -c teststring.cc -o teststring
[EMAIL PROTECTED]:~$ gcc-3.0 -I/usr/include -c teststring.cc -o teststring
In file included from /usr/include/g++-v3/bits/char_traits.h:39,
 from /usr/include/g++-v3/bits/std_string.h:41,
 from /usr/include/g++-v3/string:31,
 from teststring.cc:1:
/usr/include/g++-v3/bits/std_cstring.h:40:25: string.h: No such file or 
directory
In file included from /usr/include/g++-v3/bits/char_traits.h:39,
 from /usr/include/g++-v3/bits/std_string.h:41,
 from /usr/include/g++-v3/string:31,
 from teststring.cc:1:
/usr/include/g++-v3/bits/std_cstring.h:68: `memcpy' not declared
/usr/include/g++-v3/bits/std_cstring.h:69: `memmove' not declared
/usr/include/g++-v3/bits/std_cstring.h:70: `strcpy' not declared
/usr/include/g++-v3/bits/std_cstring.h:71: `strncpy' not declared
/usr/include/g++-v3/bits/std_cstring.h:72: `strcat' not declared
/usr/include/g++-v3/bits/std_cstring.h:73: `strncat' not declared
/usr/include/g++-v3/bits/std_cstring.h:74: `memcmp' not declared
/usr/include/g++-v3/bits/std_cstring.h:75: `strcmp' not declared
/usr/include/g++-v3/bits/std_cstring.h:76: `strcoll' not declared
/usr/include/g++-v3/bits/std_cstring.h:77: `strncmp' not declared
/usr/include/g++-v3/bits/std_cstring.h:78: `strxfrm' not declared
/usr/include/g++-v3/bits/std_cstring.h:79: `strcspn' not declared
/usr/include/g++-v3/bits/std_cstring.h:80: `strspn' not declared
/usr/include/g++-v3/bits/std_cstring.h:81: `strtok' not declared
/usr/include/g++-v3/bits/std_cstring.h:82: `memset' not declared
/usr/include/g++-v3/bits/std_cstring.h:83: `strerror' not declared
/usr/include/g++-v3/bits/std_cstring.h:84: `strlen' not declared
/usr/include/g++-v3/bits/std_cstring.h:86: `memchr' not declared
/usr/include/g++-v3/bits/std_cstring.h: In function `void* std::memchr(void*, 
   int, unsigned int)':
/usr/include/g++-v3/bits/std_cstring.h:90: cannot convert `const void*' to 
   `void*' for argument `1' to `void* std::memchr(void*, int, unsigned int)'
/usr/include/g++-v3/bits/std_cstring.h: At global scope:
/usr/include/g++-v3/bits/std_cstring.h:92: `strchr' not declared
/usr/include/g++-v3/bits/std_cstring.h:98: `strpbrk' not declared
/usr/include/g++-v3/bits/std_cstring.h:104: `strrchr' not declared
/usr/include/g++-v3/bits/std_cstring.h:110: `strstr' not declared
In file included from /usr/include/g++-v3/bits/fpos.h:40,
 from /usr/include/g++-v3/bits/char_traits.h:40,
 from /usr/include/g++-v3/bits/std_string.h:41,
 from /usr/include/g++-v3/string:31,
 from teststring.cc:1:
/usr/include/g++-v3/bits/std_cwchar.h:42:24: wchar.h: No such file or directory
In file included from /usr/include/g++-v3/bits/fpos.h:40,
 from /usr/include/g++-v3/bits/char_traits.h:40,
 from /usr/include/g++-v3/bits/std_string.h:41,
 from /usr/include/g++-v3/string:31,
 from teststring.cc:1:
/usr/include/g++-v3/bits/std_cwchar.h:59: `mbstate_t' not declared
/usr/include/g++-v3/bits/std_cwchar.h:125: `btowc' not declared
/usr/include/g++-v3/bits/std_cwchar.h:126: `fgetwc' not declared
/usr/include/g++-v3/bits/std_cwchar.h:127: `fgetws' not declared
/usr/include/g++-v3/bits/std_cwchar.h:128: `fputwc' not declared
/usr/include/g++-v3/bits/std_cwchar.h:129: `fputws' not declared
/usr/include/g++-v3/bits/std_cwchar.h:130: `fwide' not declared
/usr/include/g++-v3/bits/std_cwchar.h:131: `fwprintf' not declared
/usr/include/g++-v3/bits/std_cwchar.h:132: `fwscanf' not declared
/usr/include/g++-v3/bits/std_cwchar.h:133: `getwc' not declared
/usr/include/g++-v3/bits/std_cwchar.h:134: `getwchar' not declared
/usr/include/g++-v3/bits/std_cwchar.h:135: `mbrlen' not declared
/usr/include/g++-v3/bits/std_cwchar.h:136: `mbrtowc' not declared
/usr/include/g++-v3/bits/std_cwchar.h:137: `mbsinit' not declared
/usr/include/g++-v3/bits/std_cwchar.h:138: `mbsrtowcs' not declared
/usr/include/g++-v3/bits/std_cwchar.h:139: `putwc' not declared
/usr/include/g++-v3/bits/std_cwchar.h:140: `putwchar' not declared
/usr/include/g++-v3/bits/std_cwchar.h:141: `swprintf' not declared
/usr/include/g++-v3/bits/std_cwchar.h:142: `swscanf' not declared
/usr/include/g++-v3/bits/std_cwchar.h:143: `ungetwc' not declared
/usr/include/g++-v3/bits/std_cwchar.h:144: `vfwprintf' not declared
/usr/include/g++-v3/bits/std_cwchar.h:145: `vfwscanf' not declared
/usr/include/g++-v3/bits/std_cwchar.h:146: `vswprintf' not declared
/usr/include/g++-v3/bits/std_cwchar.h:147: `vswscanf' not declared
/usr/include/g++-v3/bits/std_cwchar.h:148: `vwprintf' 

g++ segfaults compiling C++ code

2001-07-05 Thread olly

>Submitter-Id:  net
>Originator:Olly Betts
>Organization:  none
>Confidential:  no
>Synopsis:  Compiling the attach code causes g++ to segfault
>Severity:  serious
>Priority:  medium
>Category:  c++
>Class: ice-on-legal-code
>Release:   3.0 (Debian) (Debian testing/unstable)
>Environment:
System: Linux roadkill 2.2.19 #1 Sat Jun 9 14:48:14 EST 2001 i686 unknown
Architecture: i686


host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: i386-pc-linux-gnu
configured with: ../src/configure -v 
--enable-languages=c,c++,java,f77,proto,objc --prefix=/usr 
--infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as 
--with-gnu-ld --with-system-zlib --enable-long-long --enable-nls 
--without-included-gettext --disable-checking --enable-threads=posix 
--enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
>Description:
Compiling the attached file causes g++ to segfault.

I believe the code is legal C++ apart from the template parameter
being declared friend, and since g++ only makes that a warning, it
presumably is allowing the code as an extension to ISO C++.
>How-To-Repeat:
Compile with:

g++-3.0 -O -pedantic -c gcc3.cc

class A {
 public:
   class I;
   I *i;
   A(const A&);
   virtual ~A()=0;
};
class S {
 public:
   S(const int &);
   ~S() { try { } catch(S&) { } }
};
class B {
 private:
   int m;
 public:
   bool d() const;
   class T {};
};
template  class P {
   friend T;
 private:
   T *d;
 public:
   T *g() const;
   P(const P &);
   ~P();
   template  P(const P &);
};
inline bool B::d() const { S s(m); return 1; }
template  inline P::P(const P &o) : d(o.d) {}
template  inline P::~P() { d->d(); }
template 
template  inline P::P(const P &o) : d(o.g()) {}
template  inline T*P::g() const { return d; }
class A::I { 
 public:
   class D;
   P d;
};
class A::I::D : public B {
 public:
   D();
};
A::A(const A &o): i(new A::I(*o.i)) {}
>Fix:
Compiling without optimisation seems to avoid this problem:

g++-3.0 -pedantic -c gcc3.cc




Bug#103568: gcc-3.0_3.0.ds9-4(unstable): fails to build from source

2001-07-05 Thread Matthias Klose
James Troup writes:
 > Package: gcc-3.0
 > Version: 3.0.ds9-4
 > Severity: serious
 > 
 > Help?

please disable java for sparc in debian/rules.conf.

[ if you have time, it would be interesting to install the just built
  libgcc1 package and then try again to build java/libgcj ]

sorry, no sparc available with the build dependencies required.