Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/5] package/mplayer: fix musl build error
@ 2017-04-10 20:41 Bernd Kuhls
  2017-04-10 20:41 ` [Buildroot] [PATCH 2/5] package/mplayer: mmxext requires sse Bernd Kuhls
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Bernd Kuhls @ 2017-04-10 20:41 UTC (permalink / raw)
  To: buildroot

Fixes
http://autobuild.buildroot.net/results/08e/08ed316677f519c8005928366aea89570527a033/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/0006-musl-ldt.patch | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 package/mplayer/0006-musl-ldt.patch

diff --git a/package/mplayer/0006-musl-ldt.patch b/package/mplayer/0006-musl-ldt.patch
new file mode 100644
index 000000000..8165f6f56
--- /dev/null
+++ b/package/mplayer/0006-musl-ldt.patch
@@ -0,0 +1,22 @@
+Fixes musl build error
+
+loader/ldt_keeper.o: In function `Setup_LDT_Keeper':
+ldt_keeper.c:(.text+0xab): undefined reference to `modify_ldt'
+
+Downloaded from
+https://github.com/dimkr/rlsd2/blob/master/rules/mplayer/musl.patch
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+diff -rup MPlayer-1.1.1-orig/loader/ldt_keeper.c MPlayer-1.1.1/loader/ldt_keeper.c
+--- MPlayer-1.1.1-orig/loader/ldt_keeper.c	2015-04-23 15:07:09.580805888 +0300
++++ MPlayer-1.1.1/loader/ldt_keeper.c	2015-04-23 15:08:07.736807270 +0300
+@@ -47,7 +47,7 @@
+ #if defined(__GLIBC__) &&  (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 0))
+ _syscall3( int, modify_ldt, int, func, void *, ptr, unsigned long, bytecount );
+ #else
+-int modify_ldt(int func, void *ptr, unsigned long bytecount);
++#define modify_ldt(func, ptr, bytecount) syscall(__NR_modify_ldt, func, ptr, bytecount)
+ #endif
+ #else
+ #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-04-24 19:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-10 20:41 [Buildroot] [PATCH 1/5] package/mplayer: fix musl build error Bernd Kuhls
2017-04-10 20:41 ` [Buildroot] [PATCH 2/5] package/mplayer: mmxext requires sse Bernd Kuhls
2017-04-10 20:41 ` [Buildroot] [PATCH 3/5] package/mplayer: fix compilation failure with MMX in libmpcodecs/vf_fspp.c Bernd Kuhls
2017-04-10 20:41 ` [Buildroot] [PATCH 4/5] package/mplayer: disable inline mmx Bernd Kuhls
2017-04-10 20:41 ` [Buildroot] [PATCH 5/5] package/mplayer: disable external mmx Bernd Kuhls
2017-04-12 20:52 ` [Buildroot] [PATCH 1/5] package/mplayer: fix musl build error Thomas Petazzoni
2017-04-24 19:24   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox