[MPlayer-cygwin] Error compiling Mplayer: in libmpcodecs/vd_mpng.o

Eugene Kovgar ken20001 at ukr.net
Wed Jul 28 16:30:49 CEST 2010


> On Wed, 28 Jul 2010 14:41:04 +0300, Eugene Kovgar wrote:
>>> On Wed, 28 Jul 2010 04:15:58 +0300, Eugene Kovgar wrote:
>>>> All time I got an error during Mplayer compilation:
>>>>
>>>> In file included from C:/MinGW/MSYS/home/Eugene/include/zlib.h:34:0,
>>>>                  from C:/MinGW/MSYS/home/Eugene/include/png.h:408,
>>>>                  from libmpcodecs/vd_mpng.c:25:
>>>> C:/MinGW/MSYS/home/Eugene/include/zconf.h:397:37: warning:
>>>> "_LFS64_LARGEFILE" is not defined
>>>> In file included from C:/MinGW/MSYS/home/Eugene/include/png.h:408:0,
>>>> from
>>>> libmpcodecs/vd_mpng.c:25:
>>>> C:/MinGW/MSYS/home/Eugene/include/zlib.h:1565:37: warning:
>>>> "_LFS64_LARGEFILE" is not defined
>>>> C:/MinGW/MSYS/home/Eugene/include/zlib.h:1574:61: warning:
>>>> "_LFS64_LARGEFILE" is not defined
>>>> libmpcodecs/vd_mpng.c: In function 'pngReadFN':
>>>> libmpcodecs/vd_mpng.c:77:19: error: dereferencing pointer to  
>>>> incomplete
>>>> type
>>>> libmpcodecs/vd_mpng.c: In function 'decode':
>>>> libmpcodecs/vd_mpng.c:114:14: error: dereferencing pointer to  
>>>> incomplete
>>>> type
>>>> libmpcodecs/vd_mpng.c:131:87: error: dereferencing pointer to  
>>>> incomplete
>>>> type
>>>> make: *** [libmpcodecs/vd_mpng.o] Error 1
>>>>
>>>> Any suggestion?
>>>
>>> old libpng? old zlib? are you using mingw64?
>>>
>>> unrelated, but you might want this patch:
>>> http://oss.netfarm.it/mplayer/misc/mingwrt_file64.diff
>>>
>>> that netfarm site has libs and mingw enviroments if you need it.
>>>
>>> -compn
>>
>> 1) libpng-1.5.0beta34
>> 2) zlib-1.2.5
>> 3) I'm not using MinGW64, but MinGW with GCC 4.5
>
> does an older ver of gcc work? maybe gcc 4.2 ?
> i remember sherpya had some trouble with latest gcc and mingw, but i
> dont remember the details.
>
> -compn

Well, I decided to replace libpng-1.5.0beta34 with libpng-1.4.3 stable  
version and recompiled it. The interesting thing in Mplayer configure.log  
after that is:


============ Checking for PNG support ============

#include <png.h>
#include <string.h>
int main(void) {
   printf("png.h : %s\n", PNG_LIBPNG_VER_STRING);
   printf("libpng: %s\n", png_libpng_ver);
   return strcmp(PNG_LIBPNG_VER_STRING, png_libpng_ver);
}

gcc /tmp/mplayer-configure-24324-1892/tmp.c -Wstrict-prototypes  
-Wmissing-prototypes -Wundef -Wdisabled-optimization -Wno-pointer-sign  
-Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith  
-Wredundant-decls -O4 -march=i486 -mtune=generic -pipe -ffast-math  
-fomit-frame-pointer -I.  -fno-common  -I/home/Eugene/include   
-I/mingw/include/ -static  -lwinmm -ffast-math  -L/home/Eugene/lib  
-lws2_32 -liconv  -lgdi32 -L/mingw/lib -lcaca -lz  -o  
/tmp/mplayer-configure-24324-1892/tmp.exe -lpng -lz -lm
In file included from C:/MinGW/MSYS/home/Eugene/include/zlib.h:34:0,
                  from C:/MinGW/MSYS/home/Eugene/include/png.h:397,
                  from  
C:/DOCUME~1/Eugene/LOCALS~1/Temp/mplayer-configure-24324-1892/tmp.c:1:
C:/MinGW/MSYS/home/Eugene/include/zconf.h:373:6: warning:  
"_LARGEFILE64_SOURCE" is not defined
In file included from C:/MinGW/MSYS/home/Eugene/include/png.h:397:0,
                  from  
C:/DOCUME~1/Eugene/LOCALS~1/Temp/mplayer-configure-24324-1892/tmp.c:1:
C:/MinGW/MSYS/home/Eugene/include/zlib.h:1574:32: warning:  
"_FILE_OFFSET_BITS" is not defined


Result is: yes
##########################################

So, the warning still there, but the compilation process not stopping, but  
continuing. I don't know, is it ok when this message still there, although  
the make process continues?

Then next error appears:

ene/include/dirac   -I/home/Eugene/include/schroedinger-1.0  
-I/home/Eugene/inclu
de/orc-0.4   -c -o unrar_exec.o unrar_exec.c
unrar_exec.c:24:22: fatal error: sys/wait.h: No such file or directory
compilation terminated.
make: *** [unrar_exec.o] Error 1

I understand that error. It is because I have not got this package. But  
where can I find the package with that files (unrar_exec.o, unrar_exec.c)  
and what is it called?
Thanks for your attention.



More information about the MPlayer-cygwin mailing list