I am trying to download a PHP extension made using SWIG, but when I start PHP, I get the following error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/libtg.so' - /usr/lib/php5/20090626/libtg.so: undefined symbol: __gxx_personality_v0 in Unknown on line 0
The extension I'm trying to download is called libtg.so and compiled with the command:
g++ -shared libtg_wrap.o -o libtg.so
where libtg_wrap.o is the object file for the shell code generated by SWIG.
The missing __gxx_personality_v0 character is in libstdc++.so , as seen in the following command:
$ nm -D /usr/lib/libstdc++.so.6 | grep __gxx_personality_v0 00000000000b9990 T __gxx_personality_v0
libstdc++.so refers to libtg.so , as can be seen from the following command:
$ ldd libtg.so linux-vdso.so.1 => (0x00007fff5f932000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f3fc937c000) libm.so.6 => /lib/libm.so.6 (0x00007f3fc90f9000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f3fc8ee2000) libc.so.6 => /lib/libc.so.6 (0x00007f3fc8b5f000) /lib64/ld-linux-x86-64.so.2 (0x00007f3fc98fc000)
so I donβt understand why he cannot find the character. Any ideas on how I can debug this?
Highcommander4
source share