[lfs-support] e2fsprogs make error

Sandeep Singh mrigtrishna74 at gmail.com
Mon Jun 22 10:43:26 PDT 2015


Hello,

I am using Arch linux as the host system and version 7.7 of the LFS book.
The check commands after gcc build in 6.17 came out spot on.
Now while making e2fsprogs I am getting this error

./../../lib/ext2fs/closefs.c:1:3: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
In file included from /tools/include/stdio.h:74:0,
                 from ../../../lib/ext2fs/closefs.c:26:
/tools/include/libio.h:306:3: error: unknown type name 'size_t'
   size_t __pad5;
   ^
/tools/include/libio.h:310:67: error: 'size_t' undeclared here (not in a
function)
   char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
                                                                   ^
/tools/include/libio.h:338:62: error: expected declaration specifiers or
'...' before 'size_t'
 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t
__nbytes);
                                                              ^
/tools/include/libio.h:347:6: error: expected declaration specifiers or
'...' before 'size_t'
      size_t __n);
      ^
/tools/include/libio.h:363:9: error: unknown type name '__io_read_fn'
 typedef __io_read_fn cookie_read_function_t;
         ^
/tools/include/libio.h:364:9: error: unknown type name '__io_write_fn'
 typedef __io_write_fn cookie_write_function_t;
         ^
/tools/include/libio.h:371:3: error: unknown type name '__io_read_fn'
   __io_read_fn *read;  /* Read bytes.  */
   ^
/tools/include/libio.h:372:3: error: unknown type name '__io_write_fn'
   __io_write_fn *write;  /* Write bytes.  */
   ^
/tools/include/libio.h:469:19: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '_IO_sgetn'
 extern _IO_size_t _IO_sgetn (_IO_FILE *, void *, _IO_size_t);
                   ^
In file included from ../../../lib/ext2fs/closefs.c:26:0:
/tools/include/stdio.h:319:35: error: expected declaration specifiers or
'...' before 'size_t'
 extern FILE *fmemopen (void *__s, size_t __len, const char *__modes)
                                   ^
/tools/include/stdio.h:325:47: error: expected declaration specifiers or
'...' before 'size_t'
 extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __THROW
__wur;
                                               ^
/tools/include/stdio.h:337:20: error: expected declaration specifiers or
'...' before 'size_t'
       int __modes, size_t __n) __THROW;
                    ^
/tools/include/stdio.h:344:10: error: expected declaration specifiers or
'...' before 'size_t'
          size_t __size) __THROW;
          ^
