[MPlayer-dev-eng] [PATCH] fix build failure with current FFMPEG
Erik Auerswald
auerswal at unix-ag.uni-kl.de
Tue Jul 24 07:57:24 CEST 2012
Hi,
the attached patch fixes this build error with current FFMPEG:
In file included from libavformat/rtmpcrypt.c:35:0:
libavformat/rtmpdh.h:28:5: warning: "CONFIG_NETTLE" is not defined [-Wundef]
libavformat/rtmpdh.h:28:22: warning: "CONFIG_GCRYPT" is not defined
[-Wundef]
libavformat/rtmpdh.h:62:1: error: unknown type name 'FF_DH'
libavformat/rtmpdh.h:69:17: error: unknown type name 'FF_DH'
libavformat/rtmpdh.h:77:31: error: unknown type name 'FF_DH'
libavformat/rtmpdh.h:87:28: error: unknown type name 'FF_DH'
libavformat/rtmpdh.h:99:37: error: unknown type name 'FF_DH'
libavformat/rtmpcrypt.c:43:5: error: unknown type name 'FF_DH'
libavformat/rtmpcrypt.c: In function 'ff_rtmpe_gen_pub_key':
libavformat/rtmpcrypt.c:133:5: error: implicit declaration of function
'ff_dh_generate_public_key' [-Werror=implicit-function-declaration]
libavformat/rtmpcrypt.c:137:5: error: implicit declaration of function
'ff_dh_write_public_key' [-Werror=implicit-function-declaration]
libavformat/rtmpcrypt.c: In function 'ff_rtmpe_compute_secret_key':
libavformat/rtmpcrypt.c:163:5: error: implicit declaration of function
'ff_dh_compute_shared_secret_key' [-Werror=implicit-function-declaration]
libavformat/rtmpcrypt.c: In function 'rtmpe_close':
libavformat/rtmpcrypt.c:240:5: error: implicit declaration of function
'ff_dh_free' [-Werror=implicit-function-declaration]
libavformat/rtmpcrypt.c: In function 'rtmpe_write':
libavformat/rtmpcrypt.c:301:9: warning: passing argument 2 of
'av_rc4_crypt' discards 'const' qualifier from pointer target type
[enabled by default]
In file included from libavformat/rtmpcrypt.c:30:0:
./libavutil/rc4.h:48:6: note: expected 'uint8_t *' but argument is of
type 'const uint8_t *'
cc1: some warnings being treated as errors
make[1]: *** [libavformat/rtmpcrypt.o] Error 1
make[1]: Leaving directory `/home/auerswald/work/mplayer-svn/ffmpeg'
make: *** [ffmpeg/libavformat/libavformat.a] Error 2
Adding '#define CONFIG_NETTLE 0' to configure silences the other
warning, but is not needed to build MPlayer.
Thanks,
Erik
--
http://www.unix-ag.uni-kl.de/~auerswal/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-fix-rtmpcrypt-build-error-2012-07-24.patch
Type: text/x-diff
Size: 338 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20120724/00806b50/attachment.bin>
More information about the MPlayer-dev-eng
mailing list