Package Details: lib32-librtmp0 2.6-1

Git Clone URL: https://aur.archlinux.org/lib32-librtmp0.git (read-only, click to copy)
Package Base: lib32-librtmp0
Description: Toolkit for RTMP streams
Upstream URL: https://rtmpdump.mplayerhq.hu/
Licenses: GPL2, LGPL2.1
Provides: librtmp.so
Submitter: City-busz
Maintainer: voxan24
Last Packager: voxan24
Votes: 14
Popularity: 3.96
First Submitted: 2025-10-28 10:34 (UTC)
Last Updated: 2025-12-13 21:43 (UTC)

Latest Comments

gyscos commented on 2026-05-15 12:16 (UTC) (edited on 2026-05-15 12:24 (UTC) by gyscos)

Indeed it looks like librtmp0 is lagging behind the Nettle crypto lib. We could patch the source before building:

prepare() {
  cd rtmpdump
  # Switch to GnuTLS
  sed -e 's/^CRYPTO=OPENSSL/#CRYPTO=OPENSSL/' -e 's/#CRYPTO=GNUTLS/CRYPTO=GNUTLS/' -i Makefile -i librtmp/Makefile

  # Fix Nettle 3.x API mismatch (removes the extra length argument in hmac_sha256_digest)
  sed -i 's/hmac_sha256_digest(&ctx, SHA256_DIGEST_LENGTH, dig)/hmac_sha256_digest(\&ctx, dig)/' librtmp/handshake.h
}

mihalycsaba commented on 2026-05-12 14:56 (UTC)

it's failing to build

make[1]: Entering directory '/data/home-data/cache/.cache/yay/lib32-librtmp0/src/rtmpdump/librtmp'
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_GNUTLS  -march=native -O3 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -m32 -fPIC   -c -o rtmp.o rtmp.c
In file included from rtmp.c:153:
handshake.h: In function ‘InitRC4Encryption’:
handshake.h:49:33: error: passing argument 2 of ‘nettle_hmac_sha256_digest’ makes pointer from integer without a cast [-Wint-conversion]
   49 | #define SHA256_DIGEST_LENGTH    32
      |                                 ^~
      |                                 |
      |                                 int
handshake.h:55:95: note: in expansion of macro ‘SHA256_DIGEST_LENGTH’
   55 | #define HMAC_finish(ctx, dig, dlen)     dlen = SHA256_DIGEST_LENGTH; hmac_sha256_digest(&ctx, SHA256_DIGEST_LENGTH, dig)
      |                                                                                               ^~~~~~~~~~~~~~~~~~~~
handshake.h:134:3: note: in expansion of macro ‘HMAC_finish’
  134 |   HMAC_finish(ctx, digest, digestLen);
      |   ^~~~~~~~~~~
In file included from handshake.h:46:
/usr/include/nettle/hmac.h:154:29: note: expected ‘uint8_t *’ {aka ‘unsigned char *’} but argument is of type ‘int’
  154 |                    uint8_t *digest);
      |                    ~~~~~~~~~^~~~~~
handshake.h:55:70: error: too many arguments to function ‘nettle_hmac_sha256_digest’; expected 2, have 3
   55 | #define HMAC_finish(ctx, dig, dlen)     dlen = SHA256_DIGEST_LENGTH; hmac_sha256_digest(&ctx, SHA256_DIGEST_LENGTH, dig)
      |                                                                      ^~~~~~~~~~~~~~~~~~
handshake.h:134:3: note: in expansion of macro ‘HMAC_finish’
  134 |   HMAC_finish(ctx, digest, digestLen);
      |   ^~~~~~~~~~~
/usr/include/nettle/hmac.h:153:1: note: declared here
  153 | hmac_sha256_digest(struct hmac_sha256_ctx *ctx,
      | ^~~~~~~~~~~~~~~~~~

mihalycsaba commented on 2026-05-12 14:54 (UTC)

it's failing to build

==> Starting build()...
make[1]: Entering directory '/data/home-data/cache/.cache/yay/librtmp0/src/rtmpdump/librtmp'
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_GNUTLS  -march=native -O3 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -fPIC   -c -o rtmp.o rtmp.c
In file included from rtmp.c:126:
handshake.h: In function ‘InitRC4Encryption’:
handshake.h:49:33: error: passing argument 2 of ‘nettle_hmac_sha256_digest’ makes pointer from integer without a cast [-Wint-conversion]
   49 | #define SHA256_DIGEST_LENGTH    32
      |                                 ^~
      |                                 |
      |                                 int
handshake.h:55:95: note: in expansion of macro ‘SHA256_DIGEST_LENGTH’
   55 | #define HMAC_finish(ctx, dig, dlen)     dlen = SHA256_DIGEST_LENGTH; hmac_sha256_digest(&ctx, SHA256_DIGEST_LENGTH, dig)
      |                                                                                               ^~~~~~~~~~~~~~~~~~~~
handshake.h:127:3: note: in expansion of macro ‘HMAC_finish’
  127 |   HMAC_finish(ctx, digest, digestLen);
      |   ^~~~~~~~~~~
In file included from handshake.h:46:
/usr/include/nettle/hmac.h:154:29: note: expected ‘uint8_t *’ {aka ‘unsigned char *’} but argument is of type ‘int’
  154 |                    uint8_t *digest);
      |                    ~~~~~~~~~^~~~~~
handshake.h:55:70: error: too many arguments to function ‘nettle_hmac_sha256_digest’; expected 2, have 3
   55 | #define HMAC_finish(ctx, dig, dlen)     dlen = SHA256_DIGEST_LENGTH; hmac_sha256_digest(&ctx, SHA256_DIGEST_LENGTH, dig)
      |                                                                      ^~~~~~~~~~~~~~~~~~
handshake.h:127:3: note: in expansion of macro ‘HMAC_finish’
  127 |   HMAC_finish(ctx, digest, digestLen);
      |   ^~~~~~~~~~~
/usr/include/nettle/hmac.h:153:1: note: declared here
  153 | hmac_sha256_digest(struct hmac_sha256_ctx *ctx,
      | ^~~~~~~~~~~~~~~~~~

EndlessEden commented on 2026-01-26 06:10 (UTC) (edited on 2026-01-26 06:26 (UTC) by EndlessEden)

please update the provides line to inform the package manager your package contains "lib32-librtmp" and 'lib32-rtmpdump'.