[net.sources.games] Phantasia 3.3.2

wheel@utastro.UUCP (Craig Wheeler) (07/04/86)

Sorry this is going over the net, I sent it through mail but it got halted
at some location.

Having problems getting Phantasia up and running, it clogs during "make install"
and doesnt get past main.c.

The first error I encountered was this:

DSHELL=\"/bin/sh\"  -DSYS5 -c main.c
./include.h: 12: Can't find include file time.h
*** Error code 1

Stop.

Which returned me to the system.

I opened the file include.h and deleted the line
#include <time.h>
I think it was called, and tried installing again.  This time, I got:

"main.c", line 227: tm_yday undefined
"main.c", line 227: warning: struct/union or struct/union pointer required
"main.c", line 228: syntax error
*** Error code 1

Stop.

at the same point where the include error was.  The file main.c has these
lines:

       /* update some important player statistics */
        strcpy(Player.p_login, Login);
        time(&seconds);
227 --> Player.p_lastused = localtime(&seconds)->tm_yday
228 --> Player.p_status = S_PLAYING;
        writerecord(&Player, Fileloc);

        Statptr = &Stattable[Player.p_type];        /* initialize pointer */

Of course, I added the arrows showing the two problematic lines.

If you have any suggestions and can work through the mail system, I'd be 
grateful

Thanks in advance,

Rob Wheeler

msy@siemens.UUCP (07/09/86)

In some systems, <time.h> include file is in /usr/include/sys directory.
One thing you can try is to replace

	# include <time.h>

with the following

	# include <sys/time.h>


Siemens Research and Technology Laboratories		Marcus S. Yoo
Princeton, NJ

UUCP:  {ihnp4|astrovax|allegra}!siemens!msy
ARPA:  princeton!siemens!msy

colonel@sunybcs.UUCP (Col. G. L. Sicherman) (07/14/86)

I was going to mail this, but ihnp4 doesn't know how to get to ttrdc ...

One simple enhancement I would suggest:
in the "make install" code, add a link to a binary in the default pathset;
e.g., "ln ${DEST} /usr/games".  That way users need not type a full path
to the support directory.

Of course this may fail "cross-device link."

-- 
Col. G. L. Sicherman
UU: ...{rocksvax|decvax}!sunybcs!colonel
CS: colonel@buffalo-cs
BI: csdsicher@sunyabva