Vanilla Netrek Server Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[VANILLA-L:599] Re: FW: problems compiling Server2.7pl6.tar



Quoting NBT Nick B. Trown (nbt@landacorp.com):
> Hi Mark,
> 
> 	I'm not very familiar with Solaris. However, I've
> forwarded your email to the vanilla server developer 
> list and someone should be able to help out.
> 
The makedepends warnings are correct. Because you added the #include
<sys/types.h> you do have multi-includes of the this file. Nothing
major here, just lots of garbage when you compile.

You should not have to include <sys/types.h> anywhere configure should
set your config.h. I am not sure why this did not happen for you. I am
running an ultra, 2.5.1 and gcc 2.7.2. The news server compiled out of
the box (more or less :) for me.

> >update.c: In function `BecomeDaemon':
> >update.c:434: too many arguments to function `setpgrp'
> >*** Error code 1
> >make: Fatal error: Command failed for target `update.o'
> >Current working directory /export/home/mark/sources/netrek/Server/tools
> >*** Error code 1
> >make: Fatal error: Command failed for target `utils'
> >daria% exit
> >script done on Wed May 07 00:41:39 1997
> >

I did submit a small patch to James to fix this problem. I'll include
it here so you can get your server up and running.

Assuming you have not made major changes to your config.h, you can
apply this patch and do a configure again and it should work for you.

-- 
Bob Tanner <tanner@real-time.com>       | Phone : 612.943.8700
http://www.real-time.com                | Fax   : 612.943.8300
Key fingerprint =  6C E9 51 4F D5 3E 4C 66  62 A9 10 E5 35 85 39 D9 
--- Server/config.h.in	Wed Apr 16 18:27:17 1997
+++ pickup/Server/config.h.in	Thu May  1 12:58:33 1997
@@ -311,6 +311,10 @@
 						     this define. */
 #undef GENO_COUNT
 
+#undef CONTINUUM_BASE		/* CONTINUUM_BASE  - make the starbase timer to 
+          					     be proportional to the number of 
+                                                     repair planets. */ 
+
 #ifdef VOTING
                                 /* AUTO_INL        - starts up INL robot
                                                      by majority vote   */
@@ -404,6 +408,9 @@
 #undef gid_t
 #undef size_t 
 #undef vfork 
+#if (defined(sparc) && defined(sun))
+  #define vfork fork
+#endif
 #undef NO_PATH_MAX
 #undef inline
 
@@ -520,7 +527,7 @@
 #if defined (hpux) || defined(__osf__)
 #define SETPGRP()       setsid()
 #else
-#if defined (linux) || defined(sgi) || defined(Solaris)
+#if defined (linux) || defined(sgi) || (defined(sparc) && defined(sun))
 #define SETPGRP()       setpgrp()
 #else
 #define SETPGRP()       setpgrp (0, 0)