[MPlayer-dev-eng] Linking mplayer fails

Dan Oscarsson Dan.Oscarsson at tieto.com
Mon Apr 1 12:17:16 CEST 2013


Hi

Tried to create mplayer under opensuse 12.3 but linking fails with:

/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: libmpcodecs/vf_fspp.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
libmpcodecs/vf_fspp.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status

The code is the current source snapshot downloaded today:
mplayer-export-2013-04-01

I also had the snapshot: mplayer-export-2012-11-25, which I also tested
now. It links fine.

I do not think the problem is with libmpcodecs/vf_fspp.c. The difference
in it is just change from DCTELEM to int16_t.

Kompilation line for 2013-04-01 version is:
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith
-Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes
-Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=gnu99 -Werror-implicit-function-declaration
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I.
-Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math
-fomit-frame-pointer -fno-tree-vectorize -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4  -fpie
-D_REENTRANT  -D_REENTRANT   -c -o libmpcodecs/vf_fspp.o
libmpcodecs/vf_fspp.c

In 2012-11-25 version it is:
cc -MD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith
-Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes
-Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=gnu99 -Werror-implicit-function-declaration -O4 -march=native
-mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
-Ilibdvdread4 -I. -Iffmpeg  -D_REENTRANT  -D_REENTRANT   -c -o
libmpcodecs/vf_fspp.o libmpcodecs/vf_fspp.c

I also tested to recompile the file using the old versions compile line,
but linking still fails.

Any ideas on what is wrong?

   Dan



More information about the MPlayer-dev-eng mailing list