For CentOS7 upgrade is not possible. The compiler does not support class
`std::unique_ptr`.
```
[ 29%] Building CXX object
CMakeFiles/phonenumber.dir/src/phonenumbers/phonenumbermatcher.cc.o
/usr/bin/c++ -DI18N_PHONENUMBERS_USE_ALTERNATE_FORMATS -DI18N_PHONENUMBERS_USE_BOOST
-DI18N_PHONENUMBERS_USE_ICU_REGEXP -DI18N_PHONENUMBERS_USE_TR1_UNORDERED_MAP -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
-I/root/rpmbuild/BUILD/libphonenumber-8.12.11/cpp/src
-I/root/rpmbuild/BUILD/libphonenumber-8.12.11/cpp/test -Wall -Werror -o
CMakeFiles/phonenumber.dir/src/phonenumbers/phonenumbermatcher.cc.o -c
/root/rpmbuild/BUILD/libphonenumber-8.12.11/cpp/src/phonenumbers/phonenumbermatcher.cc
/root/rpmbuild/BUILD/libphonenumber-8.12.11/cpp/src/phonenumbers/phonenumbermatcher.cc: In
member function 'bool
i18n::phonenumbers::PhoneNumberMatcher::CheckNumberGroupingIsValid(const
i18n::phonenumbers::PhoneNumber&, const string&,
i18n::phonenumbers::ResultCallback4<bool, const
i18n::phonenumbers::PhoneNumberUtil&, const i18n::phonenumbers::PhoneNumber&,
const std::basic_string<char>&, const
std::vector<std::basic_string<char> >&>*) const':
/root/rpmbuild/BUILD/libphonenumber-8.12.11/cpp/src/phonenumbers/phonenumbermatcher.cc:704:9:
error: 'unique_ptr' is not a member of 'std'
std::unique_ptr<RegExpInput> nsn_input(
^
/root/rpmbuild/BUILD/libphonenumber-8.12.11/cpp/src/phonenumbers/phonenumbermatcher.cc:704:36:
error: expected primary-expression before '>' token
std::unique_ptr<RegExpInput> nsn_input(
^
/root/rpmbuild/BUILD/libphonenumber-8.12.11/cpp/src/phonenumbers/phonenumbermatcher.cc:706:45:
error: 'nsn_input' was not declared in this scope
national_significant_number));
^
gmake[2]: *** [CMakeFiles/phonenumber.dir/src/phonenumbers/phonenumbermatcher.cc.o] Error
1
gmake[2]: Leaving directory `/root/rpmbuild/BUILD/libphonenumber-8.12.11'
gmake[1]: Leaving directory `/root/rpmbuild/BUILD/libphonenumber-8.12.11'
gmake[1]: *** [CMakeFiles/phonenumber.dir/all] Error 2
gmake: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.sVbi0F (%build)
Downloading
https://github.com/google/libphonenumber/archive/v8.12.11/libphonenumber-8.… to
/root/rpmbuild/SOURCES/libphonenumber-8.12.11.tar.gz
Bad exit status from /var/tmp/rpm-tmp.sVbi0F (%build)
```
Here, for you possible options:
1) update CentOS 7 to CentOS 8;
2) update gcc compiler on CentOS7 and create a custom `libphonenumber` and `kamailio`
build.
CentOS 8 available
[
here](http://rpm.kamailio.org/centos/8/master/master/x86_64/Packages/l/).
The second option you can do yourself. We cannot use a not standard compiler on the
project.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2533#issuecomment-718740018