[sr-dev] [kamailio/kamailio] phonenum: cannot build on fresh dist (#2684)

sergey-safarov notifications at github.com
Fri Mar 19 11:28:55 CET 2021


```
make[3]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M db_perlvdb.so] db_perlvdb.so
CC (gcc) [M phonenum.so] phonenum_mod.o
CC (gcc) [M phonenum.so] phonenum_pv.o
Compiling cphonenumber.cpp
g++ -std=c++11 -fPIC -DPIC -g -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -pthread -DKSR_PTHREAD_MUTEX_SHARED -Wall -Wno-write-strings -Wno-deprecated -Wno-unused-function -Wno-sign-compare -Wno-strict-aliasing -fPIC -DPIC -g -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -pthread -DKSR_PTHREAD_MUTEX_SHARED -Wall  -DNAME='"kamailio"' -DVERSION='"5.5.0-dev4"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 10.2.1"' -D__CPU_x86_64 -D__OS_linux -DVERSIONVAL=5005000 -DCFG_DIR='"/etc/kamailio/"' -DSHARE_DIR='"/usr/share/kamailio/"' -DRUN_DIR='"/var/run/kamailio/"' -DPKG_MALLOC -DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLOCKLIST -DUSE_NAPTR -DWITH_XAVP -DMEM_JOIN_FREE -DF_MALLOC -DQ_MALLOC -DTLSF_MALLOC -DDBG_SR_MEMORY -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DUSE_SCTP -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DHAVE_IP_MREQN -DUSE_RAW_SOCKS -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT  -I/opt/local/include -DMOD_NAME='"phonenum"' -c cphonenumber.cpp -o cphonenumber.o
In file included from /usr/include/phonenumbers/phonenumberutil.h:31,
                 from cphonenumber.cpp:25:
/usr/include/phonenumbers/phonenumber.pb.h:47:51: error: 'AuxiliaryParseTableField' in namespace 'google::protobuf::internal' does not name a type; did you mean 'AuxillaryParseTableField'?
   47 |   static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                                   AuxillaryParseTableField
In file included from /usr/include/phonenumbers/phonenumberutil.h:31,
                 from cphonenumber.cpp:25:
/usr/include/phonenumbers/phonenumber.pb.h:89:30: error: 'ConstStringParam' is not a member of 'google::protobuf'
   89 |     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PhoneNumber_CountryCodeSource* value);
      |                              ^~~~~~~~~~~~~~~~
/usr/include/phonenumbers/phonenumber.pb.h:89:82: error: expected primary-expression before '*' token
   89 |     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PhoneNumber_CountryCodeSource* value);
      |                                                                                  ^
/usr/include/phonenumbers/phonenumber.pb.h:89:84: error: 'value' was not declared in this scope
   89 |     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PhoneNumber_CountryCodeSource* value);
      |                                                                                    ^~~~~
/usr/include/phonenumbers/phonenumber.pb.h:89:89: error: expression list treated as compound expression in initializer [-fpermissive]
   89 |     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PhoneNumber_CountryCodeSource* value);
      |                                                                                         ^
/usr/include/phonenumbers/phonenumber.pb.h:221:71: error: 'google::protobuf::ConstStringParam' has not been declared
  221 |   static inline bool CountryCodeSource_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
      |                                                                       ^~~~~~~~~~~~~~~~
/usr/include/phonenumbers/phonenumber.pb.h: In static member function 'static bool i18n::phonenumbers::PhoneNumber::CountryCodeSource_Parse(int, i18n::phonenumbers::PhoneNumber::CountryCodeSource*)':
/usr/include/phonenumbers/phonenumber.pb.h:223:59: error: 'i18n::phonenumbers::PhoneNumber_CountryCodeSource_Parse' cannot be used as a function
  223 |     return PhoneNumber_CountryCodeSource_Parse(name, value);
      |                                                           ^
make[2]: *** [Makefile:23: cphonenumber.o] Error 1
make[1]: *** [Makefile:511: modules] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/kamailio-5.5.0-dev4/src'
make: *** [Makefile:34: every-module] Error 2
```

Compiled on `Fedora 33` with `protobuf 3.12.4`


-- 
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/2684
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210319/5e138d98/attachment.htm>


More information about the sr-dev mailing list