/tools/include/stdio.h:386:44: error: expected declaration specifiers or
'...' before 'size_t'
 extern int snprintf (char *__restrict __s, size_t __maxlen,
                                            ^
/tools/include/stdio.h:390:45: error: expected declaration specifiers or
'...' before 'size_t'
 extern int vsnprintf (char *__restrict __s, size_t __maxlen,
                                             ^
/tools/include/stdio.h:666:11: error: expected declaration specifiers or
'...' before 'size_t'
           size_t *__restrict __n, int __delimiter,
           ^
/tools/include/stdio.h:669:9: error: expected declaration specifiers or
'...' before 'size_t'
         size_t *__restrict __n, int __delimiter,
         ^
/tools/include/stdio.h:679:8: error: expected declaration specifiers or
'...' before 'size_t'
        size_t *__restrict __n,
        ^
/tools/include/stdio.h:709:15: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'fread'
 extern size_t fread (void *__restrict __ptr, size_t __size,
               ^
/tools/include/stdio.h:715:15: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'fwrite'
 extern size_t fwrite (const void *__restrict __ptr, size_t __size,
               ^
/tools/include/stdio.h:737:15: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'fread_unlocked'
 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
               ^
/tools/include/stdio.h:739:15: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'fwrite_unlocked'
 extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size,
               ^
../../../lib/ext2fs/closefs.c:27:3: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
In file included from ../../../lib/ext2fs/closefs.c:30:0:
/tools/include/unistd.h:360:45: error: expected declaration specifiers or
'...' before 'size_t'
 extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur;
                                             ^
/tools/include/unistd.h:366:52: error: expected declaration specifiers or
'...' before 'size_t'
 extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur;
                                                    ^
/tools/include/unistd.h:376:46: error: expected declaration specifiers or
'...' before 'size_t'
 extern ssize_t pread (int __fd, void *__buf, size_t __nbytes,
                                              ^
/tools/include/unistd.h:384:53: error: expected declaration specifiers or
'...' before 'size_t'
 extern ssize_t pwrite (int __fd, const void *__buf, size_t __n,
                                                     ^
/tools/include/unistd.h:404:48: error: expected declaration specifiers or
'...' before 'size_t'
 extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes,
                                                ^
/tools/include/unistd.h:408:55: error: expected declaration specifiers or
'...' before 'size_t'
 extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n,
                                                       ^
/tools/include/unistd.h:511:35: error: expected declaration specifiers or
'...' before 'size_t'
 extern char *getcwd (char *__buf, size_t __size) __THROW __wur;
                                   ^
In file included from ../../../lib/ext2fs/closefs.c:30:0:
/tools/include/unistd.h:623:15: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'confstr'
 extern size_t confstr (int __name, char *__buf, size_t __len) __THROW;
               ^
/tools/include/unistd.h:774:46: error: expected declaration specifiers or
'...' before 'size_t'
 extern int ttyname_r (int __fd, char *__buf, size_t __buflen)
                                              ^
/tools/include/unistd.h:810:29: error: expected declaration specifiers or
'...' before 'size_t'
     char *__restrict __buf, size_t __len)
                             ^
/tools/include/unistd.h:821:31: error: expected declaration specifiers or
'...' before 'size_t'
       char *__restrict __buf, size_t __len)
                               ^
/tools/include/unistd.h:857:38: error: expected declaration specifiers or
'...' before 'size_t'
 extern int getlogin_r (char *__name, size_t __name_len) __nonnull ((1));
                                      ^
In file included from ../../../lib/ext2fs/closefs.c:30:0:
/tools/include/unistd.h:879:39: error: expected declaration specifiers or
'...' before 'size_t'
 extern int gethostname (char *__name, size_t __len) __THROW __nonnull
((1));
                                       ^
/tools/include/unistd.h:886:45: error: expected declaration specifiers or
'...' before 'size_t'
 extern int sethostname (const char *__name, size_t __len)
                                             ^
/tools/include/unistd.h:897:41: error: expected declaration specifiers or
'...' before 'size_t'
 extern int getdomainname (char *__name, size_t __len)
                                         ^
/tools/include/unistd.h:899:47: error: expected declaration specifiers or
'...' before 'size_t'
 extern int setdomainname (const char *__name, size_t __len)
                                               ^
/tools/include/unistd.h:917:57: error: expected declaration specifiers or
'...' before 'size_t'
 extern int profil (unsigned short int *__sample_buffer, size_t __size,
                                                         ^
/tools/include/unistd.h:918:6: error: expected declaration specifiers or
'...' before 'size_t'
      size_t __offset, unsigned int __scale)
      ^
../../../lib/ext2fs/closefs.c:31:3: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
In file included from /tools/include/bits/time.h:88:0,
                 from /tools/include/time.h:41,
                 from ../../../lib/ext2fs/closefs.c:34:
/tools/include/bits/timex.h:36:18: error: field 'time' has incomplete type
   struct timeval time;  /* (read only) */
                  ^
In file included from ../../../lib/ext2fs/closefs.c:34:0:
/tools/include/time.h:205:15: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'strftime'
 extern size_t strftime (char *__restrict __s, size_t __maxsize,
               ^
In file included from ../../../lib/ext2fs/closefs.c:34:0:
/tools/include/time.h:223:15: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'strftime_l'
 extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
               ^
../../../lib/ext2fs/closefs.c:35:3: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
In file included from ../../../lib/ext2fs/closefs.c:36:0:
/tools/include/string.h:50:56: error: expected declaration specifiers or
'...' before 'size_t'
 extern void *memmove (void *__dest, const void *__src, size_t __n)
                                                        ^
/tools/include/string.h:59:18: error: expected declaration specifiers or
'...' before 'size_t'
         int __c, size_t __n)
                  ^
/tools/include/string.h:66:42: error: expected declaration specifiers or
'...' before 'size_t'
 extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull
((1));
                                          ^
/tools/include/string.h:69:56: error: expected declaration specifiers or
'...' before 'size_t'
 extern int memcmp (const void *__s1, const void *__s2, size_t __n)
                                                        ^
/tools/include/string.h:96:48: error: expected declaration specifiers or
'...' before 'size_t'
 extern void *memchr (const void *__s, int __c, size_t __n)
                                                ^
/tools/include/string.h:121:49: error: expected declaration specifiers or
'...' before 'size_t'
 extern void *memrchr (const void *__s, int __c, size_t __n)
                                                 ^
/tools/include/string.h:133:39: error: expected declaration specifiers or
'...' before 'size_t'
         const char *__restrict __src, size_t __n)
                                       ^
/tools/include/string.h:141:9: error: expected declaration specifiers or
'...' before 'size_t'
         size_t __n) __THROW __nonnull ((1, 2));
         ^
/tools/include/string.h:147:57: error: expected declaration specifiers or
'...' before 'size_t'
 extern int strncmp (const char *__s1, const char *__s2, size_t __n)
                                                         ^
/tools/include/string.h:154:15: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'strxfrm'
 extern size_t strxfrm (char *__restrict __dest,
               ^
/tools/include/string.h:169:15: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'strxfrm_l'
 extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n,
               ^
/tools/include/string.h:183:45: error: expected declaration specifiers or
'...' before 'size_t'
 extern char *strndup (const char *__string, size_t __n)
                                             ^
/tools/include/string.h:284:15: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'strcspn'
 extern size_t strcspn (const char *__s, const char *__reject)
               ^
/tools/include/string.h:288:15: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'strspn'
 extern size_t strspn (const char *__s, const char *__accept)
               ^
/tools/include/string.h:381:46: error: expected declaration specifiers or
'...' before 'size_t'
 extern void *memmem (const void *__haystack, size_t __haystacklen,
                                              ^
/tools/include/string.h:382:30: error: expected declaration specifiers or
'...' before 'size_t'
        const void *__needle, size_t __needlelen)
                              ^
/tools/include/string.h:388:34: error: expected declaration specifiers or
'...' before 'size_t'
    const void *__restrict __src, size_t __n)
                                  ^
/tools/include/string.h:391:39: error: expected declaration specifiers or
'...' before 'size_t'
         const void *__restrict __src, size_t __n)
                                       ^
/tools/include/string.h:398:15: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'strlen'
 extern size_t strlen (const char *__s)
               ^
/tools/include/string.h:405:15: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'strnlen'
 extern size_t strnlen (const char *__string, size_t __maxlen)
               ^
/tools/include/string.h:437:53: error: expected declaration specifiers or
'...' before 'size_t'
 extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
                                                     ^
/tools/include/string.h:450:33: error: expected declaration specifiers or
'...' before 'size_t'
 extern void __bzero (void *__s, size_t __n) __THROW __nonnull ((1));
                                 ^
/tools/include/string.h:454:53: error: expected declaration specifiers or
'...' before 'size_t'
 extern void bcopy (const void *__src, void *__dest, size_t __n)
                                                     ^
/tools/include/string.h:458:31: error: expected declaration specifiers or
'...' before 'size_t'
 extern void bzero (void *__s, size_t __n) __THROW __nonnull ((1));
                               ^
/tools/include/string.h:461:54: error: expected declaration specifiers or
'...' before 'size_t'
 extern int bcmp (const void *__s1, const void *__s2, size_t __n)
                                                      ^
/tools/include/string.h:537:61: error: expected declaration specifiers or
'...' before 'size_t'
 extern int strncasecmp (const char *__s1, const char *__s2, size_t __n)
                                                             ^
/tools/include/string.h:549:6: error: expected declaration specifiers or
'...' before 'size_t'
      size_t __n, __locale_t __loc)
      ^
