Last active
January 29, 2017 09:49
-
-
Save thedotedge/b8c9c7d1145c0ffd8e665a3b551cd401 to your computer and use it in GitHub Desktop.
Morpher PHP 7.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@li689-230 ~]# gcc -v | |
Using built-in specs. | |
COLLECT_GCC=gcc | |
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/lto-wrapper | |
Target: x86_64-redhat-linux | |
Configured with: ../configure --prefix=/opt/rh/devtoolset-3/root/usr --mandir=/opt/rh/devtoolset-3/root/usr/share/man --infodir=/opt/rh/devtoolset-3/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,fortran,lto --enable-plugin --with-linker-hash-style=gnu --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.9.2-20150212/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.9.2-20150212/obj-x86_64-redhat-linux/cloog-install --with-mpc=/builddir/build/BUILD/gcc-4.9.2-20150212/obj-x86_64-redhat-linux/mpc-install --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux | |
Thread model: posix | |
gcc version 4.9.2 20150212 (Red Hat 4.9.2-6) (GCC) | |
[root@li689-230 php]# make clean | |
find . -name \*.gcno -o -name \*.gcda | xargs rm -f | |
find . -name \*.lo -o -name \*.o | xargs rm -f | |
find . -name \*.la -o -name \*.a | xargs rm -f | |
find . -name \*.so | xargs rm -f | |
find . -name .libs -a -type d|xargs rm -rf | |
rm -f libphp.la modules/* libs/* | |
[root@li689-230 php]# ./configure | |
checking for grep that handles long lines and -e... /bin/grep | |
checking for egrep... /bin/grep -E | |
checking for a sed that does not truncate output... /bin/sed | |
checking for cc... cc | |
checking for C compiler default output file name... a.out | |
checking whether the C compiler works... yes | |
checking whether we are cross compiling... no | |
checking for suffix of executables... | |
checking for suffix of object files... o | |
checking whether we are using the GNU C compiler... yes | |
checking whether cc accepts -g... yes | |
checking for cc option to accept ISO C89... none needed | |
checking how to run the C preprocessor... cc -E | |
checking for icc... no | |
checking for suncc... no | |
checking whether cc understands -c and -o together... yes | |
checking for system library directory... lib | |
checking if compiler supports -R... no | |
checking if compiler supports -Wl,-rpath,... yes | |
checking build system type... x86_64-unknown-linux-gnu | |
checking host system type... x86_64-unknown-linux-gnu | |
checking target system type... x86_64-unknown-linux-gnu | |
checking for PHP prefix... /usr | |
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib | |
checking for PHP extension directory... /usr/lib64/php/modules | |
checking for PHP installed headers prefix... /usr/include/php | |
checking if debug is enabled... no | |
checking if zts is enabled... no | |
checking for re2c... no | |
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. | |
checking for gawk... gawk | |
checking whether to enable Hello | |
World support... yes, shared | |
checking for g++... g++ | |
checking whether we are using the GNU C++ compiler... yes | |
checking whether g++ accepts -g... yes | |
checking how to run the C++ preprocessor... g++ -E | |
checking for a sed that does not truncate output... (cached) /bin/sed | |
checking for fgrep... /bin/grep -F | |
checking for ld used by cc... /opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/ld | |
checking if the linker (/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/ld) is GNU ld... yes | |
checking for BSD- or MS-compatible name lister (nm)... /opt/rh/devtoolset-3/root/usr/bin/nm -B | |
checking the name lister (/opt/rh/devtoolset-3/root/usr/bin/nm -B) interface... BSD nm | |
checking whether ln -s works... yes | |
checking the maximum length of command line arguments... 1572864 | |
checking whether the shell understands some XSI constructs... yes | |
checking whether the shell understands "+="... yes | |
checking for /opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/ld option to reload object files... -r | |
checking for objdump... objdump | |
checking how to recognize dependent libraries... pass_all | |
checking for ar... ar | |
checking for strip... strip | |
checking for ranlib... ranlib | |
checking command to parse /opt/rh/devtoolset-3/root/usr/bin/nm -B output from cc object... ok | |
checking for ANSI C header files... yes | |
checking for sys/types.h... yes | |
checking for sys/stat.h... yes | |
checking for stdlib.h... yes | |
checking for string.h... yes | |
checking for memory.h... yes | |
checking for strings.h... yes | |
checking for inttypes.h... yes | |
checking for stdint.h... yes | |
checking for unistd.h... yes | |
checking for dlfcn.h... yes | |
checking whether we are using the GNU C++ compiler... (cached) yes | |
checking whether g++ accepts -g... (cached) yes | |
checking how to run the C++ preprocessor... g++ -E | |
checking for objdir... .libs | |
checking if cc supports -fno-rtti -fno-exceptions... no | |
checking for cc option to produce PIC... -fPIC -DPIC | |
checking if cc PIC flag -fPIC -DPIC works... yes | |
checking if cc static flag -static works... yes | |
checking if cc supports -c -o file.o... yes | |
checking if cc supports -c -o file.o... (cached) yes | |
checking whether the cc linker (/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/ld -m elf_x86_64) supports shared libraries... yes | |
checking whether -lc should be explicitly linked in... no | |
checking dynamic linker characteristics... GNU/Linux ld.so | |
checking how to hardcode library paths into programs... immediate | |
checking whether stripping libraries is possible... yes | |
checking if libtool supports shared libraries... yes | |
checking whether to build shared libraries... yes | |
checking whether to build static libraries... no | |
checking for ld used by g++... /opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/ld -m elf_x86_64 | |
checking if the linker (/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/ld -m elf_x86_64) is GNU ld... yes | |
checking whether the g++ linker (/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/ld -m elf_x86_64) supports shared libraries... yes | |
checking for g++ option to produce PIC... -fPIC -DPIC | |
checking if g++ PIC flag -fPIC -DPIC works... yes | |
checking if g++ static flag -static works... yes | |
checking if g++ supports -c -o file.o... yes | |
checking if g++ supports -c -o file.o... (cached) yes | |
checking whether the g++ linker (/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/ld -m elf_x86_64) supports shared libraries... yes | |
checking dynamic linker characteristics... GNU/Linux ld.so | |
checking how to hardcode library paths into programs... immediate | |
configure: creating ./config.status | |
config.status: creating config.h | |
config.status: config.h is unchanged | |
config.status: executing libtool commands | |
[root@li689-230 php]# make | |
/bin/sh /root/morpher/php/libtool --mode=compile cc -D_UNICODE -I. -I/root/morpher/php -DPHP_ATOM_INC -I/root/morpher/php/include -I/root/morpher/php/main -I/root/morpher/php -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/morpher/php/bsdua/utf8.c -o bsdua/utf8.lo | |
libtool: compile: cc -D_UNICODE -I. -I/root/morpher/php -DPHP_ATOM_INC -I/root/morpher/php/include -I/root/morpher/php/main -I/root/morpher/php -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/morpher/php/bsdua/utf8.c -fPIC -DPIC -o bsdua/.libs/utf8.o | |
/bin/sh /root/morpher/php/libtool --mode=compile g++ -D_UNICODE -I. -I/root/morpher/php -DPHP_ATOM_INC -I/root/morpher/php/include -I/root/morpher/php/main -I/root/morpher/php -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/morpher/php/hello.cpp -o hello.lo | |
libtool: compile: g++ -D_UNICODE -I. -I/root/morpher/php -DPHP_ATOM_INC -I/root/morpher/php/include -I/root/morpher/php/main -I/root/morpher/php -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/morpher/php/hello.cpp -fPIC -DPIC -o .libs/hello.o | |
In file included from /root/morpher/php/../russian/RussianNumberSpeller.h:5:0, | |
from /root/morpher/php/../russian/RussianCurrencySpeller.h:3, | |
from /root/morpher/php/hello.cpp:20: | |
/root/morpher/php/../russian/morpher.h: In member function ‘virtual Phrase* RussianDeclensor::Analyse(const wstring&, Attributes) const’: | |
/root/morpher/php/../russian/morpher.h:3807:122: warning: lambda expressions only available with -std=c++11 or -std=gnu++11 | |
[] (const Exception & e1, const Exception & e2) {return tstrcmp (e1.singular.nominative, e2.singular.nominative) < 0; }); | |
^ | |
/root/morpher/php/../russian/morpher.h:3807:123: error: no matching function for call to ‘lower_bound(Exception [], Exception*&, Exception&, RussianDeclensor::Analyse(const wstring&, Attributes) const::<lambda(const Exception&, const Exception&)>)’ | |
[] (const Exception & e1, const Exception & e2) {return tstrcmp (e1.singular.nominative, e2.singular.nominative) < 0; }); | |
^ | |
/root/morpher/php/../russian/morpher.h:3807:123: note: candidates are: | |
In file included from /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/memory:62:0, | |
from /root/morpher/php/hello.cpp:9: | |
/opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/bits/stl_algobase.h:990:5: note: template<class _ForwardIterator, class _Tp> _ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&) | |
lower_bound(_ForwardIterator __first, _ForwardIterator __last, | |
^ | |
/opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/bits/stl_algobase.h:990:5: note: template argument deduction/substitution failed: | |
In file included from /root/morpher/php/../russian/RussianNumberSpeller.h:5:0, | |
from /root/morpher/php/../russian/RussianCurrencySpeller.h:3, | |
from /root/morpher/php/hello.cpp:20: | |
/root/morpher/php/../russian/morpher.h:3807:123: note: candidate expects 3 arguments, 4 provided | |
[] (const Exception & e1, const Exception & e2) {return tstrcmp (e1.singular.nominative, e2.singular.nominative) < 0; }); | |
^ | |
In file included from /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/algorithm:62:0, | |
from /root/morpher/php/../russian/../Tokenizer.h:4, | |
from /root/morpher/php/../russian/RussianNumberSpeller.h:3, | |
from /root/morpher/php/../russian/RussianCurrencySpeller.h:3, | |
from /root/morpher/php/hello.cpp:20: | |
/opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/bits/stl_algo.h:2022:5: note: template<class _FIter, class _Tp, class _Compare> _FIter std::lower_bound(_FIter, _FIter, const _Tp&, _Compare) | |
lower_bound(_ForwardIterator __first, _ForwardIterator __last, | |
^ | |
/opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/bits/stl_algo.h:2022:5: note: template argument deduction/substitution failed: | |
In file included from /root/morpher/php/../russian/RussianNumberSpeller.h:5:0, | |
from /root/morpher/php/../russian/RussianCurrencySpeller.h:3, | |
from /root/morpher/php/hello.cpp:20: | |
/root/morpher/php/../russian/morpher.h: In substitution of ‘template<class _FIter, class _Tp, class _Compare> _FIter std::lower_bound(_FIter, _FIter, const _Tp&, _Compare) [with _FIter = Exception*; _Tp = Exception; _Compare = RussianDeclensor::Analyse(const wstring&, Attributes) const::<lambda(const Exception&, const Exception&)>]’: | |
/root/morpher/php/../russian/morpher.h:3807:123: required from here | |
/root/morpher/php/../russian/morpher.h:3807:123: error: template argument for ‘template<class _FIter, class _Tp, class _Compare> _FIter std::lower_bound(_FIter, _FIter, const _Tp&, _Compare)’ uses local type ‘RussianDeclensor::Analyse(const wstring&, Attributes) const::<lambda(const Exception&, const Exception&)>’ | |
[] (const Exception & e1, const Exception & e2) {return tstrcmp (e1.singular.nominative, e2.singular.nominative) < 0; }); | |
^ | |
/root/morpher/php/../russian/morpher.h:3807:123: error: trying to instantiate ‘template<class _FIter, class _Tp, class _Compare> _FIter std::lower_bound(_FIter, _FIter, const _Tp&, _Compare)’ | |
/root/morpher/php/hello.cpp: In member function ‘virtual const wstring GetGender::GetWStringFromPhrase(const Morpher::Russian::Parse&)’: | |
/root/morpher/php/hello.cpp:164:8: error: ‘rc’ does not name a type | |
auto rc = phrase.gender (); | |
^ | |
/root/morpher/php/hello.cpp:166:11: error: ‘rc’ was not declared in this scope | |
switch (rc) | |
^ | |
/root/morpher/php/hello.cpp: In function ‘void zif_morpher_ukr_get_gender(zend_execute_data*, zval*)’: | |
/root/morpher/php/hello.cpp:222:7: error: ‘parse’ does not name a type | |
auto parse = ukrMorpher.Parse (name, UkrMorpher::Gender_Auto); | |
^ | |
In file included from /usr/include/php/main/php.h:39:0, | |
from /root/morpher/php/hello.cpp:5: | |
/root/morpher/php/hello.cpp:224:17: error: ‘parse’ was not declared in this scope | |
_RETURN_STRING(parse.IsMasculine() ? "m" : "f") | |
^ | |
/usr/include/php/Zend/zend_API.h:584:21: note: in definition of macro ‘ZVAL_STRING’ | |
const char *_s = (s); \ | |
^ | |
/usr/include/php/Zend/zend_API.h:648:32: note: in expansion of macro ‘RETVAL_STRING’ | |
#define RETURN_STRING(s) { RETVAL_STRING(s); return; } | |
^ | |
/root/morpher/php/hello.cpp:16:29: note: in expansion of macro ‘RETURN_STRING’ | |
#define _RETURN_STRING(str) RETURN_STRING(str) | |
^ | |
/root/morpher/php/hello.cpp:224:2: note: in expansion of macro ‘_RETURN_STRING’ | |
_RETURN_STRING(parse.IsMasculine() ? "m" : "f") | |
^ | |
/root/morpher/php/hello.cpp: In function ‘void zif_morpher_inflect(zend_execute_data*, zval*)’: | |
/root/morpher/php/hello.cpp:312:8: error: ‘converter’ does not name a type | |
auto converter = getGetCase ( | |
^ | |
/root/morpher/php/hello.cpp:331:3: error: expected primary-expression before ‘)’ token | |
); | |
^ | |
/root/morpher/php/hello.cpp:335:6: error: ‘converter’ was not declared in this scope | |
: converter.Utf8ConvertAnalyseConvertBack( | |
^ | |
/root/morpher/php/hello.cpp: In function ‘void zif_morpher_spell(zend_execute_data*, zval*)’: | |
/root/morpher/php/hello.cpp:403:7: error: ‘padegMF’ does not name a type | |
auto padegMF = ParsePadeg (padeg); | |
^ | |
/root/morpher/php/hello.cpp:405:6: error: ‘padegMF’ was not declared in this scope | |
if (padegMF == nullptr) | |
^ | |
/root/morpher/php/hello.cpp:405:17: error: ‘nullptr’ was not declared in this scope | |
if (padegMF == nullptr) | |
^ | |
/root/morpher/php/hello.cpp:410:29: error: ‘padegMF’ was not declared in this scope | |
Padeg padeg_i = GetPadegI (padegMF); | |
^ | |
/root/morpher/php/hello.cpp: In function ‘void zif_morpher_ukr_inflect(zend_execute_data*, zval*)’: | |
/root/morpher/php/hello.cpp:489:7: error: ‘phrase’ does not name a type | |
auto phrase = ukrMorpher.Parse (name, UkrMorpher::Gender_Auto); | |
^ | |
/root/morpher/php/hello.cpp:491:19: error: ‘phrase’ was not declared in this scope | |
wstring result = phrase.GetFormByCase (padegI); | |
^ | |
make: *** [hello.lo] Error 1 | |
[root@li689-230 php]# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment