Skip to contentSkip to conversation

Problems compiling hdparm with string.h (2.4.x)

DISCUSSION Gregor Jasny 2 participants 2 messages Feb 1, 2001

lore
Share & tools
lore
#0 lore raw

I've just tried to compile hdparm v3.9 with a vanilla 2.4.1 tree. Gcc complained about serveral parse errors in /usr/include/linux/string.h. Compiling with an >=ac6 release works fine.
Why isn't the little string.h fix not included in 2.4.1?

Regards, Gregor

PS: Is this normal: (ac-12, 1xPIII, iBX , IO-, UP- and LOCAL-APIC=y) /proc/interrupts
CPU0

  0:    9997185          XT-PIC  timer
  1:      51952          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  7:     482976          XT-PIC  parport0
  9:    8270642          XT-PIC  eth0, EMU10K1
 10:     932284          XT-PIC  bttv
 12:     930300          XT-PIC  PS/2 Mouse
 14:      77025          XT-PIC  ide0
 15:          4          XT-PIC  ide1
NMI:    9995269
LOC:    9996969
ERR:          0

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#1 lore raw
	Hi!
Quoted 6 lines

I've just tried to compile hdparm v3.9 with a vanilla 2.4.1 tree. Gcc complained about serveral parse errors in /usr/include/linux/string.h. Compiling with an >=ac6 release works fine.
Why isn't the little string.h fix not included in 2.4.1?

Regards, Gregor

Consider this little patch to hdparm-3.9

Cheers,
Vita

hdparm.c +1 -1
diff -urN hdparm-3.9.orig/hdparm.c hdparm-3.9/hdparm.c
@@ -16,7 +16,7 @@
 #include <sys/times.h>
 #include <sys/types.h>
 #include <linux/hdreg.h>
-#include <linux/fs.h>
+#include <sys/mount.h>
 #include <linux/major.h>
 
 #define VERSION "v3.9"

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/