making Reflector 4

NetMaster Pursley (rpursley@surf.tstc.edu)
Tue, 29 Aug 1995 20:27:55 -0500 (CDT)


I've basically got reflector 3.00b3 working I think....but it seems
to crash easily or run about an hour or so....
So I decided to try reflector 4.

My questions are will reflector4 be better...
and am I on the right track below to make a new reflect
program using reflector 4 software for Solaris

(thanks for any information on making a new reflector 4)

I untarred reflect4 to a dir...
tar -xf reflect.SunSolaris.tar
and I got...

-rwxrwxrwx 1 rpursley other 2425 Jul 19 16:15 README
-rwxrwxrwx 1 rpursley other 35512 Jul 19 16:15 README.reflector.4.00b1.txt
-rwxrwxrwx 1 rpursley other 152276 Jul 19 15:55 reflect
-rwxrwxrwx 1 rpursley other 221184 Aug 29 09:19 reflect.SunSolaris.tar
-rwxrwxrwx 1 rpursley other 10180 Aug 29 19:45 reflect.conf
-rwxrwxrwx 1 rpursley other 12024 Jul 19 15:55 refmon

then i copied all these files from the reflect3 dir to the reflect4 dir

total 3464
-rwxrwxrwx 1 rpursley student 792 Aug 25 13:57 Makefile
-rwxrwxrwx 1 rpursley student 6799 Aug 25 13:57 client.c
-rw-r--r-- 1 rpursley other 65920 Aug 25 14:43 client.o
-rwxrwxrwx 1 rpursley student 11564 Aug 25 13:57 control.c
-rw-r--r-- 1 rpursley other 63400 Aug 25 14:42 control.o
-rwxrwxrwx 1 rpursley student 18372 Aug 25 13:57 distribute.c
-rw-r--r-- 1 rpursley other 76344 Aug 25 14:43 distribute.o
-rwxrwxrwx 1 rpursley student 15311 Aug 25 13:57 globals.h
-rw-r--r-- 1 rpursley other 141 Aug 25 14:38 includex
-rwxrwxrwx 1 rpursley student 31201 Aug 25 13:57 load.c
-rw-r--r-- 1 rpursley other 89476 Aug 25 14:43 load.o
-rwxrwxrwx 1 rpursley student 40134 Aug 25 13:57 mbone.c
-rw-r--r-- 1 rpursley other 85700 Aug 25 14:44 mbone.o
-rwxrwxrwx 1 rpursley student 3615 Aug 29 16:21 nohup.out
-rwxrwxrwx 1 rpursley student 25543 Aug 25 13:57 ocp.c
-rw-r--r-- 1 rpursley other 76664 Aug 25 14:44 ocp.o
-rwxr-xr-x 1 rpursley other 542384 Aug 25 14:44 reflect
-rwxrwxrwx 1 rpursley student 17918 Aug 25 13:57 reflect.c
-rwxrwxrwx 1 rpursley student 16310 Aug 25 14:41 reflect.h
-rwxrwxrwx 1 rpursley student 32213 Aug 29 17:20 reflect.log
-rw-r--r-- 1 rpursley other 79140 Aug 25 14:42 reflect.o
-rwxr-xr-x 1 rpursley other 49136 Aug 25 14:44 refmon
-rwxrwxrwx 1 rpursley student 6456 Aug 25 13:57 refmon.c
-rwxrwxrwx 1 rpursley student 1773 Aug 25 13:57 refmon.h
-rw-r--r-- 1 rpursley other 58848 Aug 25 14:44 refmon.o
-rwxrwxrwx 1 rpursley student 4882 Aug 25 13:57 refutil.c
-rw-r--r-- 1 rpursley other 54720 Aug 25 14:43 refutil.o
-rwxrwxrwx 1 rpursley student 4512 Aug 25 13:57 rtp.h
-rwxrwxrwx 1 rpursley student 77 Aug 25 13:57 run_reflect
-rwxrwxrwx 1 rpursley student 23199 Aug 25 14:41 socket.c
-rw-r--r-- 1 rpursley other 73992 Aug 25 14:42 socket.o
-rwxrwxrwx 1 rpursley student 12453 Aug 25 14:42 util.c
-rw-r--r-- 1 rpursley other 71836 Aug 25 14:43 util.o

The contents of my Makefile are...

# for non BSD systems remove the -D_BSD
# for non multicast systems remvoe the -DMULTI
CC = gcc
CFLAGS = -g -DDEBUG -DMULTI -DSOLARIS
LINTFLAGS=
VSRCS= reflect.c socket.c control.c util.c load.c refutil.c client.c distribute.c ocp.c mbone.c
VOBJS= reflect.o socket.o control.o util.o load.o refutil.o client.o distribute.o ocp.o mbone.o
INCL= reflect.h refmon.h globals.h
RSRCS= refmon.c
ROBJS= refmon.o
# LIBC= /lib/libc.a /lib/libbsd.a
LIBC= -lsocket -lnsl

all: reflect refmon

reflect.o : ${INCL}
socket.o : ${INCL}
control.o : ${INCL}
load.o : ${INCL}
refutil.o : ${INCL}
client.o : ${INCL}
distribute.o : ${INCL} rtp.h
ocp.o : ${INCL}
mbone.o : ${INCL} rtp.h

reflect: ${VOBJS}
rm -f $@
${CC} -o $@ ${VOBJS} ${LIBC}

refmon: ${ROBJS}
rm -f $@
${CC} -o $@ ${ROBJS} ${LIBC}

Then I proceed with a make, like

make