little_water
little_water
2016-07-05 06:01

arm交叉编译STLport-5.2.1库,编译错误?

编译环境:
Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-24-generic x86_64)
编译器:
arm-hisiv300nptl-linux
编译过程:
$tar -xvf STLport-5.2.1.tar.bz2
$cd STLport-5.2.1
$./configure --target=arm-hisiv300-linux
$make

编译错误打印:
In file included from ../../src/c_locale.c:26:0:
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_ctype_name’:
../../src/c_locale_glibc/c_locale_glibc2.c:162:27: error: dereferencing pointer to incomplete type
return ((locale_t)__loc)->names[LC_CTYPE];
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_numeric_name’:
../../src/c_locale_glibc/c_locale_glibc2.c:172:27: error: dereferencing pointer to incomplete type
return ((locale_t)
loc)->names[LC_NUMERIC];
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_time_name’:
../../src/c_locale_glibc/c_locale_glibc2.c:177:27: error: dereferencing pointer to incomplete type
return ((locale_t)
loc)->names[LC_TIME];
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_collate_name’:
../../src/c_locale_glibc/c_locale_glibc2.c:182:27: error: dereferencing pointer to incomplete type
return ((locale_t)
loc)->names[LC_COLLATE];
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_monetary_name’:
../../src/c_locale_glibc/c_locale_glibc2.c:187:27: error: dereferencing pointer to incomplete type
return ((locale_t)
loc)->names[LC_MONETARY];
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_messages_name’:
../../src/c_locale_glibc/c_locale_glibc2.c:192:27: error: dereferencing pointer to incomplete type
return ((locale_t)
loc)->names[LC_MESSAGES];
^
In file included from ../../src/stlport_prefix.h:21:0,
from ../../src/c_locale.c:19:
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_ctype_table’:
../../src/c_locale_glibc/c_locale_glibc2.c:283:74: error: dereferencing pointer to incomplete type
_STLP_STATIC_ASSERT( sizeof(_Locale_mask_t) == sizeof(((locale_t)
loc)->ct ype_b[0]) )
^
../../stlport/stl/config/features.h:311:66: note: in definition of macro ‘_STLP_ STATIC_ASSERT’
# define _STLP_STATIC_ASSERT(expr) typedef char __static_assert[expr ? 1 : -1] ;
^
In file included from ../../src/c_locale.c:26:0:
../../src/c_locale_glibc/c_locale_glibc2.c:284:27: error: dereferencing pointer to incomplete type
return ((locale_t)
loc)->ctype_b;
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_toupper’:
../../src/c_locale_glibc/c_locale_glibc2.c:288:27: error: dereferencing pointer to incomplete type
{ return ((locale_t)
loc)->ctype_toupper[c]; }
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_tolower’:
../../src/c_locale_glibc/c_locale_glibc2.c:291:27: error: dereferencing pointer to incomplete type
{ return ((locale_t)
loc)->ctype_tolower[c]; }
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_decimal_point’:
../../src/c_locale_glibc/c_locale_glibc2.c:463:10: error: invalid type argument of unary ‘*’ (have ‘int’)
return *(nl_langinfo_l(RADIXCHAR, (locale_t)
loc));
^
../../src/c_locale_glibc/c_locale_glibc2.c: In function ‘_Locale_thousands_sep’:
../../src/c_locale_glibc/c_locale_glibc2.c:468:10: error: invalid type argument of unary ‘*’ (have ‘int’)
return *(nl_langinfo_l(THOUSEP, (locale_t)__loc));
^

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

0条回答