[MPlayer-cygwin] Can't compile NUT (nut-SVN-r517.diff fails)

Eugene Kovgar ken20001 at ukr.net
Thu Apr 9 00:08:58 CEST 2009


Milen Manev <mmanev <at> gmail.com> writes:

> 
> > Hello, Milen.
> > Revision downloaded from svn://svn.mplayerhq.hu/nut/src/trunk is 661. Don't
> > understand why the same revision and different results with patching (?)
> 
> Here is patch for revision 661 of nut:
> nut-SVN-661.diff.tar.bz2
> It must work.

And again is the same :(

$ patch -p1 < nut-SVN-661.diff
patching file config.mak
patching file libnut/demuxer.c
Hunk #1 FAILED at 13.
1 out of 1 hunk FAILED -- saving rejects to file libnut/demuxer.c.rej

But I'v applied changes manually as you said and It works, compiled and 
identified by Mplayer configurator successfully.

> > link which describes the syntax of patches and to program for their creation
> > (under Windows).
> 
> http://www.gnu.org/software/diffutils/manual/html_mono/diff.html#Unified
%20Format
>
Thank you. It will allow time to study it.
 
> xx_fontconfig_check.diff and xx_pthread_static.diff are got from
> http://oss.netfarm.it/mplayer-win32.php.
> Check for updates on this site.
I know but the date they created is: xx_fontconfig_check.diff [545 bytes] - Mar 
15, 2009 and xx_pthread_static.diff [2 KiB] - Apr 08, 2009. So it seems the 
last is very fresh but still not applying. Strange... May be already it is not 
needed anymore, because after compiling Mplayer.exe, it working without 
pthreadGC2.dll library (?)
 
> To identify why some packeges are listed as "no" check configure.log
> file in mplayer directory after running configure script.
Yes. And here what I get:

##########################################

============ Checking for libdv-0.9.5+ ============

#include <libdv/dv.h>
int main(void) { dv_encoder_t* enc=dv_encoder_new(1,1,1); return 0; }

gcc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=i486 -
mtune=i686 -pipe -ffast-math -fomit-frame-pointer -I.   -I/home/Eugene/include -
I/home/Eugene/include/ -Ilibdvdread4 -I/home/Eugene/include/freetype2 -I/home/
Eugene/include -I/home/Eugene/include -I/home/Eugene/include   -static /usr/
local/lib/live/liveMedia/libliveMedia.a                  /usr/local/lib/live/
groupsock/libgroupsock.a                  /usr/local/lib/live/UsageEnvironment/
libUsageEnvironment.a                  /usr/local/lib/live/
BasicUsageEnvironment/libBasicUsageEnvironment.a                   -lwinmm -
ffast-math  -L/home/Eugene/lib -lws2_32 -liconv -lpng -lz -lmng -lz -ljpeg -
lungif -lcdio_cdda -lcdio -lcdio_paranoia -lwinmm -L/home/Eugene/lib -lfreetype 
-L/home/Eugene/lib -lfribidi -lz -lbz2 -llzo2 -lmad -lvorbis -logg -lspeex -L/
home/Eugene/lib -ltheora -logg   -ldts -lmpcdec -ladvapi32 -lole32  -lstdc++ -
lamrnb -lamrwb  -lopengl32 -lgdi32 -lgdi32 -L/home/Eugene/lib -lcaca -lwinmm -
ld3d9 -lgdi32 -lfaac  -ltwolame -lfaac -o /tmp/mplayer-conf-10300-1572.exe /tmp/
mplayer-conf-27901-1572.c -ldv -lm
C:/DOCUME~1/Eugene/LOCALS~1/Temp/mplayer-conf-27901-1572.c: In function `main':
C:/DOCUME~1/Eugene/LOCALS~1/Temp/mplayer-conf-27901-1572.c:2: warning: unused 
variable `enc'
C:/MinGW/MSYS/1.0.11/home/Eugene/lib\libdv.a(encode.o): In function 
`dv_encode_full_frame':
C:/MinGW/MSYS/1.0.11/home/Eugene/libdv-1.0.0/libdv/encode.c:1792: undefined 
reference to `pthread_mutex_lock'
C:/MinGW/MSYS/1.0.11/home/Eugene/libdv-1.0.0/libdv/encode.c:1808: undefined 
reference to `pthread_mutex_unlock'
C:/MinGW/MSYS/1.0.11/home/Eugene/libdv-1.0.0/libdv/encode.c:1872: undefined 
reference to `pthread_mutex_unlock'
C:/MinGW/MSYS/1.0.11/home/Eugene/libdv-1.0.0/libdv/encode.c:1882: undefined 
reference to `pthread_mutex_unlock'
C:/MinGW/MSYS/1.0.11/home/Eugene/lib\libdv.a(dv.o): In function 
`dv_decode_full_frame':
C:/MinGW/MSYS/1.0.11/home/Eugene/libdv-1.0.0/libdv/dv.c:459: undefined 
reference to `pthread_mutex_lock'
C:/MinGW/MSYS/1.0.11/home/Eugene/libdv-1.0.0/libdv/dv.c:526: undefined 
reference to `pthread_mutex_unlock'
collect2: ld returned 1 exit status


Result is: no 
########################################## 

============ Checking for fontconfig ============

#include <stdio.h>
#include <stdlib.h>
#include <fontconfig/fontconfig.h>
int main(void) {
    int err = FcInit();
    if (err == FcFalse) {
        printf("Couldn't initialize fontconfig lib\n");
        exit(err);
    }
    return 0;
}

gcc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=i486 -
mtune=i686 -pipe -ffast-math -fomit-frame-pointer -I.   -I/home/Eugene/include -
I/home/Eugene/include/ -Ilibdvdread4 -I/home/Eugene/include/freetype2 -I/home/
Eugene/include -static  -lwinmm -ffast-math  -L/home/Eugene/lib -lws2_32 -
liconv -lpng -lz -lmng -lz -ljpeg -lungif -lcdio_cdda -lcdio -lcdio_paranoia -
lwinmm -L/home/Eugene/lib -lfreetype  -lopengl32 -lgdi32 -lgdi32 -L/home/Eugene/
lib -lcaca -lwinmm -ld3d9 -lgdi32  -o /tmp/mplayer-conf-10300-1572.exe /tmp/
mplayer-conf-27901-1572.c -lfontconfig
C:/MinGW/MSYS/1.0.11/home/Eugene/lib\libfontconfig.a(fcxml.o): In function 
`FcConfigMessage':
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcxml.c:494: undefined 
reference to `XML_GetCurrentLineNumber'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcxml.c:497: undefined 
reference to `XML_GetCurrentLineNumber'
C:/MinGW/MSYS/1.0.11/home/Eugene/lib\libfontconfig.a(fcxml.o): In function 
`FcConfigParseAndLoad':
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcxml.c:2513: undefined 
reference to `XML_ParserCreate'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcxml.c:2525: undefined 
reference to `XML_SetUserData'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcxml.c:2527: undefined 
reference to `XML_SetDoctypeDeclHandler'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcxml.c:2528: undefined 
reference to `XML_SetElementHandler'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcxml.c:2529: undefined 
reference to `XML_SetCharacterDataHandler'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcxml.c:2535: undefined 
reference to `XML_GetBuffer'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcxml.c:2552: undefined 
reference to `XML_ParseBuffer'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcxml.c:2564: undefined 
reference to `XML_ParserFree'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcxml.c:2555: undefined 
reference to `XML_GetErrorCode'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcxml.c:2555: undefined 
reference to `XML_ErrorString'
C:/MinGW/MSYS/1.0.11/home/Eugene/lib\libfontconfig.a(fcfreetype.o): In function 
`FcFreeTypeUseNames':
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:2302: 
undefined reference to `FT_Has_PS_Glyph_Names'
C:/MinGW/MSYS/1.0.11/home/Eugene/lib\libfontconfig.a(fcfreetype.o): In function 
`FcFreeTypeCharIndex':
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:2436: 
undefined reference to `FT_Select_Charmap'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:2446: 
undefined reference to `FT_Get_Char_Index'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:2385: 
undefined reference to `FT_Get_Glyph_Name'
C:/MinGW/MSYS/1.0.11/home/Eugene/lib\libfontconfig.a(fcfreetype.o): In function 
`FcFreeTypeCheckGlyph':
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:2490: 
undefined reference to `FT_Load_Glyph'
C:/MinGW/MSYS/1.0.11/home/Eugene/lib\libfontconfig.a(fcfreetype.o): In function 
`FcFreeTypeCharSetAndSpacingForSize':
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:2555: 
undefined reference to `FT_Select_Size'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:2565: 
undefined reference to `FT_Select_Charmap'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:2690: 
undefined reference to `FT_Get_Glyph_Name'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:2577: 
undefined reference to `FT_Get_Char_Index'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:2624: 
undefined reference to `FT_Get_First_Char'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:2663: 
undefined reference to `FT_Get_Next_Char'
C:/MinGW/MSYS/1.0.11/home/Eugene/lib\libfontconfig.a(fcfreetype.o): In function 
`FcFreeTypeCharSetAndSpacing':
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:2772: 
undefined reference to `FT_Get_Sfnt_Table'
C:/MinGW/MSYS/1.0.11/home/Eugene/lib\libfontconfig.a(fcfreetype.o): In function 
`FcFreeTypeQueryFace':
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:1165: 
undefined reference to `FT_Get_Sfnt_Table'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:1185: 
undefined reference to `FT_Get_Sfnt_Name_Count'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:1208: 
undefined reference to `FT_Get_Sfnt_Name'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:1393: 
undefined reference to `FT_Get_Sfnt_Table'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:727: 
undefined reference to `libiconv_open'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:746: 
undefined reference to `libiconv'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:751: 
undefined reference to `libiconv_close'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:1497: 
undefined reference to `FT_Get_PS_Font_Info'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:1651: 
undefined reference to `FT_Get_BDF_Property'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:1672: 
undefined reference to `FT_Get_BDF_Property'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:2956: 
undefined reference to `FT_Load_Sfnt_Table'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:1532: 
undefined reference to `FT_Get_BDF_Property'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:756: 
undefined reference to `libiconv_close'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:1539: 
undefined reference to `FT_Get_BDF_Property'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:1561: 
undefined reference to `FT_Get_BDF_Property'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:1061: 
undefined reference to `FT_Get_BDF_Property'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:737: 
undefined reference to `libiconv_close'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:1711: 
undefined reference to `FT_Get_X11_Font_Format'
C:/MinGW/MSYS/1.0.11/home/Eugene/lib\libfontconfig.a(fcfreetype.o): In function 
`FcFreeTypeQuery':
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:1742: 
undefined reference to `FT_Init_FreeType'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:1745: 
undefined reference to `FT_New_Face'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:1754: 
undefined reference to `FT_Done_FreeType'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:1752: 
undefined reference to `FT_Done_Face'
collect2: ld returned 1 exit status



#include <stdio.h>
#include <stdlib.h>
#include <fontconfig/fontconfig.h>
int main(void) {
    int err = FcInit();
    if (err == FcFalse) {
        printf("Couldn't initialize fontconfig lib\n");
        exit(err);
    }
    return 0;
}

gcc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=i486 -
mtune=i686 -pipe -ffast-math -fomit-frame-pointer -I.   -I/home/Eugene/include -
I/home/Eugene/include/ -Ilibdvdread4 -I/home/Eugene/include/freetype2 -I/home/
Eugene/include -static  -lwinmm -ffast-math  -L/home/Eugene/lib -lws2_32 -
liconv -lpng -lz -lmng -lz -ljpeg -lungif -lcdio_cdda -lcdio -lcdio_paranoia -
lwinmm -L/home/Eugene/lib -lfreetype  -lopengl32 -lgdi32 -lgdi32 -L/home/Eugene/
lib -lcaca -lwinmm -ld3d9 -lgdi32  -o /tmp/mplayer-conf-10300-1572.exe /tmp/
mplayer-conf-27901-1572.c -lfontconfig -lexpat -lfreetype
C:/MinGW/MSYS/1.0.11/home/Eugene/lib\libfontconfig.a(fcfreetype.o): In function 
`FcFreeTypeQueryFace':
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:727: 
undefined reference to `libiconv_open'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:746: 
undefined reference to `libiconv'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:751: 
undefined reference to `libiconv_close'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:756: 
undefined reference to `libiconv_close'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:737: 
undefined reference to `libiconv_close'
collect2: ld returned 1 exit status



#include <stdio.h>
#include <stdlib.h>
#include <fontconfig/fontconfig.h>
int main(void) {
    int err = FcInit();
    if (err == FcFalse) {
        printf("Couldn't initialize fontconfig lib\n");
        exit(err);
    }
    return 0;
}

gcc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=i486 -
mtune=i686 -pipe -ffast-math -fomit-frame-pointer -I.   -I/home/Eugene/include -
I/home/Eugene/include/ -Ilibdvdread4 -I/home/Eugene/include/freetype2 -I/home/
Eugene/include -static  -lwinmm -ffast-math  -L/home/Eugene/lib -lws2_32 -
liconv -lpng -lz -lmng -lz -ljpeg -lungif -lcdio_cdda -lcdio -lcdio_paranoia -
lwinmm -L/home/Eugene/lib -lfreetype  -lopengl32 -lgdi32 -lgdi32 -L/home/Eugene/
lib -lcaca -lwinmm -ld3d9 -lgdi32  -o /tmp/mplayer-conf-10300-1572.exe /tmp/
mplayer-conf-27901-1572.c -lfontconfig -lexpat -lfreetype -lz
C:/MinGW/MSYS/1.0.11/home/Eugene/lib\libfontconfig.a(fcfreetype.o): In function 
`FcFreeTypeQueryFace':
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:727: 
undefined reference to `libiconv_open'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:746: 
undefined reference to `libiconv'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:751: 
undefined reference to `libiconv_close'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:756: 
undefined reference to `libiconv_close'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:737: 
undefined reference to `libiconv_close'
collect2: ld returned 1 exit status



#include <stdio.h>
#include <stdlib.h>
#include <fontconfig/fontconfig.h>
int main(void) {
    int err = FcInit();
    if (err == FcFalse) {
        printf("Couldn't initialize fontconfig lib\n");
        exit(err);
    }
    return 0;
}

gcc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=i486 -
mtune=i686 -pipe -ffast-math -fomit-frame-pointer -I.   -I/home/Eugene/include -
I/home/Eugene/include/ -Ilibdvdread4 -I/home/Eugene/include/freetype2 -I/home/
Eugene/include -static  -lwinmm -ffast-math  -L/home/Eugene/lib -lws2_32 -
liconv -lpng -lz -lmng -lz -ljpeg -lungif -lcdio_cdda -lcdio -lcdio_paranoia -
lwinmm -L/home/Eugene/lib -lfreetype  -lopengl32 -lgdi32 -lgdi32 -L/home/Eugene/
lib -lcaca -lwinmm -ld3d9 -lgdi32  -o /tmp/mplayer-conf-10300-1572.exe /tmp/
mplayer-conf-27901-1572.c -I/home/Eugene/include -L/home/Eugene/lib -
lfontconfig -lexpat -lfreetype
C:/MinGW/MSYS/1.0.11/home/Eugene/lib\libfontconfig.a(fcfreetype.o): In function 
`FcFreeTypeQueryFace':
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:727: 
undefined reference to `libiconv_open'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:746: 
undefined reference to `libiconv'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:751: 
undefined reference to `libiconv_close'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:756: 
undefined reference to `libiconv_close'
C:/MinGW/MSYS/1.0.11/home/Eugene/fontconfig-2.6.0/src/fcfreetype.c:737: 
undefined reference to `libiconv_close'
collect2: ld returned 1 exit status


Result is: no 
##########################################



More information about the MPlayer-cygwin mailing list