<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>RE: Error building extras/contrib/libgcrypt on Cygwin -- Got it I think</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=484380701-13102006><FONT 
color=#0000ff>Anyone good with how to generate patches for 
extras\contrib?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=484380701-13102006><FONT 
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=484380701-13102006><FONT color=#0000ff>I'm 
still hitting this problem with trying to compile extras\contrib on cygwin -- 
libgcrypt is erroring out.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=484380701-13102006><FONT 
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=484380701-13102006><FONT color=#0000ff>For 
my personal use I end up having to edit random.c, insert <FONT 
face="Courier New" size=2>#undef HAVE_GETTIMEOFDAY  
</FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=484380701-13102006><FONT color=#0000ff><FONT 
face="Courier New" size=2>at line 42, but it would be vastly preferable to have 
the patch automatically do this in libgcrypt's 
config.h.</FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=484380701-13102006><FONT face="Courier New" 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=484380701-13102006><FONT face="Courier New" 
color=#0000ff size=2>Similarly, building libxml from extras\contrib continues to 
error out on Cygwin.  I believe the patch recommended by someone yesterday 
should do the job -- I manually edited my xmlmodule.c to add the recommended 
lines.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=484380701-13102006><FONT face="Courier New" 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=484380701-13102006><FONT face="Courier New" 
color=#0000ff size=2>(God, I'd like to get a clean build on Cygwin again -- 
things seem to have really gotten whacky, I can't get it to build worth a darn 
now.  I've tried reinstalling Cygwin twice, checked the Cygwin compile 
documents for any new gotchas, tried both by building from the precompiled Win 
libs as well as building extras\contrib myself, no joy.  If anyone has a 
clean set of Cygwin distribution files, stuff that actually builds the current 
trunk, I'd appreciate a link to their location.)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=484380701-13102006><FONT 
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=484380701-13102006><FONT 
color=#0000ff>Thanks!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=484380701-13102006><FONT 
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=484380701-13102006><FONT 
color=#0000ff>Mark</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=484380701-13102006><FONT 
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><B>From:</B> 
vlc-devel-bounce@videolan.org [mailto:vlc-devel-bounce@videolan.org] <B>On 
Behalf Of </B>Mark Moriarty<BR><B>Sent:</B> Wednesday, September 13, 2006 8:30 
PM<BR><B>To:</B> vlc-devel@videolan.org<BR><B>Subject:</B> [vlc-devel] Re: Error 
building extras/contrib/libgcrypt on Cygwin -- Got it I 
think<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><FONT face="Courier New" size=2>I ran into this on the Web:</FONT> <BR><FONT 
face="Courier New" size=2>"</FONT><FONT face="Courier New" size=2>Solution: Make 
it explict with #UNDEF HAVE_TIMES 
in<BR>$objdir\i686-pc-mingw32\libiberty\config.h, because it doesn't exist 
on<BR>MinGW.</FONT><FONT face="Courier New" size=2>"</FONT> </P>
<P><FONT face="Courier New" size=2>The above was for another app that was 
generating the same error as I ran into with the VLC extras/contrib/libgcrypt 
make.</FONT></P>
<P><FONT face="Courier New" size=2>I ended up adding #undef 
HAVE_GETTIMEOFDAY</FONT> <BR><FONT face="Courier New" size=2>To my libgcrypt 
config.h, and it now compiles (apparently something awry in the Cygwin 
distribution)</FONT> </P>
<P><FONT face="Courier New" size=2>Can something be added to the patches for 
extras/contrib, that will sense if it's mingw, and if so do the undef in the 
config.h generated for libgcrypt, else in random.c, at line 42 toss in a similar 
exlusion (so you don't invoke sys/times.h)?</FONT> </P>
<P><FONT face=Tahoma size=1>_____________________________________________ 
</FONT><BR><B><FONT face=Tahoma size=1>From:  </FONT></B> <FONT face=Tahoma 
size=1>Mark Moriarty [</FONT><A href="mailto:mfmbusiness@earthlink.net"><U><FONT 
face=Tahoma color=#0000ff 
size=1>mailto:mfmbusiness@earthlink.net</FONT></U></A><FONT face=Tahoma size=1>] 
</FONT><BR><B><FONT face=Tahoma size=1>Sent:  </FONT></B> <FONT 
face=Tahoma size=1>Wednesday, September 13, 2006 7:13 PM</FONT> <BR><B><FONT 
face=Tahoma size=1>To:    </FONT></B> <FONT face=Tahoma 
size=1>'vlc-devel@videolan.org'</FONT> <BR><B><FONT face=Tahoma 
size=1>Subject:       </FONT></B> <FONT 
face=Tahoma size=1>RE: Error building extras/contrib/libgcrypt on Cygwin</FONT> 
</P><BR>
<P><FONT face="Times New Roman" color=#0000ff>Nobody has a clue on this 
one?</FONT> </P></BODY></HTML>