[MPlayer-users] Building MPlayer 1.0pre3 on Solaris 9 x86 - asm problem

Laurent Blume laurent at elanor.org
Tue Dec 9 23:25:57 CET 2003


First post on this list - hello all!

I hope this is the right place to post, and that it is detailed enough :-)

I'm trying to build MPlayer 1.0pre3 on Solaris 9 x86, but I'm hitting 
some asm error. Version 0.92 didn't have that particular problem, but 
1.0pre2 already did.

Here is is:

$ make
make -C libavcodec LIBPREF=lib LIBSUF=.a
make[1]: Entering directory `/export/space/src/MPlayer-1.0pre3/libavcodec'
gcc -lsocket -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/opt/jpeg/include -I/opt/giflib/include -I/opt/oss/include 
-I/opt/vorbis/include -I/opt/libpng/include -I/opt/freetype2/include 
-I/opt/mad/include -I/opt/libdvdcss/include -I/opt/libdvdread/include 
-I/opt/xvid/include -I/opt/gnome/include/gtk-1.2 
-I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include 
-I/usr/X11R6/include -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o i386/dsputil_mmx.o 
i386/dsputil_mmx.c
i386/dsputil_mmx.c: In function `h263_h_loop_filter_mmx':
i386/dsputil_mmx.c:610: error: can't find a register in class 
`GENERAL_REGS' while reloading `asm'
make[1]: *** [i386/dsputil_mmx.o] Error 1
make[1]: Leaving directory `/export/space/src/MPlayer-1.0pre3/libavcodec'
make: *** [libavcodec/libavcodec.a] Error 2

A description of the system:

$ uname -a
SunOS dhcp-111-14 5.9 Generic_112234-08 i86pc i386 i86pc

$ gcc -v
Reading specs from 
/opt/gcc/bin/../lib/gcc-lib/i386-pc-solaris2.9/3.3.2/specs
Configured with: ../gcc-3.3.2/configure --prefix=/opt/gcc-3.3.2 
--with-gnu-as --with-as=/opt/binutils/bin/as --with-gnu-ld 
--with-ld=/opt/binutils/bin/ld --enable-threads=posix --disable-nls
Thread model: posix
gcc version 3.3.2

$ ld -V
GNU ld version 2.14 20030612
   Supported emulations:
    elf_i386_ldso
    elf_i386

$ as  --version
GNU assembler 2.14 20030612
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms 
of the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `i386-pc-solaris2.9'.


$ xdpyinfo
name of display:    :0.0
version number:    11.0
vendor string:    The XFree86 Project, Inc
vendor release number:    40399016
XFree86 version: 4.3.99.16
[snip]

I used the following to configure:

CFLAGS='-lsocket' \
./configure --prefix=/opt/MPlayer-1.0pre3 \
   --enable-gui \
   --enable-largefiles \
   --enable-shared-pp \
   --disable-arts \
   --disable-esd \
   --disable-dga \
   --disable-mlib \
   --disable-sse \
   --disable-sse2 \
   --with-x11incdir=/usr/X11R6/include \
   --with-x11libdir=/usr/X11R6/lib \
   --with-xvidlibdir=/opt/xvid/lib \
   --with-xvidincdir=/opt/xvid/include \
 
--with-extraincdir=/opt/jpeg/include:/opt/giflib/include:/opt/oss/include:/opt
/vorbis/include:/opt/libpng/include:/opt/freetype2/include:/opt/mad/include:/opt
/libdvdcss/include:/opt/libdvdread/include:/opt/xvid/include \
 
--with-extralibdir=/opt/jpeg/lib:/opt/giflib/lib:/opt/oss:/opt/vorbis/lib:/opt
/libpng/lib:/opt/freetype2/lib:/opt/mad/lib:/opt/libdvdcss/lib:/opt/libdvdread/l
ib:/opt/xvid/lib \
   --with-win32libdir=/opt/codecs/win32codecs \
   --with-xanimlibdir=/opt/codecs/xanimdlls \
   --with-reallibdir=/opt/codecs/rp9codecs \
   --enable-freetype \
   --with-xmmslibdir=/opt/xmms/lib


Which seems to pick things all right.

Attached are config.h and config.mak.

I added the following to config.h:
#define u_int32_t uint32_t
to work around the use of multiple u_int32_t in loader/ (I was doing the 
same in 0.92).

Thanks in advance for any help! I'd really like to keep up with the last 
and greatest MPlayer :-)

Laurent
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: config.h
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20031209/7b2237bd/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: config.mak
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20031209/7b2237bd/attachment.asc>


More information about the MPlayer-users mailing list