git: cd3dd014178f - main - multimedia/vvenc: fix build on big-endian
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Mar 2023 09:49:26 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=cd3dd014178f296fa95d3496460423c4f84c3ccb
commit cd3dd014178f296fa95d3496460423c4f84c3ccb
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-03-09 09:48:55 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-03-09 09:48:55 +0000
multimedia/vvenc: fix build on big-endian
ld: error: duplicate symbol: vvenc::byteReverse(unsigned int*, unsigned int)
>>> defined at PicYuvMD5.cpp
>>> source/Lib/vvenc/CMakeFiles/vvenc.dir/__/CommonLib/PicYuvMD5.cpp.o:(vvenc::byteReverse(unsigned int*, unsigned int))
>>> defined at EncGOP.cpp
>>> source/Lib/vvenc/CMakeFiles/vvenc.dir/__/EncoderLib/EncGOP.cpp.o:(.text+0x0)
---
multimedia/vvenc/files/patch-source_Lib_CommonLib_MD5.h | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/multimedia/vvenc/files/patch-source_Lib_CommonLib_MD5.h b/multimedia/vvenc/files/patch-source_Lib_CommonLib_MD5.h
new file mode 100644
index 000000000000..76f1f524d043
--- /dev/null
+++ b/multimedia/vvenc/files/patch-source_Lib_CommonLib_MD5.h
@@ -0,0 +1,16 @@
+--- source/Lib/CommonLib/MD5.h.orig 2023-03-07 19:25:15 UTC
++++ source/Lib/CommonLib/MD5.h
+@@ -57,11 +57,11 @@ static const uint32_t MD5_DIGEST_STRING_LENGTH=16;
+ #ifndef __BIG_ENDIAN__
+ # define byteReverse(buf, len) /* Nothing */
+ #else
+-void byteReverse(uint32_t *buf, unsigned len);
++static void byteReverse(uint32_t *buf, unsigned len);
+ /*
+ * Note: this code is harmless on little-endian machines.
+ */
+-void byteReverse(uint32_t *buf, unsigned len)
++static void byteReverse(uint32_t *buf, unsigned len)
+ {
+ uint32_t t;
+ do {