Re: Compiling sign.c

From: Anyone but me (myers@indy.net)
Date: 08/13/95


> --=====================_808109465==_
> Content-Type: text/plain; charset="us-ascii"
> 
> I have recently downloaded 3.0 code and the new sign.c program in the util
> directory doesn't seem to like my SunOS system.  It compiles fine on
> BSD/386, but here is a script that I made out.  Please tell me what could be
> the problem here.  Oh, BTW, it is a SunOS System V rel 4.0.


Compile with the socket library...
Like:  gcc utils/sign.c -o bin/sign -lsocket
  
> 
> 
> --=====================_808109465==_
> Content-Type: text/plain; charset="us-ascii"
> 
> Script started on Thu Aug 10 20:12:44 1995
> bash$ make sign
> make ../bin/sign
> gcc -g -Wall  -o ../bin/sign  util/sign.c
> util/sign.c: In function `init_socket':
> util/sign.c:79: warning: passing arg 4 of `setsockopt' from incompatible pointer type
> util/sign.c: At top level:
> util/sign.c:134: warning: return-type defaults to `int'
> util/sign.c: In function `reap':
> util/sign.c:138: warning: passing arg 2 of `signal' from incompatible pointer type
> util/sign.c:139: warning: control reaches end of non-void function
> util/sign.c: In function `main':
> util/sign.c:160: warning: passing arg 2 of `signal' from incompatible pointer type
> Undefined                       first referenced
>  symbol                             in file
> socket                              /var/tmp/cca0029C1.o
> accept                              /var/tmp/cca0029C1.o
> bind                                /var/tmp/cca0029C1.o
> setsockopt                          /var/tmp/cca0029C1.o
> listen                              /var/tmp/cca0029C1.o
> ld: fatal: Symbol referencing errors. No output written to ../bin/sign
> *** Error code 1
> make: Fatal error: Command failed for target `../bin/sign'
> Current working directory /home/freyj/circle/src
> *** Error code 1
> make: Fatal error: Command failed for target `sign'
> bash$ uname
> SunOS
> bash$ exit
> exit
> 
> script done on Thu Aug 10 20:13:28 1995
> 
> --=====================_808109465==_
> Content-Type: text/plain; charset="us-ascii"
> 
> 
> --=====================_808109465==_--
> 
> 



This archive was generated by hypermail 2b30 : 12/18/00 PST