[MPlayer-users] compile time problems [solved]
nobody at shalmirane.net
nobody at shalmirane.net
Thu Feb 16 21:33:08 CET 2006
After some time without response in this thread, I entered deep state of
meditation and after few attempts to interpret underworld's god's message, I've
come to patch, which fixes the problem:
--- /temp/mplayer-20060216/loader/ldt_keeper.c 2006-02-12 15:14:12.000000000 +0100
+++ /temp/ldt_keeper.c 2006-02-16 21:14:15.000000000 +0100
@@ -34,7 +34,9 @@
// 2.5.xx+ calls this user_desc:
#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,47)
-#define modify_ldt_ldt_s user_desc
+#define LDT_ENTRIES 8192
+#define LDT_ENTRY_SIZE 8
+#pragma pack(4)
#endif
/* prototype it here, so we won't depend on kernel headers */
#ifdef __cplusplus
Now mplayers works and plays as supposed.
nobody at shalmirane.net wrote:
> I've checked for gcc-update (for slackware-current) - none aviable, recompiled
> once again (with extra attention to empty CLAGS both with configure/make) under
> different, newly created user, getting same error again.
>
> I've uploaded file with configure.log, output from `make` on
> http://temp.shalmirane.net/report.tgz (23,65kB)
> configure's log answers some questions like version of gcc. File error.log is
> those (make-time) errors which are usualy on fd2
>
> ================================================================================
> Config files successfully generated by ./configure !
>
> Install prefix: /usr
> Data directory: /usr/share/mplayer
> Config direct.: /usr/etc/mplayer
>
> Byte order: little-endian
> Optimizing for: athlon-xp mmx mmx2 3dnow 3dnowex sse mtrr
>
> Languages:
> Messages/GUI: cs
> Manual pages: cs en
>
> Enabled optional drivers:
> Input: ftp network tv-v4l2 tv-v4l edl tv matroska cdda mpdvdkit2 vcd dvb smb
> Codecs: qtx xvid libdv libavcodec real xanim dshow/dmo win32 faad2(internal)
> libmpeg2 liba52 mp3lib tremor(internal) libmad liblzo gif
> Audio output: alsa esd arts oss sdl mpegpes(dvb)
> Video output: xvidix cvidix sdl gif89a md5sum pnm jpeg png mpegpes(dvb)
> fbdev aa opengl dga xv x11 xover tga
> Audio filters:
> Disabled optional drivers:
> Input: vstream tv-bsdbt848 live555 dvdread
> Codecs: opendivx x264 amr_wb amr_nb faac musepack libdts libtheora speex
> twolame toolame
> Audio output: sgi sun jack polyp dxr2 nas dsound win32
> Video output: winvidix bl zr zr2 dxr3 dxr2 directx vesa svga caca ggi xmga
> mga xvmc directfb tdfx_vid tdfxfb 3dfx
> Audio filters: ladspa
>
> 'config.h' and 'config.mak' contain your configuration options.
> Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
> compile *** DO NOT REPORT BUGS if you tweak these files ***
>
> 'make' will now compile MPlayer and 'make install' will install it.
> Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.
>
> Please check mtrr settings at /proc/mtrr (see DOCS/HTML/cs/video.html#mtrr)
>
> Check configure.log if you wonder why an autodetection failed (check whether
> the development headers/packages are installed).
> Do not report compilation errors if you used any of the --enable-* options
> (except --enable-gui and maybe --enable-debug).
>
> If you suspect a bug, please read DOCS/HTML/cs/bugreports.html.
> ================================================================================
>
> and content of mtrr, as suggested to be checked by configure (don't mention it
> says me nothing) :
>
> ================================================================================
> $ cat /proc/mtrr
> reg00: base=0x00000000 ( 0MB), size=1024MB: write-back, count=1
> reg01: base=0x2e000000 ( 736MB), size= 32MB: uncachable, count=1
> reg02: base=0x30000000 ( 768MB), size= 256MB: uncachable, count=1
> reg03: base=0xd8000000 (3456MB), size= 64MB: write-combining, count=1
> reg04: base=0xd0000000 (3328MB), size= 32MB: write-combining, count=1
> ================================================================================
>
> nobody at shalmirane.net wrote:
>
>>$ gcc --version
>>gcc (GCC) 3.4.5
>>
>>
>>Dominik 'Rathann' Mierzejewski wrote:
>>
>>
>>>On Sunday, 12 February 2006 at 19:23, nobody at shalmirane.net wrote:
>>>
>>>
>>>
>>>>So I got today's CVS version (pretty fast, I am used to extremly slow cvs' on my
>>>>100mbit) and error look's same:
>>>>
>>>>19:21 at navara:/temp/mplayer-20060212$ make
>>>>make -C loader
>>>>make[1]: Entering directory `/temp/mplayer-20060212/loader'
>>>>cc -I. -I.. -I../libvo -I../../libvo -I/usr/X11/include -fno-PIC -O4
>>>>-march=athlon-xp -mtune=athlon-xp -pipe -ffast-math -fomit-frame-pointer
>>>>-D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include
>>>>-U_FILE_OFFSET_BITS -I/usr/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:188: error: storage size of 'array' isn't known
>>>>ldt_keeper.c:222: error: invalid application of `sizeof' to incomplete type
>>>>`user_desc'
>>>>make[1]: *** [ldt_keeper.o] Error 1
>>>>make[1]: Leaving directory `/temp/mplayer-20060212/loader'
>>>>make: *** [loader/libloader.a] Error 2
>>>
>>>
>>>AFAIR this is an indicator of a buggy GCC version. What's yours?
>>>
>>>Regards,
>>>R.
>>>
>>
>>
>
--
Odchozi zprava neobsahuje viry, protoze nepouzivame Windows.
www.linux.cz
---
HKFree: AP Libuse
GnuPG Key : http://shalmirane.net/navara.asc (37181785, FingerPrint = FB17 EC55
C966 A1BF 4DEC 0719 27D2 F3E7 3718 1785)
GeekCode : http://shalmirane.net/navara.geek
---
If your government does not trust you, should you trust your government?
More information about the MPlayer-users
mailing list