修正を要するsource
以下の3つのsourceファイルはcompilesacでcompileする時にerrorを出すので修正を要するようです(と弱気な表現なのは僕がC言語を知らないのでsourceを直接いじる以外に対処の方法があるかも知れないと思っているからです)。
/usr/local/sac/src/gd3.x11/cursor3.c
/usr/local/sac/src/gd3.x11/cursortext3.c
/usr/local/sac/src/gd3.x11/dispatcheve3.c
修正箇所は3つのsourceファイルに共通な部分で
<修正前>
・
・
/* Use an offset of OW_OFFSET for calls to XDrawLine. OpenWindows has a problem
that does not occur in generic X11R4. */
int owoffset;
char *pvendor;
pvendor = display3->vendor;
if(!strncmp(pvendor,"X11/NeWS",8)) /* OpenWindows */
owoffset=OW_OFFSET;
else
owoffset=ZERO;
・
・
という部分を
<修正後>
・
・
/* Use an offset of OW_OFFSET for calls to XDrawLine. OpenWindows has a problem
that does not occur in generic X11R4. */
int owoffset;
/* char *pvendor; */
/* pvendor = display3 -> vendor; */
/* if(!strncmp(pvendor,"X11/NeWS",8)) */ /* OpenWindows */
/* owoffset=OW_OFFSET; */
/* else */
owoffset=ZERO;
・
・
と修正します。上述の通り僕はC言語を知りませんのでおそらくヤクザな直し方をして
いることと思います。美しい対処法をご存知の方は筧まで連絡下さい(笑)。
source中のコメントによるとOpenWindowsだとOW_OFFSETというoffsetを使わないといけないらしいのですが、LinuxではX Window Systemを使っているのでowoffset=ZEROと決めうちをしているわけです(ホンマかな)。
SAC10.6fのLinuxマシンへのインストールへ戻る