bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] build failed for android


From: 小陈
Subject: [Bug-tar] build failed for android
Date: Fri, 15 Dec 2017 01:53:06 +0800 (CST)

When I build tar-1.29 for Android in MBP,A  error occurred. 
make error log:

In file included from fseeko.c:25:0:

stdio-impl.h:66:22: error: field '_ub' has incomplete type

       struct  __sbuf _ub; /* ungetc buffer */

                      ^

fseeko.c: In function 'fseeko':

fseeko.c:69:10: error: dereferencing pointer to incomplete type

   if (fp_->_p == fp_->_bf._base

          ^

fseeko.c:69:21: error: dereferencing pointer to incomplete type

   if (fp_->_p == fp_->_bf._base

                     ^

fseeko.c:70:13: error: dereferencing pointer to incomplete type

       && fp_->_r == 0

             ^

fseeko.c:71:13: error: dereferencing pointer to incomplete type

       && fp_->_w == ((fp_->_flags & (__SLBF | __SNBF | __SRD)) == 0 /* fully buffered and not currently reading? */

             ^

fseeko.c:71:26: error: dereferencing pointer to incomplete type

       && fp_->_w == ((fp_->_flags & (__SLBF | __SNBF | __SRD)) == 0 /* fully buffered and not currently reading? */

                          ^

fseeko.c:71:38: error: '__SLBF' undeclared (first use in this function)

       && fp_->_w == ((fp_->_flags & (__SLBF | __SNBF | __SRD)) == 0 /* fully buffered and not currently reading? */

                                      ^

fseeko.c:71:38: note: each undeclared identifier is reported only once for each function it appears in

fseeko.c:71:47: error: '__SNBF' undeclared (first use in this function)

       && fp_->_w == ((fp_->_flags & (__SLBF | __SNBF | __SRD)) == 0 /* fully buffered and not currently reading? */

                                               ^

fseeko.c:71:56: error: '__SRD' undeclared (first use in this function)

       && fp_->_w == ((fp_->_flags & (__SLBF | __SNBF | __SRD)) == 0 /* fully buffered and not currently reading? */

                                                        ^

fseeko.c:72:27: error: dereferencing pointer to incomplete type

                      ? fp_->_bf._size

                           ^

In file included from fseeko.c:25:0:

stdio-impl.h:69:42: error: dereferencing pointer to incomplete type

 #  define fp_ub ((struct __sfileext *) fp->_ext._base)->_ub

                                          ^

fseeko.c:74:10: note: in expansion of macro 'fp_ub'

       && fp_ub._base == NULL)

          ^

fseeko.c:121:14: error: dereferencing pointer to incomplete type

           fp_->_flags &= ~__SOFF;

              ^

fseeko.c:121:27: error: '__SOFF' undeclared (first use in this function)

           fp_->_flags &= ~__SOFF;

                           ^

fseeko.c:146:12: error: dereferencing pointer to incomplete type

         fp_->_offset = u.f;

            ^

fseeko.c:149:10: error: dereferencing pointer to incomplete type

       fp_->_flags |= __SOFF;

          ^

fseeko.c:150:10: error: dereferencing pointer to incomplete type

       fp_->_flags &= ~__SEOF;

          ^

fseeko.c:150:23: error: '__SEOF' undeclared (first use in this function)

       fp_->_flags &= ~__SEOF;

                       ^

make[4]: *** [fseeko.o] Error 1

make[4]: Leaving directory `/Users/jerry/Downloads/tar-1.29/gnu'

make[3]: *** [all-recursive] Error 1

make[3]: Leaving directory `/Users/jerry/Downloads/tar-1.29/gnu'

make[2]: *** [all] Error 2

make[2]: Leaving directory `/Users/jerry/Downloads/tar-1.29/gnu'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/Users/jerry/Downloads/tar-1.29'

make: *** [all] Error 2


What should I do to solve this problem? Can you help me or send me a tutorial?



 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]