[vlc-devel] Re: Extras/contrib libxml broken under Cygwin
Damien Fouilleul
damien.fouilleul at laposte.net
Tue Sep 5 09:14:00 CEST 2006
No, it's mingw-runtime/gcc that's broken in latest cygwin, I have
reported this bug in the cygwin mailing list.
to make it work again, you will need to edit config.h (in XML source
tree) and comment out HAVE_DLOPEN
Damien
Mark Moriarty wrote:
>
> Latest Cygwin environment, freshly updated.
>
> When in extras/contrib, SVN Update returns: At revision 16518.
>
> Trying to do a "make src" in extras/contrib, I've tried kill-and-fill
> on the XML subdirectory, to make sure it wasn't a botched download.
>
> I keep seeing:
>
> Start of the make for libxml...
> Making all in libxml
> make[5]: Entering directory
> `/home/mfm/vlc-trunk/extras/contrib/src/xml/include/
> libxml'
> I get multiple warnings during the make, of the form:
> cc1: warning: -Wuninitialized is not supported without -O
> I also get:
> encoding.c:3023: warning: string length `688' is greater than the
> length `509' I
> SO C89 compilers are required to support
> encoding.c:3133: warning: string length `624' is greater than the
> length `509' I
> SO C89 compilers are required to support
> And:
> uri.c: In function `xmlCanonicPath':
> uri.c:2408: warning: pointer targets in assignment differ in signedness
> uri.c:2411: warning: pointer targets in assignment differ in signedness
> uri.c:2412: warning: pointer targets in passing arg 1 of `strncpy'
> differ in sig
> nedness
> uri.c:2412: warning: pointer targets in passing arg 2 of `strncpy'
> differ in sig
> nedness
> uri.c:2414: warning: pointer targets in assignment differ in signedness
> uri.c:2415: warning: pointer targets in assignment differ in signedness
> uri.c:2351: warning: unused variable `i'
> And:
> xpath.c: In function `xmlXPathRegisterFuncNS':
> xpath.c:4488: warning: ISO C forbids passing arg 4 of
> `xmlHashAddEntry2' between
> function pointer and `void *'
> xpath.c: In function `xmlXPathFunctionLookupNS':
> xpath.c:4569: warning: ISO C forbids assignment between function
> pointer and `vo
> id *'
> xpath.c: In function `xmlXPathCompOpEval':
> xpath.c:13008: warning: ISO C forbids assignment between function
> pointer and `v
> oid *'
> xpath.c:13033: warning: ISO C forbids assignment between function
> pointer and `v
> oid *'
> xpath.c: At top level:
> trionan.c:217: warning: 'trio_is_negative' defined but not used
> Eventually it errors out right here:
> gcc -mno-cygwin -isystem /usr/include/mingw -DHAVE_CONFIG_H -I. -I.
> -I. -I./inc
> lude -I./include -DHAVE_WIN32_THREADS -D_REENTRANT
> -I/home/mfm/vlc-trunk/extras/
> contrib/include -mno-cygwin -isystem /usr/include/mingw -mno-cygwin
> -isystem /us
> r/include/mingw -I/include -DWIN32 -DLIBXML_STATIC -pedantic -W
> -Wformat -Wunuse
> d -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat
> -Wchar-subscr
> ipts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith
> -Wcast-align -Wwrite
> -strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes
> -Wnested-ex
> terns -Winline -Wredundant-decls -DLIBXML_STATIC -c xmlmodule.c -o
> xmlmodule.o
> cc1: warning: -Wuninitialized is not supported without -O
> xmlmodule.c: In function `xmlModulePlatformOpen':
> xmlmodule.c:212: warning: implicit declaration of function `dlopen'
> xmlmodule.c:212: warning: nested extern declaration of `dlopen'
> xmlmodule.c:212: error: `RTLD_NOW' undeclared (first use in this
> function)
> xmlmodule.c:212: error: (Each undeclared identifier is reported only once
> xmlmodule.c:212: error: for each function it appears in.)
> xmlmodule.c:212: warning: return makes pointer from integer without a
> cast
> xmlmodule.c: In function `xmlModulePlatformClose':
> xmlmodule.c:225: warning: implicit declaration of function `dlclose'
> xmlmodule.c:225: warning: nested extern declaration of `dlclose'
> xmlmodule.c: In function `xmlModulePlatformSymbol':
> xmlmodule.c:237: warning: implicit declaration of function `dlsym'
> xmlmodule.c:237: warning: nested extern declaration of `dlsym'
> xmlmodule.c:237: warning: assignment makes pointer from integer
> without a cast
> xmlmodule.c:238: warning: implicit declaration of function `dlerror'
> xmlmodule.c:238: warning: nested extern declaration of `dlerror'
> xmlmodule.c:238: warning: comparison between pointer and integer
> xmlmodule.c: At top level:
> xmlmodule.c:302: error: redefinition of 'xmlModulePlatformOpen'
> xmlmodule.c:211: error: previous definition of 'xmlModulePlatformOpen'
> was here
> xmlmodule.c:313: error: redefinition of 'xmlModulePlatformClose'
> xmlmodule.c:224: error: previous definition of
> 'xmlModulePlatformClose' was here
>
> xmlmodule.c:328: error: redefinition of 'xmlModulePlatformSymbol'
> xmlmodule.c:236: error: previous definition of
> 'xmlModulePlatformSymbol' was her
> e
> xmlmodule.c: In function `xmlModulePlatformSymbol':
> xmlmodule.c:329: warning: ISO C forbids assignment between function
> pointer and
> `void *'
> xmlmodule.c: At top level:
> xmlmodule.c:302: warning: 'xmlModulePlatformOpen' defined but not used
> xmlmodule.c:313: warning: 'xmlModulePlatformClose' defined but not used
> xmlmodule.c:328: warning: 'xmlModulePlatformSymbol' defined but not used
> make[4]: *** [xmlmodule.lo] Error 1
> make[4]: Leaving directory `/home/mfm/vlc-trunk/extras/contrib/src/xml'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/home/mfm/vlc-trunk/extras/contrib/src/xml'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/mfm/vlc-trunk/extras/contrib/src/xml'
> make[1]: *** [.xml] Error 2
> make[1]: Leaving directory `/home/mfm/vlc-trunk/extras/contrib/src'
> make: *** [src] Error 2
>
>
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
More information about the vlc-devel
mailing list