First, many thanks for the good work :-)
I am trying to compile and install xgks-2.6 I got on "Source Forge"
yersterday.
The configuration I use is a Celeron computer runnning Linux
Mandrake 6.1 (kernel 2.2.13). The desktop environment is KDE 1.1.1.
My c compiler is pgcc-2.91.66
Now the details :
To compile :
In the source file, the file linux.m4 lacks. I'have used the xgks2.5.5
and everthing seemed working O.K. (I'am not a m4 guru !).
After that when running any programs of the directory progs
(hanoi, pline...) I get the following error :
.....
static void
XcMap_enter(map, index, pixel)
XcMap *map; /* GKS<->X index mapper (in/out) */
Gint index; /* GKS color-index (in) */
unsigned long pixel; /* X pixel value (in) */
{
assert(map != NULL);
===>assert(pixel < map->length);<========================
assert(index >= 0 && index < map->length);
map->Xpixels[index] = pixel;
.....
Program received signal SIGSEGV, Segmentation fault.
0x807fa9d in XcMap_enter (map=0x100, index=134870992, pixel=134872024)
at xcolours.c:232
I would very much appreciate some help to solve this problem.
Best regards
--
Albert-Paul Bouillot
Sorry for taking so long to get to this. I think I thought that the SourceForge software would notify me when a bug was submitted.
Albert-Paul,
What is your default X colormap? XGKS gets the default colormap and sets up some GKS color
index to X pixel value translation tables. If the default colormap is wider than 8-bits, then the
tables are bound to be so big that they cause a memory exception.
I've added the missing file "port/fortc/linux.m4". It will be in the next distribution.
--Steve