[tkined] scotty-2.1.11 compile problem on solaris8

From: Matt Selsky (selsky@columbia.edu)
Date: Sun Jun 24 2001 - 03:38:42 MET DST


I was trying to compile scotty-2.1.11 on solaris8 and I got the following
error:

$ make
[snip]
gcc -c -O -fPIC -I. -I./../tnm/generic -I/opt/local/include
./../tnm/generic/tnmUdp.c
./../tnm/generic/tnmUdp.c: In function `UdpMulticast':
./../tnm/generic/tnmUdp.c:646: structure has no member named
`imr_interface'
make: *** [tnmUdp.o] Error 1

I configured like this:

$ ./configure --prefix=/opt/local --enable-gcc --enable-multicast
[snip]

Configure did not return any errors. I was able to successfully compile
the previous version of scotty (2.1.10) on the same system.

I diffed tnmUdp.c from the two different versions and got this:

$ diff -u scotty-2.1.10/src/tnm/generic/tnmUdp.c scotty-2.1.11/src/tnm/generic/tnmUdp.c
- --- scotty-2.1.10/src/tnm/generic/tnmUdp.c Wed Sep 18 17:34:51 1996
+++ scotty-2.1.11/src/tnm/generic/tnmUdp.c Thu Jul 6 05:47:02 2000
@@ -643,7 +643,7 @@
        }
 
        mreq.imr_multiaddr.s_addr = name.sin_addr.s_addr;
- - name.sin_addr.s_addr = htonl(INADDR_ANY);
+ name.imr_interface.s_addr = htonl(INADDR_ANY);
 
        sock = TnmSocket(PF_INET, SOCK_DGRAM, 0);
        if (sock == TNM_SOCKET_ERROR) {

name is of type sockaddr_in, which has no member imr_interface. From
looking at the code and looking at the mailing list archives, it seems
that "name.imr_interface.s_addr" should be "mreq.imr_interface.s_addr"

Here's a patch:

- --- tnmUdp.c Thu Jul 6 05:47:02 2000
+++ tnmUdp.c.new Fri Jun 22 18:59:22 2001
@@ -643,7 +643,7 @@
        }
 
        mreq.imr_multiaddr.s_addr = name.sin_addr.s_addr;
- - name.imr_interface.s_addr = htonl(INADDR_ANY);
+ mreq.imr_interface.s_addr = htonl(INADDR_ANY);
 
        sock = TnmSocket(PF_INET, SOCK_DGRAM, 0);
        if (sock == TNM_SOCKET_ERROR) {

Also the email address contact for bugs is wrong in the faq:

http://www.ibr.cs.tu-bs.de/~schoenw/scotty/faq/faq.html#SEC22

It's missing the 'r' in 'ibr'.

--
!! 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