fails to build with gcc-4.4 on amd64 in karmic

Bug #387224 reported by Alexander Sack
46
This bug affects 11 people
Affects Status Importance Assigned to Milestone
nspluginwrapper (Ubuntu)
Fix Released
High
Alexander Sack

Bug Description

Binary package hint: nspluginwrapper

Fails during build like this:

gcc -std=c99 -m32 -o npviewer.bin npviewer-npw-viewer.o npviewer-npw-common.o npviewer-npw-malloc.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 -lgthread-2.0 -lX11 -lXt -ldl -lpthread -lgthread-2.0 -Wl,--export-dynamic -Wl,--version-script,/tmp/nspcd/nspluginwrapper-1.2.2/src/npw-viewer.map -lsupc++
/usr/lib/gcc/x86_64-linux-gnu/4.4.0/32/libsupc++.a(eh_alloc.o): In function `global constructors keyed to eh_alloc.cc':
(.text._GLOBAL__I_eh_alloc.cc+0x82): undefined reference to `__stack_chk_fail_local'
/usr/lib/gcc/x86_64-linux-gnu/4.4.0/32/libsupc++.a(cp-demangle.o): In function `d_print_comp':
(.text+0x3977): undefined reference to `__sprintf_chk'
/usr/lib/gcc/x86_64-linux-gnu/4.4.0/32/libsupc++.a(cp-demangle.o): In function `d_print_comp':
(.text+0x46d7): undefined reference to `__stack_chk_fail_local'
/usr/lib/gcc/x86_64-linux-gnu/4.4.0/32/libsupc++.a(cp-demangle.o): In function `d_demangle_callback':
(.text+0x4b14): undefined reference to `__stack_chk_fail_local'
/usr/bin/ld: npviewer.bin: hidden symbol `__stack_chk_fail_local' isn't defined
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[1]: *** [npviewer.bin] Error 1
rm lsb-build-i386/libXext.o lsb-build-i386/libgcc_s.o lsb-build-i386/libgdk-x11-2.0.o lsb-build-i386/libpthread.o lsb-build-i386/libdl.o lsb-build-i386/libgobject-2.0.o lsb-build-i386/libgthread-2.0.o lsb-build-i386/libX11.o lsb-build-i386/libc_main.o lsb-build-i386/libgtk-x11-2.0.o lsb-build-i386/libXt.o lsb-build-i386/libglib-2.0.o lsb-build-i386/libc_nonshared.o
make[1]: Leaving directory `/tmp/nspcd/nspluginwrapper-1.2.2'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

Related branches

Revision history for this message
Alexander Sack (asac) wrote :

nees that nspluginwrapper builds its own libgcc from lsb-build directory which then is incompatible with ours. Most likely they use different build flags (for stack protection).

Solution would be to build against system libs and don't build the lsb-build libs.

Changed in nspluginwrapper (Ubuntu):
importance: Undecided → High
milestone: none → ubuntu-9.10
status: New → Triaged
assignee: nobody → Alexander Sack (asac)
status: Triaged → In Progress
Revision history for this message
Alexander Sack (asac) wrote :

fixed in rev 54 and 55.

Changed in nspluginwrapper (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Alexander Sack (asac) wrote :

fixed a while ago:

nspluginwrapper (1.2.2-0ubuntu6) karmic; urgency=low

  * debian/patches/use_syslsb.patch; dont build LSB libs on our own;
    this should unbreak flash+nspluginwrapper after latest ia32-libs
    update
    + use USE_SYSTEM_LSB accordingly in debian/rules

 -- Alexander Sack < <email address hidden>> Sun, 09 Aug 2009 14:31:49 +0200

Changed in nspluginwrapper (Ubuntu):
status: Fix Committed → Fix Released
stone (reggaeman-33)
Changed in nspluginwrapper (Ubuntu):
status: Fix Released → Fix Committed
Paul (c.p.jenkins)
Changed in nspluginwrapper (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.