Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 227901

Summary: Undefined symbol in libsupc++.a with gcc -m32 on x86_64
Product: [Fedora] Fedora Reporter: Dams <anvil>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: anvil
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-08 20:56:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dams 2007-02-08 20:49:42 UTC
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.

Comment 1 Jakub Jelinek 2007-02-08 20:56:44 UTC
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 21:20:43 UTC
Thanks ! actually nspluginwrapper includes those old libraries. Kinda dirty it
seems.