Solution of the error"undefined symbol _dl_loaded"

Status
Not open for further replies.

onioni

Member level 1
Joined
Dec 14, 2004
Messages
37
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
268
Recently,when I installed Specman elite in redhat7.3, it reported "undefined symbol _dl_loaded GLIBC_2.1".And I know it works in redhat 7.2 or RHEL2.1.

If anybody wanna use EDA Tools (use some private symbols such as _dl_loaded) in high version linux, just try my solution:

1. code "compat-preload.c"

struct linkmap *_dl_loaded

2. compile "compat-preload.so.1"

$> gcc -fPIC -g -c -Wall compat-preload.c
$> ld -shared -soname compat-preload.so.1 -o compat-preload.so.1.0 -lc compat-preload.o

3. set env
$> cp compat-preload.so.1 /usr/lib
$> vi ~/.bash_profile
export LD_PRELOAD=/usr/lib/compat-preload.so.1

That's it.I have made specman elite work in CentOS3.3 by this way.
 

Hi, onioni
great job. Will you give us the complete content of "compat-preload.c" ? or it is as a whole with only a content of " struct linkmap *_dl_loaded " ?
 

The file "compat-preload.c" contain the only one line.

struct linkmap *_dl_loaded


good luck!
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…