Help getting UDPRelay working

Bruce Luckcuck (BLuckcuck@idgbooks.com)
Fri, 16 May 1997 12:44:59 -0500


Help!

I need some help getting udprelay compiled and working for Solaris 2.5.1
(UltraSPARC). I downloaded the source and tried to compile it but got
the following:

gcc -o udprelay -O -DSYSV -DRELAYHOST=\""proxy1.wang.com"\"
-DRELAYPORT=1092 -D
NOBODY=\""nouser"\" udprelay.c -lsocket
udprelay.c: In function `opensocket':
udprelay.c:340: warning: passing arg 2 of `bind' from incompatible
pointer type
udprelay.c:346: warning: passing arg 2 of `getsockname' from
incompatible pointe
r type
udprelay.c: In function `sendtopartner':
udprelay.c:875: warning: passing arg 5 of `sendto' from incompatible
pointer typ
e
udprelay.c: In function `fwdpacketfrom':
udprelay.c:903: warning: passing arg 5 of `recvfrom' from incompatible
pointer t
ype
Undefined first referenced
symbol in file
gethostbyname /var/tmp/cca000VW1.o (symbol
belongs to imp
licit dependency /usr/lib/libnsl.so.1)
gethostbyaddr /var/tmp/cca000VW1.o (symbol
belongs to imp
licit dependency /usr/lib/libnsl.so.1)
inet_addr /var/tmp/cca000VW1.o (symbol
belongs to imp
licit dependency /usr/lib/libnsl.so.1)
inet_ntoa /var/tmp/cca000VW1.o (symbol
belongs to imp
licit dependency /usr/lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to udprelay
*** Error code 1
make: Fatal error: Command failed for target `udprelay'

I'm not a C programmer so I don't really know where to start. Does
anybody have a compiled version for Solaris 2.5.1 (SPARC) that they can
send me? Maybe there's some minor adjustment needed in the source code
to allow it to compile?

If I can get this working I will be able to bring a significant number
of machines online (>20 Pentiums, 2 midsize RS6000's, a buncho
PowerMacs, etc.). Right now I'm cruising along 24 hours a day with a
measly 5 machines (PowerMac 604e/180, PowerMac 604/150, Sun UltraSparc
143, Sun Sparc 20, and Sun Sparc 5).

Thanks,

Bruce