[Cpu-users] segfault on Irix 6.5.19m: linker needs -Bsymbolic?
Brought to you by:
matheny
|
From: Edwin L. <el...@fl...> - 2004-02-04 04:05:21
|
Sorry for the previous incomplete message.
Cpu segfaults on Irix 6.5.19m when I try to use any command, e.g., cat.
I have traced it and it seems that plugins/ldap/ldap.c:CPU_init()
calls parseCommand() and it is getting main/cpu.c:parseCommand()
instead of plugins/ldap/commandline.c:parseCommand().
So the globalLdap->dn structure does not get created and the segfault
results.
I worked around it by using -Bsymoblic to link the libraries:
Edit configure file, look for the $archive_cmds definition for Irix,
insert ${wl}-Bsymbolic before ${wl}-set_version. This is for using gcc
to link, which I presume it will pass -Bsymbolic to the native Irix ld.
This will help OSes where the default linker behavior is to resolve
symbols in the global symbol list. -Bsymbolic will cause references
within a library to be resolved against it's own symbol list first.
Just my $0.02.
Cheers,
e.
|