gcc Version-Release number: 4.1.1-51.fc6 Description of problem: While trying to build nspluginwrapper , i've encountered this error : gcc -std=c99 -m32 -o npviewer.bin npviewer-npw-viewer.o npviewer-npw-rpc.o npviewer-rpc.o npviewer-debug.o npviewer-utils.o npviewer-npruntime.o npviewer-cxxabi-compat.o -m32 -Llsb-build-i386 -lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -ldl -lglib-2.0 -lX11 -lXt -ldl -lpthread -Wl,--export-dynamic -Wl,--version-script,/dev/shm/nspluginwrapper-0.9.91.2/src/npw-viewer.map -lsupc++ -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.1.1/32/libsupc++.a(eh_personality.o): In function `__gxx_personality_v0': (.text.__gxx_personality_v0+0xb8): undefined reference to `_Unwind_GetIPInfo' /usr/lib/gcc/x86_64-redhat-linux/4.1.1/32/libsupc++.a(cp-demangle.o): In function `d_demangle': (.text+0x44d7): undefined reference to `__stack_chk_fail_local' By googling a bit, it appears that it might be bug in our gcc version. System is up-to-date core 6.
No, this sounds like you have some obsolete libgcc_s.so.1 and libc_nonshared.a in likely lsb-build-i386 directory. You can't do that, libsupc++.a and other libraries you are linking in rely on the new symbols in those libraries. readelf -Ws /lib/libgcc_s.so.1 /usr/lib/libc_nonshared.a \ | grep '_Unwind_GetIPInfo\|__stack_chk_fail_local' 90: 4fc1f510 22 FUNC GLOBAL DEFAULT 11 _Unwind_GetIPInfo@@GCC_4.2.0 6: 00000000 20 FUNC GLOBAL HIDDEN 1 __stack_chk_fail_local
Thanks ! actually nspluginwrapper includes those old libraries. Kinda dirty it seems.