/tools/include/string.h:574:34: error: expected declaration specifiers or
'...' before 'size_t'
    const char *__restrict __src, size_t __n)
                                  ^
/tools/include/string.h:577:39: error: expected declaration specifiers or
'...' before 'size_t'
         const char *__restrict __src, size_t __n)
                                       ^
/tools/include/string.h:590:34: error: expected declaration specifiers or
'...' before 'size_t'
 extern void *memfrob (void *__s, size_t __n) __THROW __nonnull ((1));
                                  ^
../../../lib/ext2fs/closefs.c:37:3: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
In file included from ../../../lib/ext2fs/closefs.c:40:0:
../../../lib/ext2fs/ext2_fs.h:213:2: error: unknown type name '__u8'
  __u8 hash_version; /* 0 now, 1 at release */
  ^
../../../lib/ext2fs/ext2_fs.h:214:2: error: unknown type name '__u8'
  __u8 info_length; /* 8 */
  ^
../../../lib/ext2fs/ext2_fs.h:215:2: error: unknown type name '__u8'
  __u8 indirect_levels;
  ^
../../../lib/ext2fs/ext2_fs.h:216:2: error: unknown type name '__u8'
  __u8 unused_flags;
  ^
../../../lib/ext2fs/ext2_fs.h:396:4: error: unknown type name '__u8'
    __u8 h_i_frag; /* Fragment number */
    ^
