rizsotto / scan-build

Clang's scan-build re-implementation in python
Other
362 stars 34 forks source link

libear is using LD_LIBRARY_PATH #76

Closed rizsotto closed 7 years ago

rizsotto commented 8 years ago

to support 32 and 64 bit libraries on linux, better to put the path for both libraries into LD_LIBRARY_PATH and LD_PRELOAD can contains 'libear.so'

ryosa commented 7 years ago

What do you exactly mean? Setting LD_LIBRARY_PATH to the env variable didn't work. Besides, running bear alone produces the same error.

[root@baci symp]# bear --libear /opt/bear/lib/libear.so make ERROR: ld.so: object '/opt/bear/lib/libear.so' from LD_PRELOAD cannot be preloaded: ignored. ERROR: ld.so: object '/opt/bear/lib/libear.so' from LD_PRELOAD cannot be preloaded: ignored. ERROR: ld.so: object '/opt/bear/lib/libear.so' from LD_PRELOAD cannot be preloaded: ignored. make all-recursive ERROR: ld.so: object '/opt/bear/lib/libear.so' from LD_PRELOAD cannot be preloaded: ignored.

I'm working on centos7.3 selinux disabled with a 32bit toolchain.

rizsotto commented 7 years ago

Hey @ryosa it's a bit consfusing that you report Bear problem here on a different project.

ryosa commented 7 years ago

@rizsotto Sorry about that. Just posted it to Bear.