/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to SCM/packaging/general/gcc/gcc23compat.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2017-04-03 02:45:17 UTC
  • Revision ID: csa@suren.me-20170403024517-dwzj0z0k1cmhxm7u
Restructuring, OpenShift, Ansible, Git

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
> Hi Erik,
 
2
 
3
> First in reply to the following section
 
4
 
5
> Am Dienstag, 29. Januar 2002 09:09 schrieben Sie - you wrote:
 
6
> > Could you download
 
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).
 
13
 
14
> This is the result:
 
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
 
19
 
20
> I tried two different versions, but I'm not sure where I should run 
 
21
> it. Does this result tell you something?
 
22
 
23
> Looking forward to your reply!
 
24
 
25
> Martin
 
26
 
 
27
Stupid me, I had forgotten about that.
 
28
 
 
29
Create a new file called "pure_virtual.c" containing this one line:
 
30
 
 
31
void __pure_virtual() {};
 
32
 
 
33
 
 
34
Then, 'gcc -o pure_virtual.so -shared pure_virtual.c'.
 
35
 
 
36
Now do 'LD_PRELOAD=./pure_virtual.so ./dlopen ./rpnp.so'
 
37
(exchange ./ with whatever suits you)
 
38
 
 
39
If you get an error about an undefined symbol starting with
 
40
'Xm', try
 
41
'LD_PRELOAD=./pure_virtual.so;/usr/X11R6/lib/libXm.so ./dlopen ./rpnp.so'
 
42
 
 
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
 
47
 
 
48
(I should probably do something about all that...)
 
49
 
 
50
eirik
 
51
Create a new file called "pure_virtual.c" containing this one line: void
 
52
__pure_virtual()
 
53
{}; Then, 'gcc -o pure_virtual.so -shared pure_virtual.c'.
 
 
b'\\ No newline at end of file'