Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#21 mplayerxp will not compile on Fedora 8 x86_64 machine

closed-fixed
nickols_k
None
5
2009-01-06
2008-01-31
Kevin DeKorte
No

I ran

./configure --prefix=/usr --libdir=/usr/lib64

And configure did not detect x11 or xv outputs. I edited the configure script in the mplayerxp directory and added /usr/lib64 to the X11 libs check. After that configure found my x11 and xv libs. but when I tried to compile I got this.

gcc -MM -O4 -march=x86_64 -pipe -ffast-math -fomit-frame-pointer -W -Wall -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64 -D__USE_LARGEFILE -D_LARGEFILE64_SOURCE -Ilibmpdemux -Ilibvo -Wall mplayer.c cpudetect.c mp_msg.c codec-cfg.c cfgparser.c my_profile.c my_malloc.c spudec.c playtree.c playtreeparser.c asxparser.c find_sub.c subreader.c mixer.c vobsub.c mp-opt-reg.c sig_hand.c dump.c dec_ahead.c 1>.depend
mplayer.c:0: error: bad value (x86_64) for -march= switch
mplayer.c:0: error: bad value (x86_64) for -mtune= switch
cpudetect.c:0: error: bad value (x86_64) for -march= switch
cpudetect.c:0: error: bad value (x86_64) for -mtune= switch
mp_msg.c:0: error: bad value (x86_64) for -march= switch
mp_msg.c:0: error: bad value (x86_64) for -mtune= switch
codec-cfg.c:0: error: bad value (x86_64) for -march= switch
codec-cfg.c:0: error: bad value (x86_64) for -mtune= switch
cfgparser.c:0: error: bad value (x86_64) for -march= switch
cfgparser.c:0: error: bad value (x86_64) for -mtune= switch
my_profile.c:0: error: bad value (x86_64) for -march= switch
my_profile.c:0: error: bad value (x86_64) for -mtune= switch
my_malloc.c:0: error: bad value (x86_64) for -march= switch
my_malloc.c:0: error: bad value (x86_64) for -mtune= switch
spudec.c:0: error: bad value (x86_64) for -march= switch
spudec.c:0: error: bad value (x86_64) for -mtune= switch
playtree.c:0: error: bad value (x86_64) for -march= switch
playtree.c:0: error: bad value (x86_64) for -mtune= switch
playtreeparser.c:0: error: bad value (x86_64) for -march= switch
playtreeparser.c:0: error: bad value (x86_64) for -mtune= switch
asxparser.c:0: error: bad value (x86_64) for -march= switch
asxparser.c:0: error: bad value (x86_64) for -mtune= switch
find_sub.c:0: error: bad value (x86_64) for -march= switch
find_sub.c:0: error: bad value (x86_64) for -mtune= switch
subreader.c:0: error: bad value (x86_64) for -march= switch
subreader.c:0: error: bad value (x86_64) for -mtune= switch
mixer.c:0: error: bad value (x86_64) for -march= switch
mixer.c:0: error: bad value (x86_64) for -mtune= switch
vobsub.c:0: error: bad value (x86_64) for -march= switch
vobsub.c:0: error: bad value (x86_64) for -mtune= switch
mp-opt-reg.c:0: error: bad value (x86_64) for -march= switch
mp-opt-reg.c:0: error: bad value (x86_64) for -mtune= switch
sig_hand.c:0: error: bad value (x86_64) for -march= switch
sig_hand.c:0: error: bad value (x86_64) for -mtune= switch
dump.c:0: error: bad value (x86_64) for -march= switch
dump.c:0: error: bad value (x86_64) for -mtune= switch
dec_ahead.c:0: error: bad value (x86_64) for -march= switch
dec_ahead.c:0: error: bad value (x86_64) for -mtune= switch
make[1]: *** [dep] Error 1
make[1]: Leaving directory `/home/kdekorte/Download/mplayerxp-0.6.2/mplayerxp'
make: *** [version.h] Error 2

Discussion

  • nickols_k
    nickols_k
    2008-02-01

    Logged In: YES
    user_id=5556
    Originator: NO

    About x11: try execute 'confugure --help':

    Use these options if autodetection fails:
    --with-extraincdir=DIR extra headers (x11, png, dvb, mad, sdl, css, ...) in DIR
    --with-extralibdir=DIR extra library files (x11, png, SDL, ...) in DIR
    --with-extraldflags=LIST extra LDFLAGS

    Try this patch:

    --- configure.old 2007-12-05 20:39:14.000000000 +0300
    +++ configure 2008-02-01 10:24:11.000000000 +0300
    @@ -546,7 +546,9 @@
    print_config __USE config.h config.mak fastcall

    _march="-O3"
    -if x86 ; then
    +if x86_64 ; then
    +_march="-march=x86-64"
    +elif x86 ; then
    _march="-march=$_build_cpu"
    fi
    if test "$_profile" || test "$_debug" ; then

     
  • nickols_k
    nickols_k
    2008-02-01

    • assigned_to: nobody --> nickols_k
    • status: open --> open-accepted
     
  • Kevin DeKorte
    Kevin DeKorte
    2008-02-03

    Logged In: YES
    user_id=685413
    Originator: YES

    Unfortunately that patch doesn't apply to 0.6.2

     
  • Logged In: NO

    Try CVS!

     
  • Kevin DeKorte
    Kevin DeKorte
    2008-02-03

    Logged In: YES
    user_id=685413
    Originator: YES

    Grabbed CVS... I get this error

    In file included from lrmi.c:17:
    /usr/include/asm/vm86.h:5:4: error: #error asm-x86_64/vm86.h does not exist in the x86_64 architecture

     
  • nickols_k
    nickols_k
    2009-01-06

    • status: open-accepted --> closed-fixed