Re: reflector. build question

Carlos Picoto (Carlos.Picoto@di.fc.ul.pt)
Thu, 28 Jul 1994 12:10:27 -0400


At 10:18 AM 28/7/94 -0400, Alan Margarella wrote:
>
>Neil,
>
>I too am having a problem with the make file for Solaris 2.3. Is there anyone
>running a reflector on Solaris 2.3?
>
>Thanx,
>Alan Margarella
Since there are several requests, here it is.

>Sorry if this is the wrong place for this question.
>
>i'm having problems building the reflector on solaris 2.3
>
>if anyone has had a successful attempt can you contact me ?
>for starters i'd just like to see a makefile !
Not enough!
But here it is:

>CC = gcc
>CFLAGS = -g -D_BSD -DDEBUG -DMULTI -DSOLARIS
>
># CFLAGS = -g -D_BSD -DDEBUG
>
># use the above CFLAGS definition if your machine doesn't
># support multicast.
>
>LINTFLAGS=
>VSRCS= reflect.c socket.c control.c util.c load.c refutil.c
>VOBJS= reflect.o socket.o control.o util.o load.o refutil.o
>INCL= reflect.h refmon.h
>RSRCS= refmon.c
>ROBJS= refmon.o
># LIBC= /lib/libc.a /lib/libbsd.a
>LIBC= -lnsl -lsocket
>
>all: reflect refmon
>
>reflect.o : ${INCL}
>socket.o : ${INCL}
>control.o : ${INCL}
>util.o : ${INCL}
>
>reflect: ${VOBJS}
> rm -f $@
> ${CC} -o $@ ${VOBJS} ${LIBC}
>
>refmon: ${ROBJS}
> rm -f $@
> ${CC} -o $@ ${ROBJS} ${LIBC}
>
>
>

The rest you need are this lines
at the beginning of reflect.h

#ifdef SOLARIS
#define MAXHOSTNAMELEN 256
#define bzero(a,b) memset(a,0,b)
#define bcopy(a,b,c) memcpy(b,a,c)
#define setlinebuf(a) setvbuf(a,NULL,_IOLBF,0)
#endif

>
>
>thanks in advance
>neil c
It works for me!
Try 192.67.76.40 my reflector!
____________________________________________________________________
Carlos Picoto | e-mail: Carlos.Picoto@di.fc.ul.pt
Departamento de Informatica | Tel : +351 1 7573141 (X: 2557)
da Faculdade de Ciencias | Fax : +351 1 7577831
da Universidade de Lisboa | URL : http://www.fc.ul.pt/cap.html
Campo Grande - Bloco C5 | ISDN : +351 1 7510003
1700 LISBOA / PORTUGAL |
____________________________________________________________________