G++ 2.7.2 fails to work (1.3.99)

G++ 2.7.2 fails to work (1.3.99)

Post by Fredrik Norrm » Sat, 18 May 1996 04:00:00



Hi all,

I have run in to a few problems when I tried to upgrade my compiler to
2.7.2. C-compilations seem to work, but all executables compiled with
g++ crashes (segmentation fault).

My system:
Pentium Pro
Slackware 3.0 with modifications:
   kernel 1.3.99
   procps-0.99a

I tried to upgrade GCC to 2.7.2 by installing:
gcc-2.7.2.bin.tar.gz
libc-5.3.12.bin.tar.gz
libg++-2.7.1.4.bin.tar.gz
binutils-2.6.0.14.bin.tar.gz

Even the simplest program compiled with g++ fails to work:

hello.cc
#include <stdio.h>
int main(int argc, char* argv[])
{
  printf("Hello world\n");

Quote:}
> g++ -ohello hello.cc
> ./hello

zsh: 7687 segmentation fault  ./hello

If I compile the same with gcc, it works!

Quote:> gcc -ohello hello.cc
> ./hello

Hello world

Any ideas on where to look for the error? I don't think this is a
kernel issue since I haven't seen any reports of this kind.

Regards,
/Fredrik Norrman

 
 
 

G++ 2.7.2 fails to work (1.3.99)

Post by H.J. L » Sat, 18 May 1996 04:00:00



> > g++ -ohello hello.cc
> > ./hello
> zsh: 7687 segmentation fault  ./hello

Try

# ldd hello

H.J.

 
 
 

1. Help: IP_MASQUERADING doesn't work with Kernel 1.3.99

Hello,

I've got a Linux box running with kernel 1.2.13. IP_Masqerading is
installed and running. everything works fine.

Now i want to upgrade to kernel 1.3.99. From the FTP-Server
INDYRAMP.COM I got the ipfw-for-1.3.10 and replaced the one for
1.2.13. But now while starting with my old startup file ipfw reports:

#ipfw a m all from 192.168.8.0/24 to 0.0.0.0/0
add masqerading all from 192.168.8.0/24 to 0.0.0.0/0
ipfw: setsockopt(IP_FW_ADD_FWD): invalid argument

What is this? Masquerading doesn't work anymore. Shit!
What have i done wrong??

Greetinx
Kreisi

P.S.:
Is the Server FTP.EVES.COM offline?? I cant reach it.

2. Exabyte problems under 1.3.77

3. Using UFS with 1.3.99 kernel

4. lynx colors too dark upon black background

5. Something wrong with 1.3.99 !

6. How to detect if your computer is broken:

7. Big problems with 1.3.99, everything OK vith .98

8. i740 and Linux?

9. Errors compiling Wingz 1.4 Add-ins (Linux 1.3.99, GCC 2.6)

10. 1.3.99 + ps -aux == Floating point exception

11. 1.3.99 Kernel Problem

12. PPP with kernel 1.3.99 + 100 -> unknown device

13. GCC272/1.3.99 help