Rob,<br><br>I know your busy with your day job so please no rush on this but the latest as of today fails to patch uClibc when building the cross compiler.My host os is Knoppix 6.4.3 dvd(usb boot) which built fd341b09cc27.tar.bz2 without problems as well as your lfs-bootstrap for i686 and armv5l (thanks for the lfs it is awesome).I am posting the output below from when it started to error.<br>
<br>Ken<br>
<br><br><br>Applying /media/sda2/root/tech2k/aboriginal-29e1df07e99a/sources/patches/uClibc-backport-humor-udev.patch<br>patching file libc/sysdeps/linux/common/bits/socket.h<br>Hunk 1 FAILED 53/53. <br>   SOCK_SEQPACKET = 5,        /* Sequenced, reliable, connection-based,<br>

                    datagrams of fixed maximum length.  */<br> #define SOCK_SEQPACKET SOCK_SEQPACKET<br>-  SOCK_PACKET = 10        /* Linux specific way of getting packets<br>+  SOCK_PACKET = 10,        /* Linux specific way of getting packets<br>

                    at the dev level.  For writing rarp and<br>                    other similar things on the user level. */<br> #define SOCK_PACKET SOCK_PACKET<br>+<br>+  /* Flags to be ORed into the type parameter of socket and socketpair and<br>

+     used for the flags parameter of paccept.  */<br>+<br>+  SOCK_CLOEXEC = 02000000,    /* Atomically set close-on-exec flag for the<br>+                   new descriptor(s).  */<br>+#define SOCK_CLOEXEC SOCK_CLOEXEC<br>

+  SOCK_NONBLOCK = 04000        /* Atomically mark descriptor(s) as<br>+                   non-blocking.  */<br>+#define SOCK_NONBLOCK SOCK_NONBLOCK<br> };<br> <br> /* Protocol families.  */<br>patching file include/endian.h<br>

Possibly reversed hunk 1 at 97<br>Hunk 1 FAILED 55/55.<br> # define __LONG_LONG_PAIR(HI, LO) HI, LO<br> #endif<br> <br>+<br>+#ifdef __USE_BSD<br>+/* Conversion interfaces.  */<br>+# include <byteswap.h><br>+<br>+# if __BYTE_ORDER == __LITTLE_ENDIAN<br>

+#  define htobe16(x) __bswap_16 (x)<br>+#  define htole16(x) (x)<br>+#  define be16toh(x) __bswap_16 (x)<br>+#  define le16toh(x) (x)<br>+<br>+#  define htobe32(x) __bswap_32 (x)<br>+#  define htole32(x) (x)<br>+#  define be32toh(x) __bswap_32 (x)<br>

+#  define le32toh(x) (x)<br>+<br>+#  define htobe64(x) __bswap_64 (x)<br>+#  define htole64(x) (x)<br>+#  define be64toh(x) __bswap_64 (x)<br>+#  define le64toh(x) (x)<br>+# else<br>+#  define htobe16(x) (x)<br>+#  define htole16(x) __bswap_16 (x)<br>

+#  define be16toh(x) (x)<br>+#  define le16toh(x) __bswap_16 (x)<br>+<br>+#  define htobe32(x) (x)<br>+#  define htole32(x) __bswap_32 (x)<br>+#  define be32toh(x) (x)<br>+#  define le32toh(x) __bswap_32 (x)<br>+<br>+#  define htobe64(x) (x)<br>

+#  define htole64(x) __bswap_64 (x)<br>+#  define be64toh(x) (x)<br>+#  define le64toh(x) __bswap_64 (x)<br>+# endif<br>+#endif<br>+<br> #endif    /* endian.h */<br>patching file libc/sysdeps/linux/common/inotify.c<br>Possibly reversed hunk 1 at 29<br>

Hunk 1 FAILED 15/15.<br> _syscall0(int, inotify_init)<br> #endif<br> <br>+#ifdef __NR_inotify_init1<br>+_syscall1(int, inotify_init1, int, flags)<br>+#endif<br>+<br> #ifdef __NR_inotify_add_watch<br> _syscall3(int, inotify_add_watch, int, fd, const char *, path, uint32_t, mask)<br>

 #endif<br>patching file libc/sysdeps/linux/common/sys/inotify.h<br>Possibly reversed hunk 1 at 106<br>Hunk 1 FAILED 22/22.<br> #include <stdint.h><br> <br> <br>+/* Flags for the parameter of inotify_init1.  */<br>
