Hi Fr=E9d=E9ric,
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:
>=20
> > > 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"?
>=20
> 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):
>=20
> SMART overall-health self-assessment test result: PASSED
> -See vendor-specific Attribute list for marginal Attributes.
>=20
> -SMART Attributes Data Structure revision number: 22816
> +SMART Attributes Data Structure revision number: 11
>=20
> - 5 Reallocated_Sector_Ct 0x2008 117 005 020 Old_age In_the_=
past 847118427
>=20
> + 1 Raw_Read_Error_Rate 0x0029 100 253 020 Pre-fail - =
0
>=20
> -SMART Error Log Version: 3
> +SMART Error Log Version: 1
>=20
> -SMART Self-test log, version number 3
> +SMART Self-test log, version number 1
> -Warning - structure revision number does not match spec!
>=20
> Num Test_Description Status Remaining LifeTime(hour=
s) LBA_of_first_error
> -# 1 Off-line Completed 00% 31520 =
0x327e0008
> +# 1 Short off-line Completed 00% 4924
Very nice!
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....
hmm. =20
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 @@
* 12
* 11:0
*/
- unsigned short words161_175[14];/* Reserved for CFA */
- unsigned short words176_205[31];/* Current Media Serial Number */
- unsigned short words206_254[48];/* reserved words 206-254 */
+ unsigned short words161_175[15];/* Reserved for CFA */
+ unsigned short words176_205[30];/* Current Media Serial Number */
+ unsigned short words206_254[49];/* 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):
>=20
> Oct 29 17:11:03 pervalidus smartd-16.bin: smartd version 5.0-16 - S.M.A.R=
=2ET. Daemon.
> Oct 29 17:11:03 pervalidus smartd-16.bin: Home page is http://smartmontoo=
ls.sourceforge.net/
> Oct 29 17:11:03 pervalidus smartd-16.bin: Using configuration file /etc/s=
martd.conf
> 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 =
SCSI devices
>=20
> Your binaries: GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.3 2.96-112)
>=20
> 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...
Bruce
|