Created attachment 372452 [details, diff] Add -lm to the linker flags for player_example. /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: player_example-player_example.o: undefined reference to symbol 'rintf@@GLIBC_2.2.5' /lib64/libm.so.6: error adding symbols: DSO missing from command line examples/Makefile.am needs an extra -lm (note that player_example.c calls 'rint', not 'rintf', but the compiler converts that). Patch attached. This seems to be in upstream SVN already, but 1.1.1 is still the most recent release version.
same problem here
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: player_example-player_example.o: undefined reference to symbol 'rintf@@GLIBC_2.2.5' /lib64/libm.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:449: recipe for target 'player_example' failed make[2]: *** [player_example] Error 1 make[2]: *** Waiting for unfinished jobs.... libtool: link: x86_64-pc-linux-gnu-gcc -I/usr/include/libpng16 -Wall -Wno-parentheses -O2 -pipe -Wl,-O1 -o .libs/png2theora png2theora-png2theora.o -Wl,--as-needed ../lib/.libs/libtheoraenc.so ../lib/.libs/libtheoradec.so -logg -lpng16 -lm make[2]: Leaving directory '/var/tmp/portage/media-libs/libtheora-1.1.1-r1/work/libtheora-1.1.1-amd64/examples' Makefile:521: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/media-libs/libtheora-1.1.1-r1/work/libtheora-1.1.1-amd64' Makefile:417: recipe for target 'all' failed make: *** [all] Error 2
I confirm the patch fixes everything just fine :) thank you hector
patch in portage. thanks!
*** Bug 522522 has been marked as a duplicate of this bug. ***