Package Details: ortp 5.1.71-2

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.20
First Submitted: 2022-11-05 08:56 (UTC)
Last Updated: 2022-11-26 18:28 (UTC)

Latest Comments

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?