X11IRAF build problems on Solaris 2.6
Mike Fitzpatrick wrote on Feb 03, 1998
> I'm trying to recompile x11iraf under Solaris 2.6 and can't get it to
> work. Below is the spool file -- any and all suggestions welcome!
>
> :
> cc -O -Xs -I../../include -I/usr/openwin/include -Dsun -Dsparc -DSVR4
> -DSYSV -D_NO_PROTO -c laygram.c
> "laygram.y", line 264: warning: const is a keyword in ANSI C
> "laygram.y", line 264: undefined or not a type: const
> "laygram.y", line 264: parameter not in identifier list: LayYYexca
> "laygram.y", line 264: cannot initialize parameter: LayYYexca
> "laygram.y", line 265: warning: improper pointer/integer combination: op "="
> "laygram.y", line 265: too many initializers for scalar
> "laygram.y", line 265: warning: improper pointer/integer combination: op "="
> :
> :
This is a known problem discovered after the last release of
course. The problem is caused by the -Xs flag used to avoid other
problems when compiling the Gterm code, but is incompatible with the yacc
output in laygram.c. The solution is to edit the obm/ObmW/Imakefile with
the following:
# Hack to compile under SunPRO V4 on Solaris
#if defined (SunArchitecture) && HasSunC && OSMajorVersion >= 5
laygram.o:
$(CC) $(EXTRA_INCLUDES) -c laygram.c
#endif
This will cause the laygram.c to compile with a simpler command and should
avoid the errors.
-Mike
Last post on Feb 03, 1998