On Apr 19, 2012, at 4:25 AM, Christian Adams wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> when I try to 'fink install mpeg2dec' I get the following error:
> 
> - ---- snip ----
> checking io.h usability... yes
> checking io.h presence... yes
> checking for io.h… yes

^^ This is the problem here.

> gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -I../include -I/sw/include 
> -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow 
> -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -g  
> -O3 -fomit-frame-pointer -fno-common -I/usr/X11R6/include -I/sw/include/SDL 
> -D_GNU_SOURCE=1 -D_THREAD_SAFE -g -O2 -c extract_mpeg2.c
> In file included from mpeg2dec.c:31:
> ./getopt.h:136: warning: function declaration isn't a prototype
> In file included from mpeg2dec.c:34:
> /sw/include/io.h:56: warning: function declaration isn't a prototype
> /sw/include/io.h:59: warning: function declaration isn't a prototype
> /sw/include/io.h:66: warning: function declaration isn't a prototype
> /sw/include/io.h:68: warning: function declaration isn't a prototype
> /sw/include/io.h:71: warning: function declaration isn't a prototype
> In file included from extract_mpeg2.c:30:
> ./getopt.h:136: warning: function declaration isn't a prototype
> In file included from extract_mpeg2.c:33:
> /sw/include/io.h:56: warning: function declaration isn't a prototype
> /sw/include/io.h:59: warning: function declaration isn't a prototype
> /sw/include/io.h:66: warning: function declaration isn't a prototype
> /sw/include/io.h:68: warning: function declaration isn't a prototype
> /sw/include/io.h:71: warning: function declaration isn't a prototype
> mpeg2dec.c: In function 'SDL_main':
> mpeg2dec.c:766: warning: implicit declaration of function 'setmode'
> mpeg2dec.c:766: warning: nested extern declaration of 'setmode'
> mpeg2dec.c:766: error: 'O_BINARY' undeclared (first use in this function)
> mpeg2dec.c:766: error: (Each undeclared identifier is reported only once
> mpeg2dec.c:766: error: for each function it appears in.)
> make[1]: *** [mpeg2dec.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> extract_mpeg2.c: In function 'main':
> extract_mpeg2.c:448: warning: implicit declaration of function 'setmode'
> extract_mpeg2.c:448: warning: nested extern declaration of 'setmode'
> extract_mpeg2.c:448: error: 'O_BINARY' undeclared (first use in this function)
> extract_mpeg2.c:448: error: (Each undeclared identifier is reported only once
> extract_mpeg2.c:448: error: for each function it appears in.)

Which leads to these errors.

Can you run 'dpkg -S /sw/include/io.h' to find what has installed an io.h? The 
problem is that io.h is a Windows-specific header file and since it's being 
found, mpeg2dec thinks it's being built on a Windows machine and using O_BINARY 
which is also Windows-specific. We should find out what package is installing 
this as it's possible it could break other things too. :/

Daniel


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to