SDL compilation problem on Solaris 2.8 (Sunblade 100)

Hello,

I’ve got a problem with compilation. It fails with next message:

gcc -DPACKAGE=“SDL” -DVERSION=“1.2.4” -DHAVE_ALLOCA_H=1
-DHAVE_ALLOCA=1 -I. -I. -g -O2 -Wall -D__ELF__ -DENABLE_DUMMYVIDEO
-DDISKAUD_SUPPORT -DESD_SUPPORT -I/usr/local/include
-I/usr/local/X11R6/include -DENABLE_X11 -Iinclude -Isrc/video
-DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE
-DXFREE86_XV -DHAVE_XINERAMA -D_REENTRANT -DSDL_USE_PTHREADS
-DPTHREAD_NO_RECURSIVE_MUTEX -DSUNAUDIO_SUPPORT -I…/…/…/…/include
-I…/…/…/…/include/SDL -I…/…/…/…/src -I…/…/…/…/src/solaris
-I…/…/…/…/src/main -I…/…/…/…/src/audio -I…/…/…/…/src/video
-I…/…/…/…/src/video/XFree86/extensions -I…/…/…/…/src/events
-I…/…/…/…/src/joystick -I…/…/…/…/src/cdrom
-I…/…/…/…/src/thread -I…/…/…/…/src/timer
-I…/…/…/…/src/endian -I…/…/…/…/src/file -c XF86DGA2.c -fPIC
-DPIC -o .libs/XF86DGA2.lo
In file included from /usr/include/string.h:18,
from /usr/local/X11R6/include/X11/Xlibint.h:209,
from XF86DGA2.c:19:
/usr/include/iso/string_iso.h:62: parse error before (' /usr/include/iso/string_iso.h:62:bcopy’ declared as function returning
a function
/usr/include/iso/string_iso.h:62: conflicting types for bcopy' /usr/local/X11R6/include/X11/Xfuncs.h:57: previous declaration ofbcopy’
/usr/include/iso/string_iso.h:62: parse error before char' make[4]: *** [XF86DGA2.lo] Error 1 make[4]: Leaving directory/export/packages/andreyv/SDL-1.2.4/SDL-1.2.4/src/video/XFree86/Xxf86dga’

make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
/export/packages/andreyv/SDL-1.2.4/SDL-1.2.4/src/video' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory/export/packages/andreyv/SDL-1.2.4/SDL-1.2.4/src’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/export/packages/andreyv/SDL-1.2.4/SDL-1.2.4’
make: *** [build-stamp] Error 2

Can somebody help to resolve this problem?

Any help will be very appreciated.

Andrey