Package Details: ortp 5.3.5-1

Git Clone URL: https://aur.archlinux.org/ortp.git (read-only, click to copy)
Package Base: ortp
Description: A Real-time Transport Protocol (RTP) library
Upstream URL: https://gitlab.linphone.org/
Licenses: GPL3
Submitter: arojas
Maintainer: thrasibule
Last Packager: thrasibule
Votes: 2
Popularity: 0.000001
First Submitted: 2022-11-05 08:56 (UTC)
Last Updated: 2024-01-02 19:41 (UTC)

Latest Comments

Teeed commented on 2024-05-09 16:42 (UTC)

Missing dependency to mbedtls2

dreieck commented on 2023-12-22 14:56 (UTC)

It fails to build for me with

CMake Error at CMakeLists.txt:81 (find_package):
  By not providing "Findbctoolbox.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "bctoolbox", but CMake did not find one.

  Could not find a package configuration file provided by "bctoolbox"
  (requested version 0.2.0) with any of the following names:

    bctoolboxConfig.cmake
    bctoolbox-config.cmake

  Add the installation prefix of "bctoolbox" to CMAKE_PREFIX_PATH or set
  "bctoolbox_DIR" to a directory containing one of the above files.  If
  "bctoolbox" provides a separate development package or SDK, be sure it has
  been installed.

fixeria commented on 2023-09-18 18:11 (UTC)

I cannot build this package due to a compilation error: [...]

So the problem is that package bctoolbox disables building the tester component:

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=bctoolbox&id=05505f304acfebd3f0c9995e46117a5f0c464a03#n28

so this is why header file bctoolbox/tester.h is missing.

I tried building against bctoolbox-git, which does not disable building the tester:

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=bctoolbox-git&id=8a50e9f41718c3ec5649f787c259f990507394f3#n28

however it fails with a different error I have no time to investigate further.

I managed to work-around the problem by patching PKGBUILD of this package as follows:

diff --git a/PKGBUILD b/PKGBUILD
index 0305fd1..e9702c3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -25,6 +25,7 @@ build() {
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DENABLE_STATIC=OFF \
     -DENABLE_DOC=NO \
+    -DENABLE_UNIT_TESTS=NO \
     -Wno-dev
   cmake --build build
 }

fixeria commented on 2023-09-18 16:51 (UTC)

I cannot build this package due to a compilation error:

[ 92%] Built target ortp
[ 97%] Building C object tester/CMakeFiles/ortp_tester.dir/ortp_tester.c.o
[ 97%] Building C object tester/CMakeFiles/ortp_tester.dir/fec_tester.c.o
In file included from /home/fixeria/.cache/yay/ortp/src/ortp-5.2.73/tester/fec_tester.c:20:
/home/fixeria/.cache/yay/ortp/src/ortp-5.2.73/tester/ortp_tester.h:23:10: fatal error: bctoolbox/tester.h: No such file or directory
   23 | #include <bctoolbox/tester.h>
      |          ^~~~~~~~~~~~~~~~~~~~
In file included from /home/fixeria/.cache/yay/ortp/src/ortp-5.2.73/tester/ortp_tester.c:20:
/home/fixeria/.cache/yay/ortp/src/ortp-5.2.73/tester/ortp_tester.h:23:10: fatal error: bctoolbox/tester.h: No such file or directory
   23 | #include <bctoolbox/tester.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
