[MPlayer-dev-eng] Issues in the IRIX version of MPlayer; trying to fix them
Gernot Ziegler
gz at lysator.liu.se
Tue Sep 3 14:26:19 CEST 2002
Next thing:
The final linking process fails because of the wrong order of libraries:
gcc -O4 -ffast-math -fomit-frame-pointer -Ilibmpdemux -Iloader -Ilibvo
-o mplayer mplayer.o mp_msg.o xacodec.o cpudetect.o codec-cfg.o
cfgparser.o my_profile.o spudec.o playtree.o playtreeparser.o asxparser.o
vobsub.o subreader.o sub_cc.o find_sub.o lirc_mp.o mixer.o mp-opt-reg.o
-Llibvo -lvo -Llibmpcodecs -lmpcodecs -Lmp3lib -lMP3 -Lliba52 -la52
-Llibmpeg2 -lmpeg2 -Llibavcodec -lavcodec -Llibmpdemux -lmpdemux
-Linput -linput -laudio -lpthread -Lpostproc -lpostproc
-Llinux -losdep -ltermcap -lsocket -lnsl -lm -Llibao2 -lao2
-L/usr/lib32 -lX11 -lXext -lsocket -lnsl -lGL -lsocket -lnsl
ld32: WARNING 84 : /usr/lib32/libaudio.so is not used for resolving any
symbol.
ld32: WARNING 84 : /usr/lib32/libpthread.so is not used for resolving any
symbol.
ld32: WARNING 84 : /usr/lib32/libsocket.so is not used for resolving any
symbol.ld32: WARNING 84 : /usr/lib32/libnsl.so is not used for resolving
any symbol.
ld32: ERROR 33 : Unresolved text symbol "alGetResourceByName" -- 1st
referenced by libao2/libao2.a(ao_sgi.o).
Use linker option -v to see when and which objects, archives and
dsos are loaded.
ld32: ERROR 33 : Unresolved text symbol "alDoubleToFixed" -- 1st
referenced by libao2/libao2.a(ao_sgi.o).
Use linker option -v to see when and which objects, archives and
dsos are loaded.
ld32: ERROR 33 : Unresolved text symbol "alSetParams" -- 1st referenced
by libao2/libao2.a(ao_sgi.o).
//////////
the fix is to change the order of libraries; -laudio needs to be placed
after the lib that is using it, -lao2 in that case ...
this works, e.g.:
hpcv102 ~/MPlayer-0.90pre6\> gcc -O4 -ffast-math -fomit-frame-pointer
-Ilibmpdemux -Iloader -Ilibvo -o mplayer mplayer.o mp_msg.o xacodec.o
cpudetect.o codec-cfg.o cfgparser.o my_profile.o spudec.o playtree.o
playtreeparser.o asxparser.o vobsub.o subreader.o sub_cc.o find_sub.o
lirc_mp.o mixer.o mp-opt-reg.o -Llibvo -lvo -Llibmpcodecs -lmpcodecs
-Lmp3lib -lMP3 -Lliba52 -la52 -Llibmpeg2 -lmpeg2 -Llibavcodec -lavcodec
-Llibmpdemux -lmpdemux -Linput -linput -lpthread -Lpostproc -lpostproc
-Llinux -losdep -ltermcap -lsocket -lnsl -lm -Llibao2 -lao2
-laudio -L/usr/lib32 -lX11 -lXext -lsocket -lnsl -lGL -lsocket -lnsl
I leave the fix to you, I don't dare to touch the Makefiles ;)
Servus,
Gernot
/-----------------------------W-E-L-C-O-M-E------------------------------\
T The Austria <=> Sweden connection..... T
| E-Mail: gz at lysator.liu.se H
O Homepage: http://www.lysator.liu.se/~gz E
\------------------------------F-U-T-U-R-E-------------------------------/
More information about the MPlayer-dev-eng
mailing list