Re: GSoC2007: cnst-sensors.2007-08-20.patch

From: Constantine A. Murenin <cnst_at_FreeBSD.org>
Date: Sat, 25 Aug 2007 23:17:23 -0400
On 25/08/2007 20:08, Harald Schmalzbauer wrote:

> Am Sonntag, 26. August 2007 01:44:47 schrieb Constantine A. Murenin:
> 
>>On 25/08/2007 18:54, Harald Schmalzbauer wrote:
>>
>>>Am Dienstag, 21. August 2007 22:54:22 schrieb Constantine A. Murenin:
>>>
>>>>http://p4web.freebsd.org/depot/projects/soc2007/cnst-sensors/cnst-sensors
>>>>.2 007-08-20.patch
>>>
>>>Thanks a lot for your hard work.
>>>I'd love to test it but the 08-20 patch doesn't cleanly apply to
>>>todays -current in coretemp.
>>>Can you supply a diff to that patch or reroll a new patch?
>>
>>Thanks for testing!
>>
>>The coretemp.c updated to contain the 2007-08-23 change from the CVS
>>(coretemp.c#rev1.2) can be downloaded directly from my perforce branch:
>>
>>http://p4web.freebsd.org/_at_sr=125633_at_//depot/projects/soc2007/cnst-sensors/s
>>ys.dev.coretemp/coretemp.c
> 
> 
> Great, but I have other problems too.
> Compiling world fails here:
> cc -O2 -fno-strict-aliasing -pipe -march=nocona -DINET6  -c /usr/src/usr.bin/systat/sensors.c
> In file included from /usr/src/usr.bin/systat/sensors.c:298:
> /usr/src/usr.bin/systat/systat.h:39: error: redefinition of 'struct cmdtab'
> /usr/src/usr.bin/systat/sensors.c:309: error: redefinition of 'opensensors'
> /usr/src/usr.bin/systat/sensors.c:47: error: previous definition 
> of 'opensensors' was here
> /usr/src/usr.bin/systat/sensors.c:315: error: redefinition of 'closesensors'
> /usr/src/usr.bin/systat/sensors.c:53: error: previous definition 
> of 'closesensors' was here
> /usr/src/usr.bin/systat/sensors.c:325: error: redefinition of 'labelsensors'
> /usr/src/usr.bin/systat/sensors.c:63: error: previous definition 
> of 'labelsensors' was here
> /usr/src/usr.bin/systat/sensors.c:336: error: redefinition of 'fetchsensors'
> /usr/src/usr.bin/systat/sensors.c:74: error: previous definition 
> of 'fetchsensors' was here
> /usr/src/usr.bin/systat/sensors.c:378: error: redefinition of 'drvstat'
> /usr/src/usr.bin/systat/sensors.c:116: error: previous definition of 'drvstat' 
> was here
> /usr/src/usr.bin/systat/sensors.c:386: error: redefinition of 'showsensors'
> /usr/src/usr.bin/systat/sensors.c:124: error: previous definition 
> of 'showsensors' was here
> /usr/src/usr.bin/systat/sensors.c:393: error: redefinition of 'initsensors'
> /usr/src/usr.bin/systat/sensors.c:131: error: previous definition 
> of 'initsensors' was here
> /usr/src/usr.bin/systat/sensors.c:399: error: redefinition of 'printline'
> /usr/src/usr.bin/systat/sensors.c:137: error: previous definition 
> of 'printline' was here
> /usr/src/usr.bin/systat/sensors.c:477: error: redefinition of 'fmttime'
> /usr/src/usr.bin/systat/sensors.c:215: error: previous definition of 'fmttime' 
> was here
> *** Error code 1
> 
> Thanks,
> 
> -Harry

You must have applied the patch twice. There are only 212 lines in 
systat/sensors.c, as is clearly evidenced in the patch:

Index: usr.bin/systat/sensors.c
===================================================================
RCS file: usr.bin/systat/sensors.c
diff -N usr.bin/systat/sensors.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ usr.bin/systat/sensors.c	20 Aug 2007 23:30:32 -0000
_at__at_ -0,0 +1,262 _at__at_

C.
Received on Sun Aug 26 2007 - 01:17:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:16 UTC