make[2]: *** [tester/CMakeFiles/ortp_tester.dir/build.make:76: tester/CMakeFiles/ortp_tester.dir/ortp_tester.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [tester/CMakeFiles/ortp_tester.dir/build.make:90: tester/CMakeFiles/ortp_tester.dir/fec_tester.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:160: tester/CMakeFiles/ortp_tester.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

The bctoolbox version is 5.2.94-1 (pulled as a dependency).

sl1pkn07 commented on 2022-11-26 17:15 (UTC)

prepare() {
sed '/WARN_AS_ERROR/d' -i $pkgname-$pkgver/ortp.doxygen.in
}

more simple

RAMChYLD commented on 2022-11-26 12:28 (UTC) (edited on 2022-11-26 13:58 (UTC) by RAMChYLD)

I'm getting the same error but at a slightly different point:


[ 82%] Building C object src/CMakeFiles/ortp.dir/scheduler.c.o
/home/leecy/.cache/yay/ortp/src/ortp-5.1.71/include/ortp/b64.h:293: error: unable to resolve link to 'b64::b64_encode2' for \link command (warning treated as error, aborting now)
make[2]: *** [CMakeFiles/ortp-html-doc.dir/build.make:132: doc/html/index.html] Error 1
make[1]: *** [CMakeFiles/Makefile2:118: CMakeFiles/ortp-html-doc.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
...
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: ortp

EDIT: I managed to trace the problem down to a finicky doxygen configuration, it's configured to WARN_AS_ERROR=YES which for some reason breaks the build. I prepared a patch to turn off WARN_AS_ERROR. The downside is that the documentation generated may be broken, but the program will compile fine now.

here's the content of the patch file


leecy@mia:~/.cache/yay/ortp$ cat doxygen_disable_warn_as_error.patch 
--- ortp.doxygen.in.orig        2022-11-26 21:14:40.543864581 +0800
+++ ortp.doxygen.in     2022-11-26 21:14:57.026864093 +0800
@@ -743,7 +743,7 @@
 # a warning is encountered.
 # The default value is: NO.

-WARN_AS_ERROR          = YES
+WARN_AS_ERROR          = NO

 # The WARN_FORMAT tag determines the format of the warning messages that doxygen
 # can produce. The string should contain the $file, $line, and $text tags, which

I also created a patch of the PKGBUILD to incorporate the patch.


leecy@mia:~/.cache/yay/ortp$ cat PKGBUILD_INCULUDE_DOXYGEN_PATCH.patch 
--- PKGBUILD.orig       2022-11-26 21:37:19.566824285 +0800
+++ PKGBUILD    2022-11-26 21:54:27.941793792 +0800
@@ -13,8 +13,15 @@
 license=(GPL3)
 depends=(bctoolbox)
 makedepends=(cmake doxygen)
-source=(https://gitlab.linphone.org/BC/public/$pkgname/-/archive/$pkgver/$pkgname-$pkgver.tar.bz2)
-sha256sums=('40f3973162828cea964317bfcbeaa1386b564592b622f1b20dc7b99434bbfd74')
+source=(https://gitlab.linphone.org/BC/public/$pkgname/-/archive/$pkgver/$pkgname-$pkgver.tar.bz2
+        doxygen_disable_warn_as_error.patch)
+sha256sums=('40f3973162828cea964317bfcbeaa1386b564592b622f1b20dc7b99434bbfd74'
+            'fd46699c3e124af4fac54f82d78c7073752d9c7b48c3075f51008c3297946aac')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p0 < "${srcdir}/doxygen_disable_warn_as_error.patch"
+}

 build() {
   cmake -B build -S $pkgname-$pkgver \

jghodd commented on 2022-11-25 22:42 (UTC)

am getting the same build error as @gnaggnoyil

gnaggnoyil commented on 2022-11-07 08:06 (UTC)

Running makepkg -s with MAKEFLAGS="-j1" results the following error:

[  2%] Generating doc/html/index.html
warning: argument 'a4wide' for option PAPER_TYPE is not a valid enum value
Using the default: a4!
/home/gnaggnoyil/.cache/yay/ortp/src/ortp-5.1.67/include/ortp/b64.h:293: error: unable to resolve link to 'b64::b64_encode2' for \link command (warning treated as error, aborting now)
make[2]: *** [CMakeFiles/ortp-html-doc.dir/build.make:132: doc/html/index.html] Error 1
make[1]: *** [CMakeFiles/Makefile2:118: CMakeFiles/ortp-html-doc.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

What could possibly go wrong here?