../../../lib/ext2fs/ext2_fs.h:397:4: error: unknown type name '__u8'
    __u8 h_i_fsize; /* Fragment size */
    ^
../../../lib/ext2fs/ext2_fs.h:444:4: error: unknown type name '__u8'
    __u8 h_i_frag; /* Fragment number */
    ^
../../../lib/ext2fs/ext2_fs.h:445:4: error: unknown type name '__u8'
    __u8 h_i_fsize; /* Fragment size */
    ^
../../../lib/ext2fs/ext2_fs.h:591:2: error: unknown type name '__u8'
  __u8 s_uuid[16];  /* 128-bit uuid for volume */
  ^
../../../lib/ext2fs/ext2_fs.h:599:2: error: unknown type name '__u8'
  __u8 s_prealloc_blocks; /* Nr of blocks to try to preallocate*/
  ^
../../../lib/ext2fs/ext2_fs.h:600:2: error: unknown type name '__u8'
  __u8 s_prealloc_dir_blocks; /* Nr to preallocate for dirs */
  ^
../../../lib/ext2fs/ext2_fs.h:605:2: error: unknown type name '__u8'
  __u8 s_journal_uuid[16]; /* uuid of journal superblock */
  ^
../../../lib/ext2fs/ext2_fs.h:610:2: error: unknown type name '__u8'
  __u8 s_def_hash_version; /* Default hash version to use */
  ^
../../../lib/ext2fs/ext2_fs.h:611:2: error: unknown type name '__u8'
  __u8 s_jnl_backup_type;  /* Default type of journal backup */
  ^
../../../lib/ext2fs/ext2_fs.h:627:2: error: unknown type name '__u8'
  __u8 s_log_groups_per_flex; /* FLEX_BG group size */
  ^
../../../lib/ext2fs/ext2_fs.h:628:2: error: unknown type name '__u8'
  __u8    s_reserved_char_pad;
  ^
../../../lib/ext2fs/ext2_fs.h:641:2: error: unknown type name '__u8'
  __u8 s_first_error_func[32]; /* function where the error happened */
  ^
../../../lib/ext2fs/ext2_fs.h:647:2: error: unknown type name '__u8'
  __u8 s_last_error_func[32]; /* function where the error happened */
  ^
../../../lib/ext2fs/ext2_fs.h:649:2: error: unknown type name '__u8'
  __u8 s_mount_opts[64];
  ^
../../../lib/ext2fs/ext2_fs.h:788:2: error: unknown type name '__u8'
  __u8 name_len;  /* Name length */
  ^
../../../lib/ext2fs/ext2_fs.h:789:2: error: unknown type name '__u8'
  __u8 file_type;
  ^
../../../lib/ext2fs/closefs.c:41:3: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
In file included from ../../../lib/ext2fs/ext2fs.h:55:0,
                 from ../../../lib/ext2fs/ext2fsP.h:12,
                 from ../../../lib/ext2fs/closefs.c:42:
/tools/include/stdlib.h:139:15: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__ctype_get_mb_cur_max'
 extern size_t __ctype_get_mb_cur_max (void) __THROW __wur;
               ^
