Vanilla Netrek Server Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[VANILLA-L:29] Re: [VANILLA-L:25] make install error
I had the same error when i compiled it myself. The problem is, that when
the .global file is negative, it won't create it the right way.
The problem is in the convert.c file.
I added some lines to it. Let me find the right things..
Okay, do the following:
Change from line 70 to:
printf("Writing new global\n");
if(glfd<0) {
fprintf(stderr,"No existing .global found - creating a new one.\n");
glfd = open(Global, O_RDWR|O_CREAT, 0744);
}
if (glfd >= 0) {
(void) lseek(glfd, (off_t) 0, SEEK_SET);
(void) write(glfd, (char *) &status, sizeof(struct status));
} else {
fprintf(stderr,"Oops, glfd is negative!!\n");
}
close(glfd);
return 0; /* satisfy lint */
}
This will create a good .global file.
Jaron
*** If u have a difficult task, give it to a lazy person -
they will find an easier way to do it ***
On Thu, 21 May 1998, Brent Anduaga-arias wrote:
>
> The "make install" of 2_7 for my solaris machine finished as follows:
>
> *************************************************************
> ...
> if [ ! -f /home/barias/netrek/Server/bin/.tourn.map ]; then \
> cp sample_tourn.map /home/barias/netrek/Server/bin/.tourn.map ; \
> fi
> touch /home/barias/netrek/Server/bin/.nocount
> touch /home/barias/netrek/Server/bin/.banned
> touch /home/barias/netrek/Server/bin/.bypass
> touch /home/barias/netrek/Server/bin/.clue-bypass
> cd tools; make installtrekon
> ./mktrekon /home/barias/netrek/Server/bin
> chmod a+x trekon
> cd tools; ./convert
> Checking /home/barias/netrek/Server/bin/.global file for conversion
> No global file. Resetting all stats
> Copying current .global to /home/barias/netrek/Server/bin/.GLOBAL.BAK
> cp: cannot access /home/barias/netrek/Server/bin/.global
> New Global Stats:
> Hours: 0.0
> Planets: 0
> Bombing: 0
> Offense: 0
> Defense: 0
> Writing new global
> *** Error code 1 (ignored)
> Server>
>
> ********************************************************
>
> How serious is the error I am seeing here at the end? Does it
> have something to do with why my clients freeze immediately after
> choosing a team?
>
> Brent
>
> +
> ++ Vanilla-l Mailing List ++
> To unsubscribe: send "unsubscribe vanilla-l" to majordomo@real-time.com
> For more information: http://archives.real-time.com
>
+
++ Vanilla-l Mailing List ++
To unsubscribe: send "unsubscribe vanilla-l" to majordomo@real-time.com
For more information: http://archives.real-time.com
References: