[vlc-devel] Re: "make" on cygwin - lots of warnigs&errors
Damien Fouilleul
Damien.Fouilleul at laposte.net
Mon Sep 18 19:57:06 CEST 2006
try -std=gnu99 rather than -std=c99, as the latter disable all GNU
extensions.
Otherwise, try using autoconf from the 'contribs' (you may need to
compile it) rather than cygwin own version
Damien
Kai Hermann wrote:
> hello again,
>
> i still experience the following erros caused by the "cpu.c" file & a
> few other files
>
> ../include/modules_inner.h:28:1: warning: "MODULE_NAME" redefined
> <command line>:23:1: warning: this is the location of the previous
> definition
> In file included from ../include/vlc_common.h:1265,
> from ../include/vlc/vlc.h:151,
> from misc/unicode.c:30:
> ../include/variables.h: In function `__var_GetString':
> ../include/variables.h:396: warning: implicit declaration of function
> `strdup'
> ../include/variables.h:396: warning: return makes pointer from integer
> without a
> cast
> ../include/variables.h: In function `__var_CreateGetString':
> ../include/variables.h:528: warning: return makes pointer from integer
> without a
> cast
> misc/unicode.c: In function `FromLocale':
> misc/unicode.c:201: warning: return makes pointer from integer without
> a cast
> misc/unicode.c: In function `FromLocaleDup':
> misc/unicode.c:217: warning: return makes pointer from integer without
> a cast
> misc/unicode.c: In function `ToLocale':
> misc/unicode.c:269: warning: return makes pointer from integer without
> a cast
> misc/unicode.c: In function `ToLocaleDup':
> misc/unicode.c:285: warning: return makes pointer from integer without
> a cast
> misc/unicode.c: In function `utf8_scandir':
> misc/unicode.c:457: warning: initialization makes pointer from integer
> without a
> cast
> if gcc -mno-cygwin -std=c99 -DHAVE_CONFIG_H -I. -I. -I..
> -I/usr/win32/include
> -I/usr/win32/include/ebml -D_OFF_T_ -D_off_t=long -DSYS_MINGW32
> -I../include `to
> p_builddir=".." ../vlc-config --cflags vlc pic` -Wsign-compare -Wextra
> -Wall -m
> ms-bitfields -pipe -MT misc/libvlc_a-cpu.o -MD -MP -MF
> "misc/.deps/libvlc_a-cpu.
> Tpo" -c -o misc/libvlc_a-cpu.o `test -f 'misc/cpu.c' || echo
> './'`misc/cpu.c; \
> then mv -f "misc/.deps/libvlc_a-cpu.Tpo"
> "misc/.deps/libvlc_a-cpu.Po"; e
> lse rm -f "misc/.deps/libvlc_a-cpu.Tpo"; exit 1; fi
> In file included from ../include/vlc_common.h:61,
> from ../include/vlc/vlc.h:151,
> from misc/cpu.c:29:
> ../include/modules_inner.h:28:1: warning: "MODULE_NAME" redefined
> <command line>:23:1: warning: this is the location of the previous
> definition
> In file included from ../include/vlc_common.h:1265,
> from ../include/vlc/vlc.h:151,
> from misc/cpu.c:29:
> ../include/variables.h: In function `__var_GetString':
> ../include/variables.h:396: warning: implicit declaration of function
> `strdup'
> ../include/variables.h:396: warning: return makes pointer from integer
> without a
> cast
> ../include/variables.h: In function `__var_CreateGetString':
> ../include/variables.h:528: warning: return makes pointer from integer
> without a
> cast
> misc/cpu.c: In function `CPUCapabilities':
> misc/cpu.c:120: error: `asm' undeclared (first use in this function)
> misc/cpu.c:120: error: (Each undeclared identifier is reported only once
> misc/cpu.c:120: error: for each function it appears in.)
> misc/cpu.c:120: error: parse error before "volatile"
> misc/cpu.c:151: error: parse error before "volatile"
> misc/cpu.c:170: error: parse error before "volatile"
> misc/cpu.c:226: error: parse error before "volatile"
> misc/cpu.c:238: error: parse error before "volatile"
> misc/cpu.c: At top level:
> misc/cpu.c:321: warning: 'SigHandler' defined but not used
> make[4]: *** [misc/libvlc_a-cpu.o] Error 1
>
> and so on... - every time i try to build the player from latest trunk,
> i got lots of warnings & errors - i think that this is caused by
> cygwin (reinstalled it but the same errors appear), but i am not sure
> what component of cygwin causes these errors...
>
> i would be very happy if somebody has a solution how to fix this -
> otherwise i should start trying mingw/crosscompiling...
>
--
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