+enum<br>
+  {<br>+    IN_CLOEXEC = 02000000,<br>+#define IN_CLOEXEC IN_CLOEXEC<br>+    IN_NONBLOCK = 04000<br>+#define IN_NONBLOCK IN_NONBLOCK<br>+  };<br>+<br>+<br> /* Structure describing an inotify event.  */<br> struct inotify_event<br>

 {<br>Applying /media/sda2/root/tech2k/aboriginal-29e1df07e99a/sources/patches/uClibc-fix-arm-unwind-001.patch<br>patching file libc/sysdeps/linux/arm/Makefile.arch<br>Applying /media/sda2/root/tech2k/aboriginal-29e1df07e99a/sources/patches/uClibc-fix-arm-unwind-002.patch<br>

patching file libc/sysdeps/linux/arm/aeabi_unwind_cpp_pr1.c<br>Applying /media/sda2/root/tech2k/aboriginal-29e1df07e99a/sources/patches/uClibc-fix-fcntl64.patch<br>patching file include/fcntl.h<br>Hunk 1 FAILED 73/73.<br>

 <br>    This function is a cancellation point and therefore not marked with<br>    __THROW.  */<br>-#ifndef __USE_FILE_OFFSET64<br>+#if !defined(__USE_FILE_OFFSET64) || defined(__LP64__)<br> extern int fcntl (int __fd, int __cmd, ...);<br>

 libc_hidden_proto(fcntl)<br> #else<br>Applying /media/sda2/root/tech2k/aboriginal-29e1df07e99a/sources/patches/uClibc-fixintlassert.patch<br>patching file libc/misc/wchar/wchar.c<br>Hunk 1 FAILED 286/286.<br>         s = empty_string;<br>

         n = 1;<br>     } else if (*s == '\0') {<br>+        if (pwc) *pwc = 0;<br>     /* According to the ISO C 89 standard this is the expected behaviour.  */<br>         return 0;<br>     } else if (!n) {<br>
Applying /media/sda2/root/tech2k/aboriginal-29e1df07e99a/sources/patches/uClibc-fixlocalestruct.patch<br>
patching file libc/sysdeps/linux/common/bits/uClibc_locale.h<br>Applying /media/sda2/root/tech2k/aboriginal-29e1df07e99a/sources/patches/uClibc-fixm68k.patch<br>patching file Rules.mak<br>Applying /media/sda2/root/tech2k/aboriginal-29e1df07e99a/sources/patches/uClibc-futimes.patch<br>

patching file include/sys/time.h<br>Hunk 1 FAILED 143/143.<br> /* Same as `utimes', but does not follow symbolic links.  */<br> extern int lutimes (__const char *__file, __const struct timeval __tvp[2])<br>      __THROW __nonnull ((1));<br>

+#endif<br> <br>+#ifdef __USE_BSD<br> /* Same as `utimes', but takes an open file descriptor instead of a name.  */<br> extern int futimes (int __fd, __const struct timeval __tvp[2]) __THROW;<br> #endif<br>creating libc/sysdeps/linux/common/futimes.c<br>

Applying /media/sda2/root/tech2k/aboriginal-29e1df07e99a/sources/patches/uClibc-mips64.patch<br>patching file ldso/ldso/mips/elfinterp.c<br>Hunk 1 FAILED 172/172.<br>     for (i = 0; i < rel_size; i++, rpnt++) {<br>         reloc_addr = (unsigned long *) (tpnt->loadaddr +<br>

             (unsigned long) rpnt->r_offset);<br>-        reloc_type = ELF32_R_TYPE(rpnt->r_info);<br>-        symtab_index = ELF32_R_SYM(rpnt->r_info);<br>+        reloc_type = ELF_R_TYPE(rpnt->r_info);<br>+        symtab_index = ELF_R_SYM(rpnt->r_info);<br>

         symbol_addr = 0;<br> <br>         debug_sym(symtab,strtab,symtab_index);<br>Applying /media/sda2/root/tech2k/aboriginal-29e1df07e99a/sources/patches/uClibc-ruserpass.patch<br>patching file include/netdb.h<br>patching file libc/inet/rpc/rexec.c<br>

patching file libc/inet/rpc/ruserpass.c<br>Applying /media/sda2/root/tech2k/aboriginal-29e1df07e99a/sources/patches/uClibc-schedparam.patch<br>patching file libc/sysdeps/linux/common/bits/sched.h<br><br>Exiting due to errors (i586 simple-cross-compiler uClibc)<br>

<br><br>