Page 1 of 1

Cygwin make error

Posted: 21 Feb 2004 06:27
by Matt
Hello,
I followed the instructions in install.win32 for cygwin and the configuration works fine, but when i try to 'make' i eventually get the following error...

if gcc -mno-cygwin -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
`top_builddir="../../.." ../../../vlc-config --cflags plugin playlist` -Wsign-co
mpare -Wall -mms-bitfields -finline-limit-30000 -pipe -MT libplaylist_plugin_a-
playlist.o -MD -MP -MF ".deps/libplaylist_plugin_a-playlist.Tpo" \
-c -o libplaylist_plugin_a-playlist.o `test -f 'playlist.c' || echo './'`playl
ist.c; \
then mv -f ".deps/libplaylist_plugin_a-playlist.Tpo" ".deps/libplaylist_plugin_a
-playlist.Po"; \
else rm -f ".deps/libplaylist_plugin_a-playlist.Tpo"; exit 1; \
fi
playlist.c:30:22: playlist.h: No such file or directory
playlist.c: In function `vlc_entry__snapshot_20040219':
playlist.c:41: error: `Import_Old' undeclared (first use in this function)
playlist.c:41: error: (Each undeclared identifier is reported only once
playlist.c:41: error: for each function it appears in.)
playlist.c:47: error: `Import_M3U' undeclared (first use in this function)
playlist.c:47: error: `Close_M3U' undeclared (first use in this function)
playlist.c:52: error: `Import_PLS' undeclared (first use in this function)
playlist.c:52: error: `Close_PLS' undeclared (first use in this function)
make[6]: *** [libplaylist_plugin_a-playlist.o] Error 1
make[6]: Leaving directory `/cygdrive/c/vlccyg/snap/modules/demux/playlist'
make[5]: *** [all-modules] Error 1
make[5]: Leaving directory `/cygdrive/c/vlccyg/snap/modules/demux/playlist'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/cygdrive/c/vlccyg/snap/modules/demux'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/cygdrive/c/vlccyg/snap/modules/demux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/vlccyg/snap/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/vlccyg/snap'
make: *** [all] Error 2


if anyone know's how this can be avoided please let me know, any suggestions would be appreciated,
thanks.

Posted: 22 Feb 2004 01:36
by Gibalou
Sorry about that, a file was missing in the snapshots. Should be fixed in the next one.

Posted: 22 Feb 2004 22:55
by Guest
Does anyone which recent snapshots definitely compile ok using cygwin, following the instructions in install.win32???
Thanks :)

Posted: 23 Feb 2004 00:31
by markfm
I just had precisely the same error set crop up, trying to compile under mingw, current snapshot of vlc.

The "undeclared" functions that playlist.c is generating errors against appear to be in the other .c files in that directory. (old.c, pls.c, m3u.c).

No clue how to tell playlist.c that those things will appear shortly -- is there a compiler switch that needs to go in the makefile?

Snapshot missing a file

Posted: 23 Feb 2004 13:51
by markfm
There's a newer snapshot, with a playlist.h file in the directory where the make was going bad. (the errors were a lack of a header file, referencing the "undeclared" functions that appear in the other .c files)

Posted: 23 Feb 2004 15:18
by Matt
Hi, now that i have the replaced playlist.h file I am still encountering an error...
if gcc -mno-cygwin -DHAVE_CONFIG_H -I. -I. -I. -I./intl -I/usr/win32/include -I
/usr/win32/include/ebml -D_OFF_T_ -D_off_t=long -DSYS_MINGW32 -I./include `top_b
uilddir="." ./vlc-config --cflags vlc` -Wsign-compare -Wall -mms-bitfields -fin
line-limit-30000 -pipe -MT src/vlc-vlc.o -MD -MP -MF "src/.deps/vlc-vlc.Tpo" \
-c -o src/vlc-vlc.o `test -f 'src/vlc.c' || echo './'`src/vlc.c; \
then mv -f "src/.deps/vlc-vlc.Tpo" "src/.deps/vlc-vlc.Po"; \
else rm -f "src/.deps/vlc-vlc.Tpo"; exit 1; \
fi
windres -DVERSION=snapshot-20040219 -DVERSION_NUMBER=`echo snapshot-20040219.0.0
.0 | sed 's/\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\).*/\
1,\2,\3,\4/'` --include-dir ./share -i share/vlc_win32_rc.rc -o share/vlc_win32_
rc.o
windres: share/vlc_win32_rc.rc:15: parse error
make[2]: *** [share/vlc_win32_rc.o] Error 1
make[2]: Leaving directory `/cygdrive/c/v/f19/vlc-snapshot-20040219'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/v/f19/vlc-snapshot-20040219'
make: *** [all] Error 2

this one really has me stumped.... any suggestions will be appreciated,
thanks,
Matt

Posted: 23 Feb 2004 15:27
by Sigmund
This has just recently been answered in the forum

Posted: 24 Feb 2004 02:05
by The DJ
'remove the offending line, snapshots don't have valid win32 version strings'

Posted: 24 Feb 2004 05:29
by Matt
Oh, thanks, you have all been very helpful, i really appreciate it. :D