[MPlayer-users] Compile Fails under Solaris 10 10/09 (Intel Core 2)

Murray Blakeman mblakeman at netspace.net.au
Sat Mar 20 00:20:12 CET 2010


On 20/03/10 06:16 AM, Reimar Döffinger wrote:
> On Fri, Mar 19, 2010 at 07:32:12PM +1100, Murray Blakeman wrote:
>    
> What's in configure.log under the
> "Checking for swab()"
> part?
>    
============ Checking for swab() ============

#define _XOPEN_SOURCE 600
#include <unistd.h>
int main(void) { swab(0, 0, 0); return 0; }

gcc -D_ISOC99_SOURCE -D_BSD_SOURCE -O2 -march=native -mcpu=native -pipe 
-I.     -lkstat -lposix4 -lsocket -lnsl    -o /t
mp/mplayer-conf-15076-1912 /tmp/mplayer-conf-8191-1912.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from /usr/include/unistd.h:18,
                  from /tmp/mplayer-conf-8191-1912.c:2:
/opt/mbl/lib/gcc/i386-pc-solaris2.10/4.3.4/include-fixed/sys/feature_tests.h:345:2: 
error: #error "Compiler or options i
nvalid; UNIX 03 and POSIX.1-2001 applications   require the use of c99"



Perhaps my compile and install of gcc is bad.  This is the only source 
that's failed to compile.

$ gcc -v

Using built-in specs.
Target: i386-pc-solaris2.10
Configured with: ../configure --prefix=/opt/mbl --sysconfdir=/etc 
--mandir=/opt/mbl/share/man --with-gnu-as --with-as=/opt/mbl/bin/as 
--without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-languages=c,c++ 
--with-gmp=/opt/mbl --with-mpfr=/opt/mbl --enable-shared
Thread model: posix
gcc version 4.3.4 (GCC)

> You could try
> -D_XOPEN_SOURCE=600
>    

Using this CFLAG produces the following during configure

mplayer-export-2010-03-17 $ ./configure --prefix=/opt/mbl --confdir=/etc 
--mandir=/opt/mbl/share/man --cc=gcc --extra-cflags=-D_XOPEN_SOURCE=600
.....
Checking for bitypes.h (inttypes.h predecessor) ...
Error: Cannot find header either inttypes.h or bitypes.h. There is no 
chance for compilation to succeed.

Check "configure.log" if you do not understand why it failed.



Here is the section of the configure log.

============ Checking for inttypes.h (required) ============

#include <inttypes.h>
int main(void) { return 0; }

gcc -D_ISOC99_SOURCE -D_BSD_SOURCE -O2 -march=native -mcpu=native -pipe 
-I. -D_XOPEN_SOURCE=600     -o /tmp/mplayer-conf
-3113-6695 /tmp/mplayer-conf-22733-6695.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from /usr/include/inttypes.h:20,
                  from /tmp/mplayer-conf-22733-6695.c:1:
/opt/mbl/lib/gcc/i386-pc-solaris2.10/4.3.4/include-fixed/sys/feature_tests.h:345:2: 
error: #error "Compiler or options i
nvalid; UNIX 03 and POSIX.1-2001 applications   require the use of c99"


Result is: no
##########################################

============ Checking for bitypes.h (inttypes.h predecessor) ============

#include <sys/bitypes.h>
int main(void) { return 0; }

gcc -D_ISOC99_SOURCE -D_BSD_SOURCE -O2 -march=native -mcpu=native -pipe 
-I. -D_XOPEN_SOURCE=600     -o /tmp/mplayer-conf
-3113-6695 /tmp/mplayer-conf-22733-6695.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
/tmp/mplayer-conf-22733-6695.c:1:25: error: sys/bitypes.h: No such file 
or directory





More information about the MPlayer-users mailing list