[MPlayer-users] svn compile problem

Kostas Peoulodis asyropoulos123 at hotmail.com
Sat Sep 13 14:02:27 CEST 2008


>                  from utils.c:31:
> /usr/gnu/lib/gcc/i386-pc-solaris2.11/4.2.3/include/sys/feature_tests.h:362:2:
> error: #error "Compiler or options invalid for pre-UNIX 03 X/Open
> applications 	and pre-2001 POSIX applications"
> make[1]: *** [utils.o] Error 1

In OpenSolaris there are the following conditional declarations:

#if defined(__EXTENSIONS__) || \
        !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) || \
        (defined(_LARGEFILE_SOURCE) && _FILE_OFFSET_BITS == 64)
extern int      mkstemp(char *);   /* <--- this is used by utils.c */
#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
extern int      mkstemps(char *, int);
#endif
#endif /* defined(__EXTENSIONS__) ... */
 

Because of this I believe you need to comment out the following line

#define _XOPEN_SOURCE 500


in file libavcodec/utils.c.

Apostolos 

_________________________________________________________________
Κατεβάστε 30 ΔΩΡΕΑΝ Emoticons για τον Windows Live Messenger σας!
http://www.livemessenger-emoticons.com/funfamily/el-gr/


More information about the MPlayer-users mailing list