/tools/include/stdlib.h:331:4: error: expected declaration specifiers or
'...' before 'size_t'
    size_t __statelen) __THROW __nonnull ((2));
    ^
/tools/include/stdlib.h:361:4: error: expected declaration specifiers or
'...' before 'size_t'
    size_t __statelen,
    ^
/tools/include/stdlib.h:466:22: error: expected declaration specifiers or
'...' before 'size_t'
 extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
                      ^
/tools/include/stdlib.h:468:22: error: expected declaration specifiers or
'...' before 'size_t'
 extern void *calloc (size_t __nmemb, size_t __size)
                      ^
/tools/include/stdlib.h:468:38: error: expected declaration specifiers or
'...' before 'size_t'
 extern void *calloc (size_t __nmemb, size_t __size)
                                      ^
/tools/include/stdlib.h:480:36: error: expected declaration specifiers or
'...' before 'size_t'
 extern void *realloc (void *__ptr, size_t __size)
                                    ^
In file included from /tools/include/stdlib.h:492:0,
                 from ../../../lib/ext2fs/ext2fs.h:55,
                 from ../../../lib/ext2fs/ext2fsP.h:12,
                 from ../../../lib/ext2fs/closefs.c:42:
/tools/include/alloca.h:32:22: error: expected declaration specifiers or
'...' before 'size_t'
 extern void *alloca (size_t __size) __THROW;
                      ^
In file included from ../../../lib/ext2fs/ext2fs.h:55:0,
                 from ../../../lib/ext2fs/ext2fsP.h:12,
                 from ../../../lib/ext2fs/closefs.c:42:
/tools/include/stdlib.h:498:22: error: expected declaration specifiers or
'...' before 'size_t'
 extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur;
                      ^
/tools/include/stdlib.h:503:45: error: expected declaration specifiers or
'...' before 'size_t'
 extern int posix_memalign (void **__memptr, size_t __alignment, size_t
__size)
                                             ^
/tools/include/stdlib.h:503:65: error: expected declaration specifiers or
'...' before 'size_t'
 extern int posix_memalign (void **__memptr, size_t __alignment, size_t
__size)
                                                                 ^
/tools/include/stdlib.h:509:29: error: expected declaration specifiers or
'...' before 'size_t'
 extern void *aligned_alloc (size_t __alignment, size_t __size)
                             ^
/tools/include/stdlib.h:509:49: error: expected declaration specifiers or
'...' before 'size_t'
 extern void *aligned_alloc (size_t __alignment, size_t __size)
                                                 ^
/tools/include/stdlib.h:755:9: error: expected declaration specifiers or
'...' before 'size_t'
         size_t __nmemb, size_t __size, __compar_fn_t __compar)
         ^
/tools/include/stdlib.h:755:25: error: expected declaration specifiers or
'...' before 'size_t'
         size_t __nmemb, size_t __size, __compar_fn_t __compar)
                         ^
/tools/include/stdlib.h:764:34: error: expected declaration specifiers or
'...' before 'size_t'
 extern void qsort (void *__base, size_t __nmemb, size_t __size,
                                  ^
/tools/include/stdlib.h:764:50: error: expected declaration specifiers or
'...' before 'size_t'
 extern void qsort (void *__base, size_t __nmemb, size_t __size,
                                                  ^
/tools/include/stdlib.h:767:36: error: expected declaration specifiers or
'...' before 'size_t'
 extern void qsort_r (void *__base, size_t __nmemb, size_t __size,
                                    ^
/tools/include/stdlib.h:767:52: error: expected declaration specifiers or
'...' before 'size_t'
 extern void qsort_r (void *__base, size_t __nmemb, size_t __size,
                                                    ^
/tools/include/stdlib.h:843:6: error: expected declaration specifiers or
'...' before 'size_t'
      size_t __len) __THROW __nonnull ((3, 4, 5));
      ^
/tools/include/stdlib.h:846:6: error: expected declaration specifiers or
'...' before 'size_t'
      size_t __len) __THROW __nonnull ((3, 4, 5));
      ^
/tools/include/stdlib.h:850:31: error: expected declaration specifiers or
'...' before 'size_t'
       char *__restrict __buf, size_t __len)
                               ^
/tools/include/stdlib.h:854:31: error: expected declaration specifiers or
'...' before 'size_t'
       char *__restrict __buf, size_t __len)
                               ^
