Bug#986494: sipxtapi: FTBFS with glibc >= 2.32

Logan Rosen logan at ubuntu.com
Tue Apr 6 23:43:41 BST 2021


Package: sipxtapi
Version: 3.3.0~test18+dfsg.1-0.1
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu hirsute ubuntu-patch

Hi,

sipxtapi currently FTBFS against glibc 2.32, which is used in the
development release of Ubuntu (and should be in Debian soon).

This is because it uses sys_errlist instead of strerror(), which is also
supported in earlier versions of glibc.

In Ubuntu, the attached patch was applied to achieve the following:

  * d/p/glibc_2.32.patch: Use strerror() instead of sys_errlist to fix FTBFS
    with glibc >= 2.32.

Thanks for considering the patch.

Logan
-------------- next part --------------
diff -Nru sipxtapi-3.3.0~test18+dfsg.1/debian/patches/glibc_2.32.patch sipxtapi-3.3.0~test18+dfsg.1/debian/patches/glibc_2.32.patch
--- sipxtapi-3.3.0~test18+dfsg.1/debian/patches/glibc_2.32.patch	1969-12-31 19:00:00.000000000 -0500
+++ sipxtapi-3.3.0~test18+dfsg.1/debian/patches/glibc_2.32.patch	2021-04-06 18:38:38.000000000 -0400
@@ -0,0 +1,11 @@
+--- a/sipXmediaLib/src/mp/MpOss.cpp
++++ b/sipXmediaLib/src/mp/MpOss.cpp
+@@ -847,7 +847,7 @@
+    {
+       OsSysLog::add(FAC_MP, PRI_EMERG,
+                     "OSS: could not set OSS trigger fd=%d. ioctl returned: %d (%s)\n",
+-                    mfdDevice, errno, sys_errlist[errno]); 
++                    mfdDevice, errno, strerror(errno)); 
+    }
+    return res;
+ }
diff -Nru sipxtapi-3.3.0~test18+dfsg.1/debian/patches/series sipxtapi-3.3.0~test18+dfsg.1/debian/patches/series
--- sipxtapi-3.3.0~test18+dfsg.1/debian/patches/series	2020-04-17 12:34:05.000000000 -0400
+++ sipxtapi-3.3.0~test18+dfsg.1/debian/patches/series	2021-04-06 18:38:01.000000000 -0400
@@ -1,2 +1,3 @@
 fix_gettid.patch
 remove_examples.patch
+glibc_2.32.patch


More information about the Pkg-voip-maintainers mailing list