<p></p>
<p>For CentOS7 upgrade is not possible. The compiler does not support class <code>std::unique_ptr</code>.</p>
<pre><code>[ 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.12.11.tar.gz to /root/rpmbuild/SOURCES/libphonenumber-8.12.11.tar.gz
    Bad exit status from /var/tmp/rpm-tmp.sVbi0F (%build)
</code></pre>
<p>Here, for you possible options:</p>
<ol>
<li>update CentOS 7 to CentOS 8;</li>
<li>update gcc compiler on CentOS7 and create a custom <code>libphonenumber</code> and <code>kamailio</code> build.</li>
</ol>
<p>CentOS 8 available <a href="http://rpm.kamailio.org/centos/8/master/master/x86_64/Packages/l/" rel="nofollow">here</a>.<br>
The second option you can do yourself. We cannot use a not standard compiler on the project.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2533#issuecomment-718740018">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMTPBJKQVWFU37EC43SNFSH3ANCNFSM4TAA6PLA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZOREWBLMJA4NW5ZNRLSNFSH3A5CNFSM4TAA6PLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFLLRUMQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2533#issuecomment-718740018",
"url": "https://github.com/kamailio/kamailio/issues/2533#issuecomment-718740018",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>