[vlc-devel] Re: Build Error in Extras/Contrib libdvdnav on Cygwin

Rafaël Carré funman at videolan.org
Thu Nov 2 13:53:26 CET 2006


Le Thu, 2 Nov 2006 06:45:40 -0500,
"Mark Moriarty" <mfmbusiness at earthlink.net> a écrit :

> I show 3.10.1 mingw-runtime, with gcc-mingw-core and gcc-mingw-g++
> being 20050522-1.
> 
> Possibly related to my prior post about libgcrypt, that there's
> something in mingw that doesn't play nice relative to gettimeofday? 

I've done some research:

gettimeofday() does not exist on windows, however starting from
mingw-runtime 3.10, mingw now includes it, but
to use it, programs will have to link with libmingwex.

I don't know what happen here, maybe a header is missing, I'll try to
install mingw-runtime 3.10 to try to reproduce.

For libgcrypt, I think it's another problem, at random.c line 46 it
should be "#include <sys/time.h>" instead of times.h. Can you try if
removing the patch of [17400], and replacing times.h by time.h works?
I join the patch to apply to extras/contrib/src/Makefile

--- Makefile.orig       2006-11-02 13:49:12.000000000 +0100
+++ Makefile    2006-11-02 13:50:14.000000000 +0100
@@ -1535,7 +1535,7 @@
 
 .gcrypt: libgcrypt .gpg-error
 ifdef HAVE_WIN32
-       (cd $<; ./autogen.sh && $(HOSTCC) ./configure $(HOSTCONF)
--target=i586-mingw32msvc --prefix=$(PREFIX) --program-prefix=""
CFLAGS="$(CFLAGS)" && echo -n "#undef HAVE_GETTIMEOFDAY" >> config.h &&
make && make install)
+       (cd $<; ./autogen.sh && $(HOSTCC) ./configure $(HOSTCONF)
--target=i586-mingw32msvc --prefix=$(PREFIX) --program-prefix=""
CFLAGS="$(CFLAGS)" && sed -i 46s at sys/times.h at sys/time.h@
cipher/random.c && make && make install) else ifeq
($(HOST),i686-apple-darwin8) (cd $<; $(HOSTCC) ./configure $(HOSTCONF)
--prefix=$(PREFIX) --disable-asm CFLAGS="$(CFLAGS)" && make && make
install)

Thanks

-- 
Rafaël Carré
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20061102/172b9375/attachment.sig>


More information about the vlc-devel mailing list