[MPlayer-users] Trouble compiling, ldt_keeper?

Torinthiel torinthiel at megapolis.pl
Tue Oct 26 22:38:57 CEST 2004


On Tue, Oct 26, 2004 at 08:24:05PM +0000, Todd ... wrote:
> I am using Linux, kernel 2.6.6. Gentoo tends to be a very bleeding edge 
> distro. But I have built mplayer before, on this very machine. the reason I 
> did this was because I noticed I did not compile in DVD support so I am 
> trying to re-compile.
> 
> anyway. I looked in the file you mentioned (asm/ldt.h) and found the line 
> you said was having the issue (modify_ldt_ldt_s) moved that to the top of 
> the file but ended up with the same error.

Only the line? Or whole modify_ldt_ldt_s definition (up to '}')?
Hmmm. You say 2.6.6 has modify_ldt_ldt_s, not user_desc?
Try then the included patch. Hope it applies, as it's for CVS, not
MPlayer-1.0-pre4.
Torinthiel

-- 
 Waclaw "Torinthiel" Schiller       GG#: 542916, 3073512
   torinthiel(at)megapolis(dot)pl
   gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8  7346 2B6E 39F2 B069 01F1
 "No classmates may be used during this examination"
-------------- next part --------------
Index: ldt_keeper.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/ldt_keeper.c,v
retrieving revision 1.14
diff -u -r1.14 ldt_keeper.c
--- ldt_keeper.c	17 Sep 2004 10:37:56 -0000	1.14
+++ ldt_keeper.c	26 Oct 2004 20:36:58 -0000
@@ -26,7 +26,7 @@
 #include <asm/ldt.h>
 // 2.5.xx+ calls this user_desc:
 #include <linux/version.h>
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,47)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,47))&&(LINUX_VERSION_CODE < KERNEL_VERSION(2,6,6))
 #define modify_ldt_ldt_s user_desc
 #endif
 /* prototype it here, so we won't depend on kernel headers */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20041026/bca370c6/attachment.pgp>


More information about the MPlayer-users mailing list