Hi

compiling latest version of SER from CVS gives some
build warnings and errors. system info:

 Mac OS X 10.5.5
 GNU Make v3.79.1
 gcc version 4.0.1 (Apple Inc. build 5488)




$ make
Makefile:560: warning: overriding commands for target `/'
Makefile:557: warning: ignoring old commands for target `/'
Makefile:563: warning: overriding commands for target `/'
Makefile:560: warning: ignoring old commands for target `/'
Makefile:566: warning: overriding commands for target `/'
Makefile:563: warning: ignoring old commands for target `/'
Makefile:570: warning: overriding commands for target `/'
Makefile:566: warning: ignoring old commands for target `/'



compiling modules does not work (make modules)


usage of IPv6 macros fails to build, see suggested patch
below..


/alfred


Index: ip_addr.c
===================================================================
RCS file: /cvsroot/ser/sip_router/ip_addr.c,v
retrieving revision 1.12
diff -u -3 -r1.12 ip_addr.c
--- ip_addr.c   28 Nov 2008 15:24:15 -0000      1.12
+++ ip_addr.c   6 Dec 2008 20:57:05 -0000
@@ -190,7 +190,7 @@
               return IN_MULTICAST(htonl(ip->u.addr32[0]));
#ifdef USE_IPV6
       } else if (ip->af==AF_INET6){
-               return IN6_IS_ADDR_MULTICAST(&ip->u.addr32[0]);
+               return IN6_IS_ADDR_MULTICAST((struct in6_addr*)ip->u.addr32);
#endif /* USE_IPV6 */
       } else {
               LOG(L_ERR, "ERROR: is_mcast: Unsupported protocol family\n");
Index: ip_addr.h
===================================================================
RCS file: /cvsroot/ser/sip_router/ip_addr.h,v
retrieving revision 1.49
diff -u -3 -r1.49 ip_addr.h
--- ip_addr.h   28 Nov 2008 15:24:15 -0000      1.49
+++ ip_addr.h   6 Dec 2008 20:57:05 -0000
@@ -242,7 +242,7 @@
               return ip->u.addr32[0]==htonl(INADDR_LOOPBACK);
#ifdef USE_IPV6
       else if (ip->af==AF_INET6)
-               return IN6_IS_ADDR_LOOPBACK(&ip->u.addr32[0]);
+               return IN6_IS_ADDR_LOOPBACK((struct in6_addr *)ip->u.addr32);
#endif /* USE_IPV6 */
       return 0;
}
_______________________________________________
Serdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/serdev

Reply via email to