Bug 227901 - Undefined symbol in libsupc++.a with gcc -m32 on x86_64
Undefined symbol in libsupc++.a with gcc -m32 on x86_64
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2007-02-08 15:49 EST by Dams
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-02-08 15:56:44 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dams 2007-02-08 15:49:42 EST
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
-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.
Comment 1 Jakub Jelinek 2007-02-08 15:56:44 EST
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
Comment 2 Dams 2007-02-08 16:20:43 EST
Thanks ! actually nspluginwrapper includes those old libraries. Kinda dirty it

Note You need to log in before you can comment on or make changes to this bug.