[Asterisk-Users] mpg123 on x86_64 (Opteron MP)

Brad bking at optusnet.com.au
Sat Dec 10 15:56:45 MST 2005


 >  > Subject: Re: [Asterisk-Users] mpg123 on x86_64 (Opteron MP)
 >  > Joseph wrote:
 >  >> Why do you need to compile it?
 >  >> Isn't it available as an rpm package?
 >  >>
 >  > I will assume he knows why he needs to compile it.
 >  >
 >  > See if the source for the rpm, deb, or whatever from the distro you
 >  > are
 >  > running will build for you. That will often get your system to the
 >  > point
 >  > where any header, tools and libraries needed are now installed. That's
 >  > how I do it when I want to use something from cvs.
 >
 > I'm compiling it because Redhat (FC3) uses mpg321 in the
 > distribution, which doesn't work with *.  I can build *, zaptel, and
 > libprc fine, as well as other apps (FC3 was not compiled, but
 > installed from RPM).
 >
 > Looking at the compile error, I'm thinking there is a problem with an
 > assembler subroutine (push and pop complaints) on the Opteron
 > processor, or a compile flag that should be changed.
 >
 > Still stuck.
 >
 > Original Post:
 > Has anyone successfully compiled mpg123 in the 1.0.x or 1.2beta1
 > distributions (I'm running FC3 linux on an Opteron 2 processor
 > system)?  Are there any patches out there to make it work?
 >
 > gcc -DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT -DLINUX          -
 > DREAD_MMAP -DOSS -DTERM_CONTROL                -Wall -O2 -
 > m486                 -fomit-frame-pointer -funroll-all-
 > loops              -finline-functions -ffast-math   -c -o
 > dct64_i386.o dct64_i386.c
 > as   -o decode_i586.o decode_i586.s
 > decode_i586.s: Assembler messages:
 > decode_i586.s:44: Error: suffix or operands invalid for `push'
 > <snip>
 > decode_i586.s:161: Error: suffix or operands invalid for `pop'
 > <snip>
 >

I am having the same issues as outlined above. The processor is a semperon.

# uname -a
Linux amd64 2.6.12-9-amd64-generic #1 Sat Oct 1 01:11:30 BST 2005 x86_64 
GNU/Linux

When trying to compile mpg123 I get the following errors:

root at amd64:/usr/src/asterisk-1.0.10/mpg123-0.59r# make linux

...
make[2]: Entering directory `/usr/src/asterisk-1.0.10/mpg123-0.59r'
as   -o decode_i586.o decode_i586.s
decode_i586.s: Assembler messages:
decode_i586.s:44: Error: suffix or operands invalid for `push'
decode_i586.s:45: Error: suffix or operands invalid for `push'
decode_i586.s:46: Error: suffix or operands invalid for `push'
decode_i586.s:47: Error: suffix or operands invalid for `push'
decode_i586.s:67: Error: suffix or operands invalid for `push'
decode_i586.s:70: Error: suffix or operands invalid for `push'
decode_i586.s:81: Error: suffix or operands invalid for `push'
decode_i586.s:83: Error: suffix or operands invalid for `push'
decode_i586.s:86: Error: suffix or operands invalid for `push'
decode_i586.s:161: Error: suffix or operands invalid for `pop'
decode_i586.s:211: Error: suffix or operands invalid for `pop'
decode_i586.s:296: Error: suffix or operands invalid for `pop'
decode_i586.s:315: Error: suffix or operands invalid for `pop'
decode_i586.s:316: Error: suffix or operands invalid for `pop'
decode_i586.s:317: Error: suffix or operands invalid for `pop'
decode_i586.s:318: Error: suffix or operands invalid for `pop'
make[2]: *** [decode_i586.o] Error 1
make[2]: Leaving directory `/usr/src/asterisk-1.0.10/mpg123-0.59r'
make[1]: *** [mpg123-make] Error 2
make[1]: Leaving directory `/usr/src/asterisk-1.0.10/mpg123-0.59r'
make: *** [linux] Error 2

Anyone able to point me in the right direction to compile this app? It 
is running ubuntu..

Thanks

Brad



More information about the asterisk-users mailing list