Path: utzoo!utgpu!watmath!clyde!att!rutgers!mailrus!cornell!uw-beaver!rice!sun-spots-request From: ekrell@ulysses.att.com Newsgroups: comp.sys.sun Subject: Re: SUN4 / SUNOS4.0 / C Compiler Problems Message-ID: <8811221443.AA15528@hector.homer.nj.att.com> Date: 2 Dec 88 23:54:31 GMT Sender: usenet@rice.edu Organization: Rice University, Houston, Texas Lines: 22 Approved: Sun-Spots@rice.edu Original-Date: Tue, 22 Nov 88 09:43:16 EST X-Sun-Spots-Digest: Volume 7, Issue 34, message 3 of 12 The optimizer for the sparc is known to be broken, so avoid using it. I couldn't get X Windows 11.3 running until I removed the -O flag from the Makefiles. the "Watchdog Reset" problem with the 4/110 is a hardware bug for which Sun has a software workaround (a new trap.o kernel module). This will Prevent the system from crashing. > char argv[SOMEARGS][BUFSIZ]; > foo (argv); > foo (argv) > char **argv; > { > printf( "%s\n", argv[1]); > } You didn't expect this to work, did you? How does the function know what offset to generate for argv[1]? It has to know the second dimension of the matrix in order to generate right offsets. Try declaring the argument in foo() as "char argv[][BUFSIZ]".