<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>Build Error in Extras/Contrib libdvdnav on Cygwin</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT FACE="Times New Roman">Here's what I'm seeing when I try to make, a fresh extras/contrib (it's downloading the individual packages, patching them, then building):</FONT></P>
<P><FONT FACE="Times New Roman">make[6]: Entering directory `/home/mfm/vlc-trunk/extras/contrib/src/libdvdnav/src/dvdread'</FONT>
<BR><FONT FACE="Times New Roman">….OK for a bit, then:</FONT>
<BR><FONT FACE="Times New Roman">mkdir .libs</FONT>
<BR><FONT FACE="Times New Roman">libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32 shared</FONT>
<BR><FONT FACE="Times New Roman">libraries</FONT>
<BR><FONT FACE="Times New Roman">ar cru .libs/libdvdread.a dvd_reader.o nav_read.o ifo_read.o dvd_input.o dvd_ud</FONT>
<BR><FONT FACE="Times New Roman">f.o md5.o nav_print.o ifo_print.o</FONT>
<BR><FONT FACE="Times New Roman">ranlib .libs/libdvdread.a</FONT>
<BR><FONT FACE="Times New Roman">creating libdvdread.la</FONT>
<BR><FONT FACE="Times New Roman">…OK for a bit, then:</FONT>
<BR><FONT FACE="Times New Roman">Making all in vm</FONT>
<BR><FONT FACE="Times New Roman">make[6]: Entering directory `/home/mfm/vlc-trunk/extras/contrib/src/libdvdnav/src/vm'</FONT>
<BR><FONT FACE="Times New Roman">…</FONT>
<BR><FONT FACE="Times New Roman">./.. -DDVDNAV_COMPILE -I../../src -I../../src/dvdread -I/home/mfm/vlc-trunk/extr</FONT>
<BR><FONT FACE="Times New Roman">as/contrib/include -mno-cygwin -isystem /usr/include/mingw -mno-cygwin -isystem</FONT>
<BR><FONT FACE="Times New Roman">/usr/include/mingw -I/include -Dssize_t=long -O3 -Wall -D_FILE_OFFSET_BITS=64 -D</FONT>
<BR><FONT FACE="Times New Roman">_LARGEFILE64_SOURCE -I/home/mfm/vlc-trunk/extras/contrib/include -mno-cygwin -is</FONT>
<BR><FONT FACE="Times New Roman">ystem /usr/include/mingw -mno-cygwin -isystem /usr/include/mingw -I/include -c d</FONT>
<BR><FONT FACE="Times New Roman">ecoder.c -o decoder.o</FONT>
<BR><FONT FACE="Times New Roman">In file included from ./decoder.h:29,</FONT>
<BR><FONT FACE="Times New Roman"> from ../../src/dvdnav_internal.h:80,</FONT>
<BR><FONT FACE="Times New Roman"> from decoder.c:35:</FONT>
<BR><FONT FACE="Times New Roman">/usr/include/mingw/sys/time.h:39: error: parse error before '(' token</FONT>
<BR><FONT FACE="Times New Roman">/usr/include/mingw/sys/time.h:39: error: parse error before "void"</FONT>
<BR><FONT FACE="Times New Roman">make[6]: *** [decoder.lo] Error 1</FONT>
<BR><FONT FACE="Times New Roman">make[6]: Leaving directory `/home/mfm/vlc-trunk/extras/contrib/src/libdvdnav/src</FONT>
<BR><FONT FACE="Times New Roman">/vm'</FONT>
<BR><FONT FACE="Times New Roman">make[5]: *** [all-recursive] Error 1</FONT>
<BR><FONT FACE="Times New Roman">make[5]: Leaving directory `/home/mfm/vlc-trunk/extras/contrib/src/libdvdnav/src</FONT>
<BR><FONT FACE="Times New Roman">'</FONT>
<BR><FONT FACE="Times New Roman">make[4]: *** [all-recursive] Error 1</FONT>
<BR><FONT FACE="Times New Roman">make[4]: Leaving directory `/home/mfm/vlc-trunk/extras/contrib/src/libdvdnav'</FONT>
<BR><FONT FACE="Times New Roman">make[3]: *** [all] Error 2</FONT>
<BR><FONT FACE="Times New Roman">make[3]: Leaving directory `/home/mfm/vlc-trunk/extras/contrib/src/libdvdnav'</FONT>
<BR><FONT FACE="Times New Roman">make[2]: *** [.dvdnav] Error 2</FONT>
</P>
<BR>
<P><FONT FACE="Times New Roman">Decoder.h line 29 is just an include:</FONT>
<BR><FONT FACE="Times New Roman">#include <sys/time.h></FONT>
</P>
<P><FONT FACE="Times New Roman">When I look at mingw/sys/time.h, line 39 is the int __cdecl line of the following:</FONT>
<BR><FONT FACE="Times New Roman">/*</FONT>
<BR><FONT FACE="Times New Roman"> Implementation as per:</FONT>
<BR><FONT FACE="Times New Roman"> The Open Group Base Specifications, Issue 6</FONT>
<BR><FONT FACE="Times New Roman"> IEEE Std 1003.1, 2004 Edition</FONT>
</P>
<P><FONT FACE="Times New Roman"> The timezone pointer arg is ignored. Errors are ignored.</FONT>
<BR><FONT FACE="Times New Roman">*/ </FONT>
<BR><FONT FACE="Times New Roman">int __cdecl gettimeofday(struct timeval *__restrict__, </FONT>
<BR> <FONT FACE="Times New Roman"> void *__restrict__ /* tzp (unused) */);</FONT>
</P>
<P><FONT FACE="Times New Roman">Anyone have any thoughts on this?</FONT>
</P>
<P><FONT FACE="Times New Roman">Thanks.</FONT>
</P>
<P><FONT FACE="Times New Roman">Mark</FONT>
</P>
</BODY>
</HTML>