Subject: bin/911: remaining ___timersub in src/libexec/rpc.sprayd
To: None <gnats-admin@NetBSD.ORG>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 03/26/1995 14:05:05
>Number: 911
>Category: bin
>Synopsis: remaining ___timersub in src/libexec/rpc.sprayd
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 26 14:05:02 1995
>Originator: Bernd Ernesti
>Organization:
>Release: NetBSD-current 25-03-95
>Environment:
System: NetBSD arresum 1.0A NetBSD 1.0A (VEEGO) #103: Mon Mar 20 11:55:32 MET 1995 root@arresum:/src/sys/arch/amiga/compile/VEEGO amiga
>Description:
after the changes in src/sys/sys/time.h from the 21th there was
left one ___timersub in src/libexec/rpc.sprayd
>How-To-Repeat:
use the new <sys/time.h> and try a make in src/libexec/rpc.sprayd
===> rpc.sprayd
cc -O -c sprayd.c
cc -o rpc.sprayd sprayd.o -lrpcsvc
sprayd.o: Undefined symbol `___timersub' referenced from text segment
*** Error code 1
>Fix:
Try this diff, but I am not shure if the thrid argument is correct
*** sprayd.c-orig Sun Jan 15 13:18:26 1995
--- sprayd.c Sun Mar 26 20:36:37 1995
***************
*** 138,144 ****
case SPRAYPROC_GET:
(void) gettimeofday(&get, 0);
! __timersub(&get, &clear);
scum.clock.sec = get.tv_sec;
scum.clock.usec = get.tv_usec;
break;
--- 138,144 ----
case SPRAYPROC_GET:
(void) gettimeofday(&get, 0);
! timersub(&get, &clear, &get);
scum.clock.sec = get.tv_sec;
scum.clock.usec = get.tv_usec;
break;
>Audit-Trail:
>Unformatted: