[vlc] compile problem with cygwin
Denis Jouvin
denis.jouvin at liris.cnrs.fr
Mon Oct 25 18:34:27 CEST 2004
Hi users and developers of VLC,
I am having a hard time trying to compile VLC under cygwin. I followed
scrupulously (at least I think so) the instructions in INSTALL.win32.
I always get this error:
----------
In file included from ../../include/vlc/vlc.h:128,
from file.c:27:
../../include/vlc_common.h:133: error: redefinition of `ssize_t'
/usr/local/include/sys/types.h:170: error: `ssize_t' previously declared
here
----------
(see other MIME part for an example error message output, vary slightly
between the VCL revisions)
I use gcc-3.3.1 in mingw32 mode, and the latest build of the library
package available on the VLC website.
When I look closely at the concerned C headers, actually ssize_t seems
redefined as a long in vlc_commmon.h against an int in sys/types.h
I tried to reinstall cygwin and it's necessary modules from different
mirrors, I have also been trying with different SVN revisions of VLC over
the last 2 months, but I'm stuck.
thanks in advance for any help,
------------------------------------------------
Denis Jouvin - Computer Science PhD and Engineer
LIRIS - Université Lyon I, Lyon, France
http://liris.cnrs.fr/denis.jouvin
-------------- next part --------------
make[4]: Entering directory
`/cygdrive/c/User/Denis/Dev/Advene-VLC/vlc-svn/modules/access'
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 --cflag
s plugin access_file` -Wsign-compare -Wall -mms-bitfields -pipe -MT
libaccess_file_plugin_a-file.o
-MD -MP -MF ".deps/libaccess_file_plugin_a-file.Tpo" -c -o
libaccess_file_plugin_a-file.o `test -f '
file.c' || echo './'`file.c; \
then mv -f ".deps/libaccess_file_plugin_a-file.Tpo"
".deps/libaccess_file_plugin_a-file.Po"; else rm
-f ".deps/libaccess_file_plugin_a-file.Tpo"; exit 1; fi
In file included from /usr/local/include/sys/reent.h:14,
from /usr/local/include/stdlib.h:16,
from ../../include/vlc_common.h:65,
from ../../include/vlc/vlc.h:128,
from file.c:27:
/usr/local/include/sys/_types.h:14: warning: useless keyword or type name
in empty declaration
/usr/local/include/sys/_types.h:14: warning: empty declaration
In file included from ../../include/vlc_common.h:73,
from ../../include/vlc/vlc.h:128,
from file.c:27:
/usr/local/include/sys/types.h:160: warning: useless keyword or type name
in empty declaration
/usr/local/include/sys/types.h:160: warning: empty declaration
In file included from ../../include/vlc/vlc.h:128,
from file.c:27:
../../include/vlc_common.h:133: error: redefinition of `ssize_t'
/usr/local/include/sys/types.h:170: error: `ssize_t' previously declared
here
In file included from /usr/local/include/fcntl.h:14,
from file.c:43:
/usr/local/include/sys/fcntl.h:43:1: warning: "O_NONBLOCK" redefined
In file included from ../../include/vlc/vlc.h:128,
from file.c:27:
../../include/vlc_common.h:916:1: warning: this is the location of the
previous definition
file.c: In function `Open':
file.c:151: error: storage size of `stat_info' isn't known
file.c:161: warning: implicit declaration of function `_stati64'
file.c:151: warning: unused variable `stat_info'
file.c: In function `Close':
file.c:320: warning: implicit declaration of function `close'
file.c: In function `Read':
file.c:392: warning: implicit declaration of function `read'
file.c:410: error: storage size of `stat_info' isn't known
file.c:413: warning: implicit declaration of function `_fstati64'
file.c:410: warning: unused variable `stat_info'
file.c: In function `Seek':
file.c:490: warning: implicit declaration of function `_lseeki64'
make[4]: *** [libaccess_file_plugin_a-file.o] Error 1
make[4]: Leaving directory
`/cygdrive/c/User/Denis/Dev/Advene-VLC/vlc-svn/modules/access'
make[3]: *** [all-modules] Error 1
make[3]: Leaving directory
`/cygdrive/c/User/Denis/Dev/Advene-VLC/vlc-svn/modules/access'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/cygdrive/c/User/Denis/Dev/Advene-VLC/vlc-svn/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/User/Denis/Dev/Advene-VLC/vlc-svn'
make: *** [all] Error 2
More information about the vlc
mailing list