[FTBFS] on i386 with "xslt.c:(.text+0x1bb4): undefined reference to `__stack_chk_fail_local'"

Bug #588519 reported by Martin Erik Werner
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
steam (Debian)
Fix Released
Unknown
steam (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: steam

steam fails to build on i386 (and powerpc) with this ending:

In file included from xml_dom.c:7:
/usr/include/libxml2/libxml/DOCBparser.h:22:2: warning: #warning "The DOCBparser module has been deprecated in libxml2-2.6.0"
ld -E -shared -Bsymbolic-functions -lxml2 -lxslt -lc -o libxslt.so xslt.o xml_dom.o
xslt.o: In function `xsl_error':
xslt.c:(.text+0x1bb4): undefined reference to `__stack_chk_fail_local'
xslt.o: In function `xml_error':
xslt.c:(.text+0x2ebc): undefined reference to `__stack_chk_fail_local'
ld: libxslt.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Nonrepresentable section on output
make[3]: *** [libxslt.so] Error 1

Full log: http://launchpadlibrarian.net/49499611/buildlog_ubuntu-maverick-i386.steam_2.2.31-6ubuntu1_FAILEDTOBUILD.txt.gz

Changing "ld -E -shared" to "gcc -shared" in configure (as hinted by http://erl1.wordpress.com/2009/11/16/reinstallingmaking-ns-2-on-ubuntu-9-10/ ) makes the build succeed and the package seems to install fine.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: steam 2.2.31-4.3ubuntu1
ProcVersionSignature: Ubuntu 2.6.34-5.12-generic 2.6.34
Uname: Linux 2.6.34-5-generic i686
Architecture: i386
Date: Tue Jun 1 23:25:21 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
PackageArchitecture: all
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: steam

Related branches

Revision history for this message
Martin Erik Werner (arand) wrote :
Revision history for this message
Martin Erik Werner (arand) wrote :

Above patch is simply the change which fixed the build. I claim no knowledge on the propriety of the change in there.

Changed in steam (Ubuntu):
status: New → Confirmed
Lorenzo De Liso (blackz)
Changed in steam (Ubuntu):
importance: Undecided → High
tags: added: patch
Changed in steam (Ubuntu):
assignee: nobody → Lorenzo De Liso (blackz)
Revision history for this message
Lorenzo De Liso (blackz) wrote :

I have included your patch (it works), thanks.

Revision history for this message
Lorenzo De Liso (blackz) wrote :

That's the included patch (arand's proposed patch) just with a rename.

Revision history for this message
Lorenzo De Liso (blackz) wrote :

Fixed debdiff with minor adjustments.

Revision history for this message
Lorenzo De Liso (blackz) wrote :

That's the arand's patch with a rename.

Revision history for this message
Kees Cook (kees) wrote :

This appears to be the correct fix to me (swapping ld with gcc and losing -E). The resulting .so file doesn't lose any symbols due to the lack of -E. (I checked with both builds, and with add -Wl,-E to the gcc invocation.) So, this appears to be safe.

Changed in steam (Ubuntu):
assignee: Lorenzo De Liso (blackz) → Fabrice Coutadeur (fabricesp)
status: Confirmed → In Progress
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

Could you please add a DEP3 header to the patch, and also forward the patch to Debian / upstream?

thanks,
Fabrice

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

And also acknowledge the patch from arand in the changelog?

Changed in steam (Ubuntu):
assignee: Fabrice Coutadeur (fabricesp) → Lorenzo De Liso (blackz)
Lorenzo De Liso (blackz)
summary: - [FTBFS] on i368 with "xslt.c:(.text+0x1bb4): undefined reference to
+ [FTBFS] on i386 with "xslt.c:(.text+0x1bb4): undefined reference to
`__stack_chk_fail_local'"
Revision history for this message
Lorenzo De Liso (blackz) wrote :

Header DEP3 added and patch forwarded to upstream (via e-mail, their bugtracker isn't available) and debian.

Changed in steam (Ubuntu):
assignee: Lorenzo De Liso (blackz) → nobody
status: In Progress → Triaged
Revision history for this message
Lorenzo De Liso (blackz) wrote :
Revision history for this message
Lorenzo De Liso (blackz) wrote :
Changed in steam (Ubuntu):
assignee: nobody → Fabrice Coutadeur (fabricesp)
status: Triaged → In Progress
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

I rewrote the header of the patch, as dpatch expect the header to be with ##, and it was FTBFS

Thanks for your work to both of you!

Fabrice

Changed in steam (Ubuntu):
assignee: Fabrice Coutadeur (fabricesp) → nobody
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package steam - 2.2.31-6ubuntu2

---------------
steam (2.2.31-6ubuntu2) maverick; urgency=low

  * debian/patches/fix-ftbfs.diff: fixed the FTBFS for i386 and powerpc
    (LP: #588519). Thanks Arand for the patch!
 -- Lorenzo De Liso <email address hidden> Sun, 06 Jun 2010 11:53:48 +0200

Changed in steam (Ubuntu):
status: Fix Committed → Fix Released
Changed in steam (Debian):
status: Unknown → New
Changed in steam (Debian):
status: New → 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.