[MPlayer-dev-eng] state of realvideo?
Kees Cook
mplayer at outflux.net
Mon May 20 23:27:54 CEST 2002
On Mon, May 20, 2002 at 04:53:01PM -0400, D Richard Felker III wrote:
> The linker is probably omitting your stub because it's unused. Make a
> pointer/call to it somewhere or declare it volatile and it might work.
$ nm drv2-loader | grep pure
080485d0 T __pure_virtual
$ ./drv2-loader
dlopen: ./drv2.so.6.0: undefined symbol: __pure_virtual
I really don't get it. It should be resolved. Let me check realplay.
$ nm `which realplay` | grep pure_virtual
nm: /usr/bin/X11/realplay: no symbols
$ nm -D `which realplay` | grep pure_virtual
0814b160 T __pure_virtual
Hm, so I have to mark it as dynamic somehow? linker option... ah ha, ld
option '-E'. So I have to compile like so:
gcc -Wall -fPIC -c -o drv2-loader.o drv2-loader.c
gcc -Wall -fPIC -Wl,-E -o drv2-loader drv2-loader.o -ldl
And then it loads. :) Okay, problem solved.
--
Kees Cook @outflux.net
More information about the MPlayer-dev-eng
mailing list