《Ubuntu编译entware》的评论 http://iytc.net/wordpress/?p=2159 随意记录 Tue, 18 Mar 2025 13:04:05 +0000 hourly 1 https://wordpress.org/?v=5.0.3 作者:子说 http://iytc.net/wordpress/?p=2159#comment-2861 Wed, 21 Aug 2019 03:28:45 +0000 http://iytc.net/wordpress/?p=2159#comment-2861 大佬,我在编译PHP7的时候,提示需要编译ICU,但是IUC这个库死活编译不成功,大佬能执导一下么?错误代码如下:

make[2]: Entering directory `/home/Entware-ng/feeds/packages/libs/icu'
CFLAGS="-O2 -I/home/Entware-ng/staging_dir/host/include -I/home/Entware-ng/staging_dir/host/usr/include -I/home/Entware-ng/staging_dir/hostpkg/include -I/home/Entware-ng/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/host/include" CPPFLAGS="-I/home/Entware-ng/staging_dir/host/include -I/home/Entware-ng/staging_dir/host/usr/include -I/home/Entware-ng/staging_dir/hostpkg/include -I/home/Entware-ng/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/host/include" CXXFLAGS="" LDFLAGS="-L/home/Entware-ng/staging_dir/host/lib -L/home/Entware-ng/staging_dir/host/usr/lib -L/home/Entware-ng/staging_dir/hostpkg/lib -L/home/Entware-ng/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/host/lib" make -j1 -C /home/Entware-ng/build_dir/hostpkg/icu4c-60.2
make[3]: Entering directory `/home/Entware-ng/build_dir/hostpkg/icu4c-60.2'
Note: rebuild with "make VERBOSE=1 " to show all compiler parameters.
make[3]: Making `all' in `stubdata'
make[4]: Entering directory `/home/Entware-ng/build_dir/hostpkg/icu4c-60.2/stubdata'
g++ ... stubdata.cpp
In file included from ../common/unicode/utypes.h:38:0,
from stubdata.cpp:22:
../common/unicode/umachine.h:347:13: error: 'char16_t' does not name a type
In file included from ../common/unicode/utypes.h:39:0,
from stubdata.cpp:22:
../common/unicode/uversion.h:167:55: error: 'UChar' does not name a type
../common/unicode/uversion.h:167:62: error: ISO C++ forbids declaration of 'versionString' with no type [-fpermissive]
In file included from ../common/unicode/udata.h:23:0,
from stubdata.cpp:23:
../common/unicode/localpointer.h:221:34: error: expected ',' or '...' before '&&' token
../common/unicode/localpointer.h:221:39: error: invalid constructor; you probably meant 'icu_60::LocalPointer (const icu_60::LocalPointer&)'
../common/unicode/localpointer.h:238:48: error: expected ',' or '...' before '&&' token
../common/unicode/localpointer.h: In member function 'icu_60::LocalPointer& icu_60::LocalPointer::operator=(icu_60::LocalPointer)':
../common/unicode/localpointer.h:239:25: error: 'src' was not declared in this scope
../common/unicode/localpointer.h: At global scope:
../common/unicode/localpointer.h:366:30: error: expected ',' or '...' before '&&' token
../common/unicode/localpointer.h:366:35: error: invalid constructor; you probably meant 'icu_60::LocalArray (const icu_60::LocalArray&)'
../common/unicode/localpointer.h:383:44: error: expected ',' or '...' before '&&' token
../common/unicode/localpointer.h: In member function 'icu_60::LocalArray& icu_60::LocalArray::operator=(icu_60::LocalArray)':
../common/unicode/localpointer.h:384:25: error: 'src' was not declared in this scope
In file included from stubdata.cpp:23:0:
../common/unicode/udata.h: At global scope:
../common/unicode/udata.h:280:1: error: expected ',' or '...' before '&&' token
../common/unicode/udata.h:280:1: error: invalid constructor; you probably meant 'icu_60::LocalUDataMemoryPointer (const icu_60::LocalUDataMemoryPointer&)'
../common/unicode/udata.h:280:1: error: expected ',' or '...' before '&&' token
../common/unicode/udata.h: In member function 'icu_60::LocalUDataMemoryPointer& icu_60::LocalUDataMemoryPointer::operator=(icu_60::LocalUDataMemoryPointer)':
../common/unicode/udata.h:280:1: error: 'src' was not declared in this scope
stubdata.cpp: At global scope:
stubdata.cpp:58:16: error: 'UChar' was not declared in this scope
*** Failed compilation command follows: ----------------------------------------------------------
g++ -D_REENTRANT -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=0 -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -I../common -DU_ATTRIBUTE_DEPRECATED= -O3 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -c -o stubdata.ao stubdata.cpp
--- ( rebuild with "make VERBOSE=1 all" to show all parameters ) --------
make[4]: *** [stubdata.ao] Error 1
make[4]: Leaving directory `/home/Entware-ng/build_dir/hostpkg/icu4c-60.2/stubdata'
make[3]: *** [all-recursive] Error 2
make[3]: Leaving directory `/home/Entware-ng/build_dir/hostpkg/icu4c-60.2'
make[2]: *** [/home/Entware-ng/build_dir/hostpkg/icu4c-60.2/.built] Error 2
make[2]: Leaving directory `/home/Entware-ng/feeds/packages/libs/icu'
make[1]: *** [package/feeds/packages/icu/host/compile] Error 2
make[1]: Leaving directory `/home/Entware-ng'
make: *** [package/php7/compile] Error 2

]]>