[MPlayer-users] [patch] Simple patch for ldt_keep.c to workaround a problem.

Jorge Ventura jorge.ventura at fusemail.com
Thu Jan 13 17:10:08 CET 2005


This patch is just a report of a workaround to the problem I found when
trying to generate debian package from CVS.

The definition of "struct modify_ldt_ldt_s" is missing because it is
into the  "#ifdef __linux__" else clause.


The compile error is:

make[2]: Entering directory `/var/tmp/mplayer/mplayer-20050104/main/loader'
cc -I. -I.. -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -O4
-march=i486 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer
-D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -U_FILE_OFFSET_BITS -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DMPLAYER
-D__WINE__  -c ldt_keeper.c
ldt_keeper.c: In function `Setup_LDT_Keeper':
ldt_keeper.c:181: storage size of `array' isn't known
ldt_keeper.c:214: sizeof applied to an incomplete type
make[2]: *** [ldt_keeper.o] Error 1
make[2]: Leaving directory `/var/tmp/mplayer/mplayer-20050104/main/loader'
make[1]: *** [loader/libloader.a] Error 2
make[1]: Leaving directory `/var/tmp/mplayer/mplayer-20050104/main'
make: *** [build-stamp] Error 2

The patch is:
Logging in to :pserver:anonymous at mplayerhq.hu:2401/cvsroot/mplayer
Index: loader/ldt_keeper.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/ldt_keeper.c,v
retrieving revision 1.15
diff -u -3 -p -u -r1.15 ldt_keeper.c
--- loader/ldt_keeper.c        21 Dec 2004 23:26:45 -0000        1.15
+++ loader/ldt_keeper.c        4 Jan 2005 12:42:27 -0000
@@ -67,6 +67,7 @@ int sysi86(int, void*);

 #define       TEB_SEL_IDX     NUMSYSLDTS
 #endif
+#endif

 #define LDT_ENTRIES     8192
 #define LDT_ENTRY_SIZE  8
@@ -86,7 +87,6 @@ struct modify_ldt_ldt_s {
 #define MODIFY_LDT_CONTENTS_DATA        0
 #define MODIFY_LDT_CONTENTS_STACK       1
 #define MODIFY_LDT_CONTENTS_CODE        2
-#endif


 /* user level (privilege level: 3) ldt (1<<2) segment selector */


Pls, let me know if its a bug or if its my mistake.

Thanks in advance,
Ventura




More information about the MPlayer-users mailing list