Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498840 - media-video/rtmpdump-2.4_p20131018 USE=gnutls should depend on || ( net-libs/gnutls[nettle] >=net-libs/gnutls-3.2.7 ) - [...work/librtmp/]rtmp.c:57:27: fatal error: nettle/base64.h: No such file or directory
Summary: media-video/rtmpdump-2.4_p20131018 USE=gnutls should depend on || ( net-libs/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-21 20:43 UTC by Jaak Ristioja
Modified: 2016-08-11 11:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaak Ristioja 2014-01-21 20:43:45 UTC
[ebuild     U  ] media-video/rtmpdump-2.4_p20131018 [2.3] USE="gnutls ssl (-polarssl)" 0 kB

...

>>> Emerging (1 of 1) media-video/rtmpdump-2.4_p20131018
 * rtmpdump-2.4_p20131018.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                     [ ok ]
>>> Unpacking source...
>>> Unpacking rtmpdump-2.4_p20131018.tar.gz to /var/tmp/portage/media-video/rtmpdump-2.4_p20131018/work
>>> Source unpacked in /var/tmp/portage/media-video/rtmpdump-2.4_p20131018/work
>>> Preparing source in /var/tmp/portage/media-video/rtmpdump-2.4_p20131018/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-video/rtmpdump-2.4_p20131018/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/media-video/rtmpdump-2.4_p20131018/work ...
make -j2 CC=x86_64-pc-linux-gnu-gcc LD=x86_64-pc-linux-gnu-ld 'OPT=-O2 -pipe -march=native -ggdb' 'XLDFLAGS=-Wl,-O1 -Wl,--as-needed' CRYPTO=GNUTLS SYS=posix 
x86_64-pc-linux-gnu-gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -O2 -pipe -march=native -ggdb   -c -o rtmpdump.o rtmpdump.c
make[1]: Entering directory `/var/tmp/portage/media-video/rtmpdump-2.4_p20131018/work/librtmp'
x86_64-pc-linux-gnu-gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_GNUTLS  -fPIC -O2 -fPIC -O2 -pipe -march=native -ggdb   -c -o rtmp.o rtmp.c
rtmp.c:57:27: fatal error: nettle/base64.h: No such file or directory
compilation terminated.
make[1]: *** [rtmp.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-video/rtmpdump-2.4_p20131018/work/librtmp'
make: *** [librtmp/librtmp.a] Error 2
make: *** Waiting for unfinished jobs....
 * ERROR: media-video/rtmpdump-2.4_p20131018::gentoo failed (compile phase):
 *   emake failed
Comment 1 Jaak Ristioja 2014-01-21 20:46:23 UTC
Or rather net-libs/gnutls[nettle] perhaps?
Comment 2 rogge 2014-01-29 12:26:16 UTC
I can confirm this error.

>>> Emerging (1 of 41) media-video/rtmpdump-2.4_p20131018
>>> Failed to emerge media-video/rtmpdump-2.4_p20131018, Log file:
>>>  '/var/tmp/portage/media-video/rtmpdump-2.4_p20131018/temp/build.log'
 * Package:    media-video/rtmpdump-2.4_p20131018
 * Repository: gentoo
 * Maintainer: hwoarang@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc gnutls kernel_linux multilib ssl userland_GNU
 * FEATURES:   ccache preserve-libs sandbox userpriv usersandbox
x86_64-pc-linux-gnu-gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -march=core2 -O2 -pipe   -c -o rtmpdump.o rtmpdump.c
x86_64-pc-linux-gnu-gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -march=core2 -O2 -pipe   -c -o rtmpgw.o rtmpgw.c
x86_64-pc-linux-gnu-gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -march=core2 -O2 -pipe   -c -o thread.o thread.c
x86_64-pc-linux-gnu-gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -march=core2 -O2 -pipe   -c -o rtmpsrv.o rtmpsrv.c
make[1]: Entering directory `/var/tmp/portage/media-video/rtmpdump-2.4_p20131018/work/librtmp'
x86_64-pc-linux-gnu-gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_GNUTLS  -fPIC -O2 -fPIC -march=core2 -O2 -pipe   -c -o rtmp.o rtmp.c
x86_64-pc-linux-gnu-gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_GNUTLS  -fPIC -O2 -fPIC -march=core2 -O2 -pipe   -c -o log.o log.c
rtmp.c:57:27: fatal error: nettle/base64.h: No such file or directory
compilation terminated.
make[1]: *** [rtmp.o] Error 1
make[1]: *** Waiting for unfinished jobs....
x86_64-pc-linux-gnu-gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -march=core2 -O2 -pipe   -c -o rtmpsuck.o rtmpsuck.c
make[1]: Leaving directory `/var/tmp/portage/media-video/rtmpdump-2.4_p20131018/work/librtmp'
make: *** [librtmp/librtmp.a] Error 2
make: *** Waiting for unfinished jobs....
rtmpsrv.c: In function ‘dumpAMF’:
rtmpsrv.c:407:10: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]
 * ERROR: media-video/rtmpdump-2.4_p20131018::gentoo failed (compile phase):
 *   emake failed

With -gnutls and -ssl (I don't need anything here) it works fine.
Comment 3 Brian Haslett 2015-03-13 14:05:20 UTC
I had the same problem here.  I noticed it after I ran depclean on the system, which removed nettle and then revdep-rebuild tried to build it with just gnutls, at which point it errored out because it was missing a header from nettle.   I changed line#20 of  the rtmpdump-2.4_p20131018 ebuild to this to fix the issue:

gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP},nettle] )
Comment 4 Coacher 2015-12-23 19:59:45 UTC
Indeed, 'librtmp/rtmp.c' file from sources has these lines:

#elif defined(USE_GNUTLS)
#include <gnutls/gnutls.h>
#define MD5_DIGEST_LENGTH 16
#include <nettle/base64.h>
#include <nettle/md5.h>
#else	/* USE_OPENSSL */

So nettle is required. However current gnutls ebuilds in tree depend on nettle unconditionally. USE 'nettle' was actual for gnutls-2*. Since gnutls dep in rtmpdump allows gnutls-2*, nettle USE requirement should be added.

For example, like this:

gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP},nettle(+)] )

Please note this is a bit different from Brian's suggestion.
Comment 5 Craig Andrews gentoo-dev 2016-06-09 17:31:43 UTC
https://github.com/gentoo/gentoo/pull/1634
Comment 6 Patrice Clement gentoo-dev 2016-06-16 07:02:33 UTC
commit ef71138791d15731c7cf6d7319cc9ad343bac6dc (HEAD -> master, origin/master, origin/HEAD)
Author:     Craig Andrews <candrews@integralblue.com>
AuthorDate: Thu Jun 9 13:29:59 2016 -0400
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: Thu Jun 16 06:33:14 2016 +0000

media-video/rtmpdump: Depend on net-libs/gnutls when USE=gnutls is on.

Gentoo-Bug: https://bugs.gentoo.org/498840

Package-Manager: portage-2.3.0_rc1
Closes: https://github.com/gentoo/gentoo/pull/1634

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>

media-video/rtmpdump/rtmpdump-2.4_p20131018.ebuild | 2 +-
media-video/rtmpdump/rtmpdump-9999.ebuild          | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)