Yes I changed the top-level one. I will try this and see if it works. Thanks!
 
Todd


From: Brian Paul [mailto:brian.paul@tungstengraphics.com]
Sent: Thu 12/14/2006 4:26 PM
To: Dobmeyer, Todd
Cc: Heath Feather; mesa3d-users@lists.sourceforge.net
Subject: Re: [Mesa3d-users] Making Mesa on Solaris

Dobmeyer, Todd wrote:
> Thanks for the message to line 147. I changed the flag from -e to -h but
> this didn't fix it. I was still getting a "sh" error. So I added 2 lines
> to the top of my make file. The first line said "#!/bin/csh" and the 2nd
> line was just a blank line. Once I added this change in with the
> changing of the flag, stuff started to compile using "make
> sunos5-v9" for about 2 minutes before erroring out. So maybe seeing this
> will help try to continue compiling Mesa. The error message is as
> follows preceeded by a couple successful messages (sorry in advance for
> any typos, my Sun box does not have an internet connection so I have to
> re-type all my errors so something may be mispelled but I will try my
> best) I don't think I copied the last entire compilation statement but
> here is what I have:

> mmar  _i../../src/mesa/shader/slang 
> -I../..src/mesa/shader/slang/OSDependent/Linux 
> -I../../src/mesa/shader/slang/OGLCompilersDLL  -I../../src/mesa/swrast 
> -Iinclude -DUSE_XSHM -DPTHREADS tnl/t_vtx?exec.c -o tnl/t_vtx_exec.o
> /glapi  -I../../src/mesa/math  -I../../src/mesa/tnl 
> -I../../src/mesa/shader  -I../../src/mesa/shader/grammar 
> -I../../src/mesa/shader/slang 
> -I../../src/mesa/shader/slang/OSDependent/Linux 
> -I../../src/mesa/shader/slang/OGLCompilersDLL  -I../../src/mesa/swrast 
> -I../../src/mesa/swrast_setup -xarcg=v9 -KPIC -O -I/usr/openwin/include
> -I/usr/dt/include -DUSE_XSHM -DPTHREADS shader/arbprogparse.c -o
> shader/arbprogparse.o
> "shader/arbprogparse.c", line 3706: warning: old-style declaration or
> incorrect type for: __extension__
> "shader/arbprogparse.c", line 3706: syntax error before or at: static
> cc: acomp failed for shader/arbprogparse.c
> *** Error code 2
> make: Fatal error: Command failed for target 'shader/arbprogparse.o'
> Current working directory /backup/mesa/Mesa-6.5.2/src/mesa
> *** Error code 1
> make: Fatal error: Command failed for target 'default'
> Current working directory /backup/mesa/Mesa-6.5.2/src/mesa
> ***Error code 1
> make: Fatal error: Command failed for target 'subdirs'
> Current working directory /backup/mesa/Mesa-6.5.2/src
> *** Error code 1
> make: Fatal error: Command failed for target 'default'
> Current working directory /backup/mesa/Mesa-6.5.2
> *** Error code 1
> make: Fatal error: Command failed for target 'sunos5-v9'


> Let me know if this helps figure out this crash or if I need to type
> more of the compilation output before this. Thanks for all your help!!!

Replace __extension__ with LONGSTRING in shader/arbprogparse.c

I'll fix that in git.

Which Makefile did you change?  The top-level one?

-Brian