3
> First in reply to the following section
5
> Am Dienstag, 29. Januar 2002 09:09 schrieben Sie - you wrote:
7
> > http://eirik.dynip.com/~eirik/files/dlopen/dlopen-2002-01-08.c
8
> > compile it (see first line of file), then run it with rpnp.so
9
> > as argument (for all your rpnp.so files). Note that you
10
> > probably have to give a path: "./dlopen ./rpnp.so" will work,
11
> > but "./dlopen rpnp.so" will probably not (Given that you
12
> > are in the same directory as both dlopen and rpnp.so, of course).
15
> dlopening (RTLD_LAZY) './rpnp.so'
16
> Failed: ./rpnp.so: undefined symbol: __pure_virtual
17
> dlopening (RTLD_NOW) './rpnp.so'
18
> Failed: ./rpnp.so: undefined symbol: __pure_virtual
20
> I tried two different versions, but I'm not sure where I should run
21
> it. Does this result tell you something?
23
> Looking forward to your reply!
27
Stupid me, I had forgotten about that.
29
Create a new file called "pure_virtual.c" containing this one line:
31
void __pure_virtual() {};
34
Then, 'gcc -o pure_virtual.so -shared pure_virtual.c'.
36
Now do 'LD_PRELOAD=./pure_virtual.so ./dlopen ./rpnp.so'
37
(exchange ./ with whatever suits you)
39
If you get an error about an undefined symbol starting with
41
'LD_PRELOAD=./pure_virtual.so;/usr/X11R6/lib/libXm.so ./dlopen ./rpnp.so'
43
If you get an error about an undefined symbol starting with Xt
44
add /usr/X11R6/lib/libXt.so to the LD_PRELOAD stuff,
45
and if you get something starting with 'X', try to add
46
/usr/X11R6/lib/libX11.so
48
(I should probably do something about all that...)
51
Create a new file called "pure_virtual.c" containing this one line: void
53
{}; Then, 'gcc -o pure_virtual.so -shared pure_virtual.c'.
b'\\ No newline at end of file'