Skip to content
Snippets Groups Projects
  1. Mar 26, 2021
    • Maxim Cournoyer's avatar
      build: Enable the use of the dbusxx-xml2cpp tool built from contrib. · ad8909f0
      Maxim Cournoyer authored
      Previously, the build machine would need to provide dbusxx-xml2cpp
      itself, while the library would be used from the contribs (always
      forced, as dbusxx-xml2cpp is unmaintained and slightly broken on newer
      GCCs).  This change removes the requirement to have the dbus-c++
      package installed on the build machine.
      
      Change-Id: I25ad2ee3e80afc33b320de9256b724a3c254f4fb
      ad8909f0
    • Maxim Cournoyer's avatar
      contrib: ffmpeg: Add the --pkg-config-flags="--static" option. · d3bf0b38
      Maxim Cournoyer authored and Adrien Béraud's avatar Adrien Béraud committed
      Otherwise the '-lm' linker flag would not be used and compilation the
      opus configure time check would fail like (excerpt from config.log):
      
          pkg-config --exists --print-errors opus
          check_func_headers opus_multistream.h opus_multistream_decoder_create -I/home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/include/opus -L/home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/lib -lopus
          test_ld cc -I/home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/include/opus -L/home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/lib -lopus
          test_cc -I/home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/include/opus -L/home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/lib
          BEGIN /tmp/ffconf.Ad6jtRUj/test.c
              1	#include <opus_multistream.h>
              2	#include <stdint.h>
              3	long check_opus_multistream_decoder_create(void) { return (long) opus_multistream_decoder_create; }
              4	int main(void) { int ret = 0;
              5	 ret |= ((intptr_t)check_opus_multistream_decoder_create) & 0xFFFF;
              6	return ret; }
          END /tmp/ffconf.Ad6jtRUj/test.c
          gcc -I/home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/include -fPIC -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -I/home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/include -DNDEBUG=1 -O3 -fPIC -I/home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/include -DNDEBUG=1 -O3 -std=c11 -fomit-frame-pointer -fPIC -I/include -pthread -I/home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/include -I/home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/include/opus -L/home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/lib -c -o /tmp/ffconf.Ad6jtRUj/test.o /tmp/ffconf.Ad6jtRUj/test.c
          gcc -L/home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/lib -L/home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/lib -Wl,--as-needed -Wl,-z,noexecstack -I/home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/include/opus -L/home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/lib -o /tmp/ffconf.Ad6jtRUj/test /tmp/ffconf.Ad6jtRUj/test.o -lopus
          ld: /home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/lib/libopus.a(celt_decoder.o): in function `celt_decode_lost':
          celt_decoder.c:(.text+0x20d0): undefined reference to `sqrtf'
          ld: celt_decoder.c:(.text+0x20f5): undefined reference to `sqrtf'
          ld: /home/mcournoyer/src/ring-project/daemon/contrib/x86_64-unknown-linux-gnu/lib/libopus.a(bands.o): in function `compute_theta':
          bands.c:(.text+0xe87): undefined reference to `sqrtf'
          ld: bands.c:(.text+0x1178): undefined reference to `sqrtf'
      
      The problem likely was discovered because using a subset of the
      required dependencies that didn't pull the math library.
      
      Change-Id: I79bc4f79eaa2288bf20528cd770f1ddafd56dec3
      d3bf0b38
    • Adrien Béraud's avatar
      getline: use input string as stream, skip empty · 42782229
      Adrien Béraud authored and Sébastien Blin's avatar Sébastien Blin committed
      Change-Id: I2ea856c183df317eab45a5d6d5533ef1b3b6a0df
      42782229
  2. Mar 25, 2021
  3. Mar 24, 2021
  4. Mar 22, 2021
  5. Mar 19, 2021
  6. Mar 18, 2021
  7. Mar 17, 2021
    • Mohamed Chibani's avatar
      upnp: code improvements and bug fixes · 1a6cc728
      Mohamed Chibani authored and Sébastien Blin's avatar Sébastien Blin committed
      This patch adds many improvements and bug fixes:
      1- For PUPNP lib, use the synchronous methods for add and remove
      requests. The async versions have many issues mainly at shutdown.
      If the callbacks do not arrive on time, the memory allocated by
      the lib when performing the request will leak.
      2- Rework the init and IGD search of PUPNP.
      3- Move the termination step (for libupnp in particular) from
      the destructor to a newly added method (termiinate()). This will
      prevent a race at shutdown between libupnp threads (callbacks) and
      the daemon shutdown process.
      4- Do not try to initialize libupnp if the host address is invalid.
      This will prevent putting the lib in an unstable state.
      
      Gitlab: #472
      
      Change-Id: I14e5ddcd2b735da374a1f09bcef40f6a86a38133
      1a6cc728
  8. Mar 16, 2021
  9. Mar 15, 2021
  10. Mar 12, 2021
    • Sébastien Blin's avatar
      pjproject: follow security advisories · ba05f4fb
      Sébastien Blin authored
      Apply patches for CVE-2021-21375 and CVE-2020-15260 affecting
      prproject. After a quick look I don't think those issues apply to
      us, as GnuTLS manages the TLS part and we do resolution outside
      pjsip (the daemon passes ips), but at least our pjproject will
      not be affected.
      
      Note, these patches will be removed when we bump pjproject to 2.11.
      
      Change-Id: Ie9029f5501096c7148416cbb803a40f1c053a3d0
      Unverified
      ba05f4fb
  11. Mar 11, 2021
  12. Mar 10, 2021
Loading