[MPlayer-cygwin] svn 19208 - Mingw/MSYS build fails - no sys/poll.h
Gianluigi Tiesi
mplayer at netfarm.it
Fri Jul 28 21:25:03 CEST 2006
On Fri, Jul 28, 2006 at 04:52:14AM -0400, John Brown wrote:
> I cannot build svn 19208 on Windows with MSYS and Mingw.
>
> ./configure is successful, but make fails with:
>
> gcc -c -I../libvo -I../../libvo -fno-PIC -W -Wall \
> -Wno-unused-parameter -O2 -march=prescott -mtune=prescott -g3 \
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ic:/mingw/include/freetype2 \
> -Ic:/mingw/include -I. -I.. -o ao_mpegpes.o ao_mpegpes.c
> ao_mpegpes.c:9:22: sys/poll.h: No such file or directory
> ao_mpegpes.c: In function `preinit':
> ao_mpegpes.c:145: warning: missing initializer
> ao_mpegpes.c:145: warning: (near initialization for `subopts[0].set')
> ao_mpegpes.c:146: warning: missing initializer
> ao_mpegpes.c:146: warning: (near initialization for `subopts[1].set')
> ao_mpegpes.c:147: warning: missing initializer
> ao_mpegpes.c:147: warning: (near initialization for `subopts[2].type')
> ao_mpegpes.c: In function `init':
> ao_mpegpes.c:237: warning: label `retry' defined but not used
> make[1]: *** [ao_mpegpes.o] Error 1
> make[1]: Leaving directory `/c/progra~1/mplayer/svn/libao2'
> make: *** [libao2/libao2.a] Error 2
>
> I got some errors before, but "make clean" and "make distclean" fixed
> them. However, it is a fact that there is no poll.h in
> /mingw/include/sys or anywhere else for that matter.
>
> I am using gcc version 3.4.2 (mingw-special) with MSYS 1.0.11 on
> Windows XP SP2.
I sent a message but wrong address :P..
I think the sys/poll include should be ifdef-ed
since poll it's only used when HAVE_DVB is defined.
here the patch:
http://oss.netfarm.it/mplayer/patches/xx_missing_sys_poll.diff
--
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
More information about the MPlayer-cygwin
mailing list