Re: [tkined] Date: Thu, 19 Jul 2001 11:30:08 -0400

From: Erik Schoenfelder (schoenfr@gaertner.de)
Date: Fri Jul 20 2001 - 00:02:05 MET DST


Hi,

Phil> I am in the process of trying to compile Scotty-2.1.11 on Sun
Phil> Ultra 10 running Solaris 2.7 with gcc compiler version 2.95.2.
Phil> [...]

Phil> ./../tnm/generic/tnmNtp.c:35: conflicting types for `ipaddr_t'
Phil> /usr/include/netinet/in.h:60: previous declaration of `ipaddr_t'
Phil> *** Error code 1
Phil> make: Fatal error: Command failed for target `tnmNtp.o'

Phil> I don't understand the meaning of this message nor how to
Phil> resolve the issue.

well, the ipaddr_t type defined by tnmNtp.c conficts with the type
defined within the solaris headers. ntping.c has this typedef too.

however, a possible fix for you could be:

--- scotty-2.1.11/tnm/generic/tnmNtp.c-2.1.11 Wed Sep 18 23:33:54 1996
+++ scotty-2.1.11/tnm/generic/tnmNtp.c Wed Jul 18 09:38:23 2001
@@ -29,10 +29,12 @@
     unsigned char data[(480 + 20)]; /* data + auth */
 };
 
-#if (SIZEOF_LONG == 8)
+#ifndef _IPADDR_T
+# if (SIZEOF_LONG == 8)
 typedef unsigned int ipaddr_t;
-#else
+# else
 typedef unsigned long ipaddr_t;
+# endif
 #endif
 
 /*
--- scotty-2.1.11/tnm/ntping/ntping.c-2.1.11 Sat Oct 2 17:16:11 1999
+++ scotty-2.1.11/tnm/ntping/ntping.c Thu Jul 19 23:44:50 2001
@@ -67,7 +67,9 @@
  */
 typedef unsigned int ipaddr_t;
 #else /* ! __alpha */
+# ifndef _IPADDR_T
 typedef unsigned long ipaddr_t;
+# endif
 #endif /* ! __alpha */
 typedef unsigned int int32;
 

have fun,

                                                         Erik

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.



This archive was generated by hypermail 2b29 : Thu Jan 03 2002 - 14:56:27 MET