I'm glad you found the problem with your build! =20
On Tue, 29 Oct 2002, [ISO-8859-1] Fr=E9d=E9ric L. W. Meunier wrote:
> On Tue, 29 Oct 2002, Bruce Allen wrote:
> > > BTW, I'm using CVS, but with tagged releases:
> > >
> > > RELEASE_5_0_11 and RELEASE_5_0_16
> > Do you have an older 2.2 kernel? Strange compiler? Anything
> > non-standard? You just did "make"?
> 2.4.19, GCC 3.2, glibc 2.2.5. Nothing non-standard. The only
> change was the addition of -s to the Makefile.
Which just strips the symbol table, right? Though since I don't have -g,
there may not have been a symbol table to start with.
> I think I found the problem. Apparently my GCC 3.2 or something
> miscompiles it. I recompiled 5.0-16 with it but removed -s:
> And smartctl -a /dev/hda now reports (it's a diff against my
> old run with the same version compiled with GCC 3.2):
> SMART overall-health self-assessment test result: PASSED
> -See vendor-specific Attribute list for marginal Attributes.
> -SMART Attributes Data Structure revision number: 22816
> +SMART Attributes Data Structure revision number: 11
> - 5 Reallocated_Sector_Ct 0x2008 117 005 020 Old_age In_the_=
> + 1 Raw_Read_Error_Rate 0x0029 100 253 020 Pre-fail - =
> -SMART Error Log Version: 3
> +SMART Error Log Version: 1
> -SMART Self-test log, version number 3
> +SMART Self-test log, version number 1
> -Warning - structure revision number does not match spec!
> Num Test_Description Status Remaining LifeTime(hour=
> -# 1 Off-line Completed 00% 31520 =
> +# 1 Short off-line Completed 00% 4924
I wonder if this is my fault -- I am thinking of one thing in particular;
a place in the code where byte alignment might be causing problems....
First, could you try fixing the following include file that is perhaps
still broken on your machine (the patch sas sent to the kernel tree on Oct
10th. Then recompile yet again?
--- linux/include/linux/hdreg.h.orig Thu Oct 10 08:40:22 2002
+++ linux/include/linux/hdreg.h Mon Oct 21 17:40:47 2002
@@ -626,9 +626,9 @@
- unsigned short words161_175;/* Reserved for CFA */
- unsigned short words176_205;/* Current Media Serial Number */
- unsigned short words206_254;/* reserved words 206-254 */
+ unsigned short words161_175;/* Reserved for CFA */
+ unsigned short words176_205;/* Current Media Serial Number */
+ unsigned short words206_254;/* reserved words 206-254 */
unsigned short integrity_word; /* (word 255)
* 15:8 Checksum
* 7:0 Signature
> I tried your 5.0-16 rpm before recompiling them (yes, I
> renamed smartd):
> Oct 29 17:11:03 pervalidus smartd-16.bin: smartd version 5.0-16 - S.M.A.R=
> Oct 29 17:11:03 pervalidus smartd-16.bin: Home page is http://smartmontoo=
> Oct 29 17:11:03 pervalidus smartd-16.bin: Using configuration file /etc/s=
> Oct 29 17:11:03 pervalidus smartd-16.bin: Opening device /dev/hda
> Oct 29 17:11:03 pervalidus smartd-16.bin: /dev/hda Found and is SMART cap=
able. Adding to "monitor" list.
> Oct 29 17:11:03 pervalidus smartd-16.bin: Started monitoring 1 ATA and 0 =
> Your binaries: GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.3 2.96-112)
> I also tried the Slackware 5.0-10 smartd, which was compiled
> with GCC 3.2, and it runs fine.
OK, I will sleep a bit better tonight...