Hello.
I have tried to install VoLTE Setup with Kamailio IMS on Ubuntu 22.04. but I face two
errors:
1) IPsec-tools packages not supported for Ubuntu 22.04.
2) when I tried to compile Kamailio the cdp modules were not compiled and showed this
error:
make[2]: Entering directory '/usr/local/src/kamailio/src/modules/cdp'
Makefile.defs defs skipped
gcc -shared -Wl,-O2 -Wl,-E -pthread -rdynamic -ldl -Wl,-Bsymbolic-functions acceptor.o
acctstatemachine.o api_process.o authstatemachine.o cdp_functions.o cdp_load.o cdp_mod.o
cdp_rpc.o cdp_stats.o common.o config.o configparser.o diameter_avp.o diameter_comm.o
diameter_msg.o diameter_peer.o globals.o peer.o peermanager.o peerstatemachine.o
receiver.o routing.o session.o tcp_accept.o timer.o transaction.o worker.o -lxml2 -lrt
-lpthread -o cdp.so
/usr/bin/ld: cdp_mod.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:68:
multiple definition of `dp_first_pid';
acceptor.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:68: first defined here
/usr/bin/ld: cdp_mod.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:70:
multiple definition of `pid_list';
acceptor.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:70: first defined here
/usr/bin/ld: cdp_mod.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:71:
multiple definition of `pid_list_lock';
acceptor.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:71: first defined here
/usr/bin/ld: diameter_peer.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:68:
multiple definition of `dp_first_pid';
acceptor.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:68: first defined here
/usr/bin/ld: diameter_peer.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:70:
multiple definition of `pid_list';
acceptor.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:70: first defined here
/usr/bin/ld: diameter_peer.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:71:
multiple definition of `pid_list_lock';
acceptor.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:71: first defined here
/usr/bin/ld: receiver.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:68:
multiple definition of `dp_first_pid';
acceptor.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:68: first defined here
/usr/bin/ld: receiver.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:70:
multiple definition of `pid_list';
acceptor.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:70: first defined here
/usr/bin/ld: receiver.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:71:
multiple definition of `pid_list_lock';
acceptor.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:71: first defined here
/usr/bin/ld: timer.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:68: multiple
definition of `dp_first_pid';
acceptor.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:68: first defined here
/usr/bin/ld: timer.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:70: multiple
definition of `pid_list';
acceptor.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:70: first defined here
/usr/bin/ld: timer.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:71: multiple
definition of `pid_list_lock';
acceptor.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:71: first defined here
/usr/bin/ld: worker.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:68: multiple
definition of `dp_first_pid';
acceptor.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:68: first defined here
/usr/bin/ld: worker.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:70: multiple
definition of `pid_list';
acceptor.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:70: first defined here
/usr/bin/ld: worker.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:71: multiple
definition of `pid_list_lock';
acceptor.o:/usr/local/src/kamailio/src/modules/cdp/diameter_peer.h:71: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [../../Makefile.rules:191: cdp.so] Error 1
make[2]: Leaving directory '/usr/local/src/kamailio/src/modules/cdp'
make[1]: *** [Makefile:511: modules] Error 1
make[1]: Leaving directory '/usr/local/src/kamailio/src'
make: *** [Makefile:34: all] Error 2
How can I solve it?
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3701
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3701(a)github.com>