/tools/include/stdlib.h:862:36: error: expected declaration specifiers or
'...' before 'size_t'
 extern int mblen (const char *__s, size_t __n) __THROW;
                                    ^
/tools/include/stdlib.h:866:34: error: expected declaration specifiers or
'...' before 'size_t'
      const char *__restrict __s, size_t __n) __THROW;
                                  ^
/tools/include/stdlib.h:873:15: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'mbstowcs'
 extern size_t mbstowcs (wchar_t *__restrict  __pwcs,
               ^
/tools/include/stdlib.h:876:15: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'wcstombs'
 extern size_t wcstombs (char *__restrict __s,
               ^
/tools/include/stdlib.h:939:46: error: expected declaration specifiers or
'...' before 'size_t'
 extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
                                              ^
In file included from ../../../lib/ext2fs/ext2fs.h:90:0,
                 from ../../../lib/ext2fs/ext2fsP.h:12,
                 from ../../../lib/ext2fs/closefs.c:42:
../../../lib/et/com_err.h:55:76: error: expected declaration specifiers or
'...' before 'size_t'
 extern const char *com_right_r(struct et_list *list, long code, char *str,
size_t len);

^
In file included from ../../../lib/ext2fs/ext2fs.h:91:0,
                 from ../../../lib/ext2fs/ext2fsP.h:12,
                 from ../../../lib/ext2fs/closefs.c:42:
../../../lib/ext2fs/ext2_io.h:46:11: error: expected declaration specifiers
or '...' before 'size_t'
           size_t size,
           ^
../../../lib/ext2fs/ext2_io.h:53:12: error: expected declaration specifiers
or '...' before 'size_t'
            size_t size,
            ^
In file included from ../../../lib/ext2fs/ext2fs.h:93:0,
                 from ../../../lib/ext2fs/ext2fsP.h:12,
                 from ../../../lib/ext2fs/closefs.c:42:
../../../lib/ext2fs/ext2_ext_attr.h:27:2: error: unknown type name '__u8'
  __u8 e_name_len; /* length of name */
  ^
../../../lib/ext2fs/ext2_ext_attr.h:28:2: error: unknown type name '__u8'
  __u8 e_name_index; /* attribute name index */
  ^
In file included from ../../../lib/ext2fs/ext2fsP.h:12:0,
                 from ../../../lib/ext2fs/closefs.c:42:
../../../lib/ext2fs/ext2fs.h:790:20: error: expected declaration specifiers
or '...' before 'size_t'
       __u64 start, size_t num,
                    ^
../../../lib/ext2fs/ext2fs.h:796:20: error: expected declaration specifiers
or '...' before 'size_t'
       __u64 start, size_t num,
                    ^
../../../lib/ext2fs/ext2fs.h:802:22: error: expected declaration specifiers
or '...' before 'size_t'
       blk64_t start, size_t num,
                      ^
../../../lib/ext2fs/ext2fs.h:808:22: error: expected declaration specifiers
or '...' before 'size_t'
       blk64_t start, size_t num,
                      ^
../../../lib/ext2fs/ext2fs.h:953:66: error: expected declaration specifiers
or '...' before 'size_t'
 extern __u32 ext2fs_crc32c_be(__u32 crc, unsigned char const *p, size_t
len);
                                                                  ^
../../../lib/ext2fs/ext2fs.h:954:66: error: expected declaration specifiers
or '...' before 'size_t'
 extern __u32 ext2fs_crc32c_le(__u32 crc, unsigned char const *p, size_t
len);
                                                                  ^
../../../lib/ext2fs/ext2fs.h: In function 'ext2fs_get_mem':
../../../lib/ext2fs/ext2fs.h:1548:7: warning: incompatible implicit
declaration of built-in function 'malloc'
  pp = malloc(size);
       ^
../../../lib/ext2fs/ext2fs.h:1551:2: warning: incompatible implicit
declaration of built-in function 'memcpy'
  memcpy(ptr, &pp, sizeof (pp));
  ^
../../../lib/ext2fs/ext2fs.h: In function 'ext2fs_get_memzero':
../../../lib/ext2fs/ext2fs.h:1559:7: warning: incompatible implicit
declaration of built-in function 'malloc'
  pp = malloc(size);
       ^
../../../lib/ext2fs/ext2fs.h:1562:2: warning: incompatible implicit
declaration of built-in function 'memset'
  memset(pp, 0, size);
  ^
../../../lib/ext2fs/ext2fs.h:1563:2: warning: incompatible implicit
declaration of built-in function 'memcpy'
  memcpy(ptr, &pp, sizeof(pp));
  ^
../../../lib/ext2fs/ext2fs.h: In function 'ext2fs_get_arrayzero':
../../../lib/ext2fs/ext2fs.h:1581:7: warning: incompatible implicit
declaration of built-in function 'calloc'
  pp = calloc(count, size);
       ^
../../../lib/ext2fs/ext2fs.h:1584:2: warning: incompatible implicit
declaration of built-in function 'memcpy'
  memcpy(ptr, &pp, sizeof(pp));
  ^
../../../lib/ext2fs/ext2fs.h: In function 'ext2fs_free_mem':
../../../lib/ext2fs/ext2fs.h:1595:2: warning: incompatible implicit
declaration of built-in function 'memcpy'
  memcpy(&p, ptr, sizeof(p));
  ^
../../../lib/ext2fs/ext2fs.h: In function 'ext2fs_resize_mem':
../../../lib/ext2fs/ext2fs.h:1612:2: warning: incompatible implicit
declaration of built-in function 'memcpy'
  memcpy(&p, ptr, sizeof(p));
  ^
../../../lib/ext2fs/ext2fs.h:1613:6: warning: incompatible implicit
declaration of built-in function 'realloc'
  p = realloc(p, size);
      ^
In file included from ../../../lib/ext2fs/closefs.c:42:0:
../../../lib/ext2fs/ext2fsP.h: At top level:
../../../lib/ext2fs/ext2fsP.h:143:48: error: expected declaration
specifiers or '...' before 'size_t'
 extern int ext2fs_mem_is_zero(const char *mem, size_t len);
                                                ^
../../../lib/ext2fs/closefs.c:43:3: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
../../../lib/ext2fs/closefs.c:69:3: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
../../../lib/ext2fs/closefs.c:113:3: error: expected '=', ',', ';', 'asm'
or '__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
../../../lib/ext2fs/closefs.c:263:3: error: expected '=', ',', ';', 'asm'
or '__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
../../../lib/ext2fs/closefs.c:363:3: error: expected '=', ',', ';', 'asm'
or '__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
../../../lib/ext2fs/closefs.c:469:3: error: expected '=', ',', ';', 'asm'
or '__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
../../../lib/ext2fs/closefs.c:505:3: error: expected '=', ',', ';', 'asm'
or '__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
../../../lib/ext2fs/closefs.c:541:3: error: expected '=', ',', ';', 'asm'
or '__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
../../../lib/ext2fs/closefs.c:551:3: error: expected '=', ',', ';', 'asm'
or '__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
../../../lib/ext2fs/closefs.c:881:3: error: expected '=', ',', ';', 'asm'
or '__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
../../../lib/ext2fs/closefs.c:905:3: error: expected '=', ',', ';', 'asm'
or '__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
../../../lib/ext2fs/closefs.c:915:3: error: expected '=', ',', ';', 'asm'
or '__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
../../../lib/ext2fs/closefs.c:993:3: error: expected '=', ',', ';', 'asm'
or '__attribute__' before '.' token
 nt.*old_desc_blocks/s/int/blk64_t/
   ^
Makefile:612: recipe for target 'closefs.o' failed
make[2]: *** [closefs.o] Error 1
make[2]: Leaving directory '/sources/e2fsprogs-1.42.12/build/lib/ext2fs'
Makefile:394: recipe for target 'all-libs-recursive' failed
make[1]: *** [all-libs-recursive] Error 1
make[1]: Leaving directory '/sources/e2fsprogs-1.42.12/build'
Makefile:318: recipe for target 'all' failed
make: *** [all] Error 2
how to go about rectifying the errors.

Thanks & best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20150622/cd0d4e16/attachment.html>


More information about the lfs-support mailing list