Scotty under Solaris 2?

Andrew Donkin (ard@borg.cs.waikato.ac.nz)
Sun, 20 Mar 1994 12:39:13 +1200

Hi all. Has anyone successfully built and used Scotty-0.9 on a Solaris 2.3
(SunOS 5.3) machine? This is the problem I'm having:

#--------------- 8< -------------------------
cc -c -O -I. -I/usr/local/include -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MALLOC_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SELECT=1 -DNEED_USLEEP=1 -DNO_CLNT_CREATE=1 -DNO_RPCENT=1 -DHAVE_SNMP=1 -DHAVE_ICMP=1 -DHAVE_DNS=1 -DHAVE_RPC=1 -DHAVE_TCP=1 -DHAVE_SEL
"./scotty.h", line 114: identifier redeclared: rpc_call
"sunrpc.c", line 346: warning: improper pointer/integer combination: op "="
"sunrpc.c", line 392: warning: improper pointer/integer combination: op "="
"sunrpc.c", line 396: warning: improper pointer/integer combination: op "="
cc: acomp failed for sunrpc.c
make: *** [sunrpc.o] Error 1
#--------------- 8< -------------------------

I've tried with gcc, which reports the same problem. Apparantly "rpc_call"
is also defined in "/usr/include/rpc/clnt.h." If I take the definition of
"rpc_call" out of "scotty.h" the build breaks further down the line.

Before I start stirring about in code about which I know nothing, can
anyone give me some educated help?

All assistance gratefully received -

,------------------------------------------------------------------------,
| Andrew Donkin - ard@cs.waikato.ac.nz |
| Department of Computer Science, University of Waikato |
`------------------------------------------------------------------------'