Thursday 15 March 2012

linux - Symbol error with GCC-4.4.2 libstdc++.so.6 library -



linux - Symbol error with GCC-4.4.2 libstdc++.so.6 library -

i building gcc-4.4.2 ( open embedded recipe using bitbake version-1.8 ) x86 based system.

the configure options under:

"--enable-libssp --disable-bootstrap --disable-libgomp --disable-libmudflap"

it builds after minor changes , libstdc++.so.6.0.13 library getting created.

my aim run citrix receiver on x86 based target. this, run storebrowse follows:

./usr/lib/icaclient/storebrowse

but next errors.

./storebrowse: /usr/lib/libxml2.so.2: no version info available (required ./storebrowse) ./storebrowse: relocation error: ./storebrowse: symbol _ztist15basic_streambufiwst11char_traitsiwee, version glibcxx_3.4 not defined in file libstdc++.so.6 link time reference.

libxml2 error can resolved deleting , creating new symbolic link libxml. unable resolve symbol error (_ztist15basic_streambufiwst11char_traitsiwee). compiling using default gcc_4.4.2.bb recipe.

do need create changes in configure options..?

it looks executable loading system's (older) libstdc++. prepare this, either configure gcc --enable-rpath or explicitly add together rpath phone call g++ -wl,-rpath=/path/to/your/gcc/lib, or run executable this:

ld_library_path=/path/to/your/gcc/lib ./usr/lib/icaclient/storebrowse

i wrote 3 possible solutions in order of personal preference. :)

this page may of interest: https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html

linux

No comments:

Post a Comment