dhcp-3.0.2 with gcc-3.4.3

Ken Moffat ken at kenmoffat.uklinux.net
Mon Apr 18 17:41:16 PDT 2005

Updated version of Michael Labuschke's patch for 3.0.1, based on
comments in the redhat bugzilla.  See blfs bug 1313 for alternative
methods of resolving this issue.

 das eine Mal als Tragödie, das andere Mal als Farce
-------------- next part --------------
Submitted By: Ken Moffat (ken at kenmoffat dot uklinux dot net)
Date: 2005-04-19
Initial Package Version: 3.0.2
Upstream Status: Not Submitted (works around a gcc-3.4.3 bug)
Origin: Based on Michael Labuschke's patch for version 3.0.1,
"error: mode `byte' applied to inappropriate type"
but modified based on a comment from Jakub Jelinek in

The correct fix will be to use gcc-3.4.4 when that is released, but in
the meantime LFS-6.1 is using 3.4.3.  See also BLFS bug 1313.

diff -Naur dhcp-3.0.2.orig/includes/dhcpd.h dhcp-3.0.2/includes/dhcpd.h
--- dhcp-3.0.2.orig/includes/dhcpd.h	2004-11-24 17:39:16.000000000 +0000
+++ dhcp-3.0.2/includes/dhcpd.h	2005-04-18 21:28:16.000000000 +0100
@@ -306,9 +306,9 @@
-	binding_state_t __attribute__ ((mode (__byte__))) binding_state;
-	binding_state_t __attribute__ ((mode (__byte__))) next_binding_state;
-	binding_state_t __attribute__ ((mode (__byte__))) desired_binding_state;
+	uint8_t binding_state;
+	uint8_t next_binding_state;
+	uint8_t desired_binding_state;
 	struct lease_state *state;

More information about the patches mailing list