Статус: Сотрудник
Группы: Участники
Зарегистрирован: 30.06.2016(UTC) Сообщений: 3,376 Сказал «Спасибо»: 53 раз Поблагодарили: 773 раз в 715 постах
|
Автор: Iurii Mozol Цитата:Приложите вывод после выполнения команды:
sudo update-alternatives --config g++
Код:root@inspiron:/opt/cprocsp/src/phpcades# sudo update-alternatives --config g++
There are 2 choices for the alternative g++ (providing /usr/bing++).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/g++-5 10 auto mode
* 1 /usr/bin/g++-5 10 manual mode
2 /usr/bin/g++-7 10 manual mode
Press <enter> to keep the current choice[*], or type selection number: 0
root@inspiron:/opt/cprocsp/src/phpcades# eval `/opt/cprocsp/src/doxygen/CSP/../setenv.sh --64`; make -f Makefile.unix
g++ -DLINUX -DUNIX -DHAVE_LIMITS_H -DHAVE_STDINT_H -I/opt/cprocsp/include/ -I/opt/cprocsp/include/cpcsp -I/opt/cprocsp/include/pki -I/opt/cprocsp/include/pki/atl -I/opt/cprocsp/include/pki/cppcades -I/opt/cprocsp/include/pki/cplib -I/home/iurii/Downloads/php-7.1.19 -I/home/iurii/Downloads/php-7.1.19/main -I/home/iurii/Downloads/php-7.1.19/Zend -I/home/iurii/Downloads/php-7.1.19/TSRM -DSIZEOF_VOID_P=8 -fPIC -DPIC -c -o PHPCadesCPSigners.o PHPCadesCPSigners.cpp
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:39,
from /usr/include/boost/smart_ptr/make_shared_object.hpp:17,
from /usr/include/boost/smart_ptr/make_shared.hpp:14,
from /usr/include/boost/make_shared.hpp:14,
from /opt/cprocsp/include/pki/atl/atlcrypt2.inl:8,
from /opt/cprocsp/include/pki/atl/atlcrypt2.h:2278,
from stdafx.h:53,
from PHPCadesCPSigners.cpp:1:
/usr/include/c++/7/bits/stl_algo.h: In function ‘_RandomAccessIterator std::__sample(_InputIterator, _InputIterator, std::input_iterator_tag, _RandomAccessIterator, std::random_access_iterator_tag, _Size, _UniformRandomBitGenerator&&)’:
/usr/include/c++/7/bits/stl_algo.h:5723:21: error: expected ‘,’ before ‘++’ token
__out[__sample_sz++] = *__first;
^~
/usr/include/c++/7/bits/stl_algo.h:5723:21: error: expected identifier before ‘++’ token
/usr/include/c++/7/bits/stl_algo.h: In lambda function:
/usr/include/c++/7/bits/stl_algo.h:5723:25: error: expected ‘{’ before ‘=’ token
__out[__sample_sz++] = *__first;
^
/usr/include/c++/7/bits/stl_algo.h: In lambda function:
/usr/include/c++/7/bits/stl_algo.h:5731:17: error: expected ‘{’ before ‘=’ token
__out[__k] = *__first;
^
/usr/include/c++/7/bits/stl_algo.h: In function ‘_OutputIterator std::__sample(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag, _OutputIterator, _Cat, _Size, _UniformRandomBitGenerator&&)’:
/usr/include/c++/7/bits/stl_algo.h:5771:14: error: expected primary-expression before ‘=’ token
*__out++ = *__first;
^
/usr/include/c++/7/bits/stl_algo.h:5782:14: error: expected primary-expression before ‘=’ token
*__out++ = *__first;
^
/usr/include/c++/7/bits/stl_algo.h:5795:15: error: expected primary-expression before ‘=’ token
*__out++ = *__first;
^
Makefile.unix:30: recipe for target 'PHPCadesCPSigners.o' failed
make: *** [PHPCadesCPSigners.o] Error 1
root@inspiron:/opt/cprocsp/src/phpcades# sudo update-alternatives --config g++
There are 2 choices for the alternative g++ (providing /usr/bing++).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/g++-5 10 auto mode
1 /usr/bin/g++-5 10 manual mode
2 /usr/bin/g++-7 10 manual mode
Press <enter> to keep the current choice[*], or type selection number: 1
root@inspiron:/opt/cprocsp/src/phpcades# eval `/opt/cprocsp/src/doxygen/CSP/../setenv.sh --64`; make -f Makefile.unix
g++ -DLINUX -DUNIX -DHAVE_LIMITS_H -DHAVE_STDINT_H -I/opt/cprocsp/include/ -I/opt/cprocsp/include/cpcsp -I/opt/cprocsp/include/pki -I/opt/cprocsp/include/pki/atl -I/opt/cprocsp/include/pki/cppcades -I/opt/cprocsp/include/pki/cplib -I/home/iurii/Downloads/php-7.1.19 -I/home/iurii/Downloads/php-7.1.19/main -I/home/iurii/Downloads/php-7.1.19/Zend -I/home/iurii/Downloads/php-7.1.19/TSRM -DSIZEOF_VOID_P=8 -fPIC -DPIC -c -o PHPCadesCPSigners.o PHPCadesCPSigners.cpp
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:39,
from /usr/include/boost/smart_ptr/make_shared_object.hpp:17,
from /usr/include/boost/smart_ptr/make_shared.hpp:14,
from /usr/include/boost/make_shared.hpp:14,
from /opt/cprocsp/include/pki/atl/atlcrypt2.inl:8,
from /opt/cprocsp/include/pki/atl/atlcrypt2.h:2278,
from stdafx.h:53,
from PHPCadesCPSigners.cpp:1:
/usr/include/c++/7/bits/stl_algo.h: In function ‘_RandomAccessIterator std::__sample(_InputIterator, _InputIterator, std::input_iterator_tag, _RandomAccessIterator, std::random_access_iterator_tag, _Size, _UniformRandomBitGenerator&&)’:
/usr/include/c++/7/bits/stl_algo.h:5723:21: error: expected ‘,’ before ‘++’ token
__out[__sample_sz++] = *__first;
^~
/usr/include/c++/7/bits/stl_algo.h:5723:21: error: expected identifier before ‘++’ token
/usr/include/c++/7/bits/stl_algo.h: In lambda function:
/usr/include/c++/7/bits/stl_algo.h:5723:25: error: expected ‘{’ before ‘=’ token
__out[__sample_sz++] = *__first;
^
/usr/include/c++/7/bits/stl_algo.h: In lambda function:
/usr/include/c++/7/bits/stl_algo.h:5731:17: error: expected ‘{’ before ‘=’ token
__out[__k] = *__first;
^
/usr/include/c++/7/bits/stl_algo.h: In function ‘_OutputIterator std::__sample(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag, _OutputIterator, _Cat, _Size, _UniformRandomBitGenerator&&)’:
/usr/include/c++/7/bits/stl_algo.h:5771:14: error: expected primary-expression before ‘=’ token
*__out++ = *__first;
^
/usr/include/c++/7/bits/stl_algo.h:5782:14: error: expected primary-expression before ‘=’ token
*__out++ = *__first;
^
/usr/include/c++/7/bits/stl_algo.h:5795:15: error: expected primary-expression before ‘=’ token
*__out++ = *__first;
^
Makefile.unix:30: recipe for target 'PHPCadesCPSigners.o' failed
make: *** [PHPCadesCPSigners.o] Error 1
Вот такой у меня вывод и результат как у AndrewMaz Ubuntu 18.04 PHP-7.1.19 На Убунте 16.04 PHP 7.1.18 скомплировалось и работатет. Куда дальше смотреть? Добрый день. Судя по выводу, используется g++-7. Вы g++-5 устанавливали ( sudo apt-get install g++-5)? |
|