From: James (jparker@caddac1.uwaterloo.ca)
Date: 05/05/93


From: jparker@caddac1.uwaterloo.ca (James)
Subject: Aaak: Segmentation fault on "hello world"
Date: 5 May 1993 20:56:54 GMT

I have recently installed Linux (SLS 1.0) on my
486-DX2/66 with few problems - until now.

I tried to compile the following simplest program with
no luck

#include <stdio.h>
main ()
{
        printf("hello world\n");
}

My only difference from the default SLS distribution is that
I have used gcc233.tgz, gxx233.tgz and
lib433.tgz, inc433.tgz and shlibs.tgz from SLS1.02

to try upgrade to the new shared libraries.

Is there something obvious that I'm missing here?

I don't get incompatible library errors or anything - it
compiles fine - then crashes

In fact, it seg. faults even if I comment out the printf line!

Also, I have tried gcc -static and it made no difference: in fact
the binary a.out was the same size - is that what is supposed to
happen??

help!!

james

-- 
James Parker         (519) 885-1211 ext. 3334
Silicon Devices and Integrated Circuits Group
University of Waterloo, Waterloo, Canada