Hi Erick, 3 problems getting stk-2.1.2 compiled, irix 5.2
(cc -g -ansi).
1. port.c - popen requires one of the three symbols below to
get a prototype defined.. (I used -D_POSIX_SOURCE)
>From stdio.h -
#if defined(_SVR4_SOURCE) || defined(_POSIX_SOURCE) || defined(_XOPEN_SOURCE) /*
non-ANSI standard compilation */
extern FILE *fdopen(int, const char *);
extern FILE *popen(const char *, const char *);
.....
2. gc.h - double total_gc_time defined as well as in gc.c,
changed to extern double total_gc_time.
3. argv.c - NEXTARG macro too fancy for compiler. Is the
return value of (...,...) defined under ANSI, I don't have a reference handy..?
Anyhow I fixed it with the macro
#define GET_NEXTARG(arg) {argc--;*++argv;\
if (*argv) arg = *argv;else { arg = NULL; need_argument(p->key);} break;}
then
if (strcmp(p->key, "-file") == 0) GET_NEXTARG(arg_file)
if (strcmp(p->key, "-geometry") == 0) GET_NEXTARG(arg_geometry)
if (strcmp(p->key, "-display") == 0) GET_NEXTARG(arg_Xdisplay)
etc...
Then compiled successfully and ran hello.stk...
I'll test further when I get in front of my Indigo, rather
than over a 14.4k PPP link which is a bit paneful for X windows stuff.
I decided to send this stuff to the main mailing list rather
than stk-bugs as I figure it should help others get up and running
quickly. Is this reasonable ?
-Drew
;; Drew Whitehouse, E-mail: Drew.Whitehouse_at_anu.edu.au
;; Visualization Group, or drw900_at_anusf.anu.edu.au
;; Australian National University, Fax : +61 (0)6 247 3425
;; Supercomputer Facility. Phone : +61 (0)6 249 5985
;; Canberra ACT 0200, Australia.
http://anusf.anu.edu.au/drw900/me.html
Received on Fri Sep 09 1994 - 15:17:38 CEST