Description

"ims_registrar_scscf" cannot be compiled on Fedora 40 dist.

CC (gcc) [M ims_registrar_scscf.so]		reply.o
CC (gcc) [M ims_registrar_scscf.so]		rerrno.o
CC (gcc) [M ims_registrar_scscf.so]		save.o
CC (gcc) [M ims_registrar_scscf.so]		server_assignment.o
CC (gcc) [M ims_registrar_scscf.so]		sip_msg.o
CC (gcc) [M ims_registrar_scscf.so]		stats.o
CC (gcc) [M ims_registrar_scscf.so]		userdata_parser.o
userdata_parser.c: In function ‘ifc_tDefaultHandling2char’:
userdata_parser.c:126:13: error: implicit declaration of function ‘strtol’; did you mean ‘strtok’? [-Wimplicit-function-declaration]
  126 |         r = strtol((char *)x, (char **)NULL, 10);
      |             ^~~~~~
      |             strtok
userdata_parser.c: In function ‘parse_spt_extension’:
userdata_parser.c:411:32: error: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration]
  411 |                         switch(atoi((char *)x)) {
      |                                ^~~~
make[2]: *** [../../Makefile.rules:100: userdata_parser.o] Error 1
make[1]: *** [Makefile:508: modules] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/kamailio-5.8.1/src'
make: *** [Makefile:34: every-module] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.tyeQgK (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.tyeQgK (%build)

Additional Information

used modified 5.8.1 version
[root@sbc-stage-a0 SPECS]# cat /etc/os-release 
NAME="Fedora Linux"
VERSION="40 (Container Image)"
ID=fedora
VERSION_ID=40
VERSION_CODENAME=""
PLATFORM_ID="platform:f40"
PRETTY_NAME="Fedora Linux 40 (Container Image)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:40"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f40/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=40
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=40
SUPPORT_END=2025-05-13
VARIANT="Container Image"
VARIANT_ID=container


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/issues/3855@github.com>