You are not logged in.
I have been trying to compile mplayer via ABS and I can't get it to work. Here is the error message I get everytime. "-I/usr/lib/glib/include -I/usr/X11R6/include -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer -DWIN32_PATH="/usr/lib/win32" -DMPLAYER
-D__WINE__ -Ddbg_printf=__vprintf -DTRACE=__vprintf -c ldt_keeper.c
ldt_keeper.c: In function `Setup_LDT_Keeper':
ldt_keeper.c:168: storage size of `array' isn't known
ldt_keeper.c:201: sizeof applied to an incomplete type
make[1]: *** [ldt_keeper.o] Error 1
make[1]: Leaving directory `/var/abs/local/mplayer/src/MPlayerv1.0pre3try2'
make: *** [loader/libloader.a] Error 2
Now, I have tried everything possible with this compile. Meaning I tried with a stock "ARCH" kernel and others. re-installed gcc changed some of the optimization flags in the PKGBUILD and in makepkg. D/L'ed the source and tried to compile without ABS and still the same error. One thing that did work was that I used --disable-win32 on the compile but I don't want to disable win32. Yes I have the win32 codecs already installed and I also tried to compile them with ABS before doing mplayer and it didn't work. I google'ed my head off for a answer and the forums but nothing at all. It appears that the problem is with the Wine Loader that mplayer uses to communicate with the windows DLL's. I can't get the package to compile with win32. At the ./configure I see that it in fact does find the win32 dir for the codecs but still bombs at the same error. I was also on freenode in archlinux and me and another guy there "thank you" tried to change some things but still the same and he tried it and was able to compile it with no problem at all on his system with the same gcc and kernel. Can anyone please tell me what I can do to fix this?? TIA
Update: I talked with one of the guys on #mplayerdev and the problem was that my /usr/include/asm/ldt.h was not the same as the file in my kernel sources. I copied the source file to /usr/include/asm/ and it compiled NP. Thank you.
Offline
I had no trouble compiling mplayer under kernel 2.4.26. I'd guess you're using 2.6.x? After poking around a bit there seems to be a renaming of the struct modify_ldt_ldt_s to user_desc between the kernel versions and the source for mplayer tries to handle this. However the struct comes from /usr/include/asm/ldt.h which is part of glibc and is still called modify_ldt_ldt_s.
Try editing /var/abs/multimedia/mplayer/src/MPlayer-1.0pre3try2/loader/ldt_keeper.c and comment out the 30th line in the file:
//#define modify_ldt_ldt_s user_desc
HTH
Offline