Comment 6 for bug 1418239

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2015-02-25 15:49 EDT-------
The following patch copies sdt.h to debian/include directory.
sdt.h looks for sdt-config.h in the current directory and that has to be linked as well.
==================================================================================
glibc (2.19-6) unstable; urgency=high

[ Aurelien Jarno ]
* debian/patches/any/cvs-CVE-2014-0475.diff: fix a directory traversal in
locale environment handling (CVE-2014-0475).
* debian/patches/any/cvs-setlocale-alloca.diff: Additional setlocale
hardening.
* debian/control.in/main, debian/sysdeps/linux.mk: drop systemtap support.
sdt.h has been moved to a different location in the latest upload, and
it's not really clear on which architectures systemtap support should
be enabled.

Command that gets executed due to the above patch:
==================================================
ln -s /usr/include/powerpc64le-linux-gnu/sys/sdt.h debian/include/sys/sdt.h

part of sdt.h where sdt-config.h is included:
============================================
/* If the assembler supports the necessary feature, then we can play
nice with code in COMDAT sections, which comes up in C++ code.
Without that assembler support, some combinations of probe placements
in certain kinds of C++ code may produce link-time errors. */
#include "sdt-config.h"
#if _SDT_ASM_SECTION_AUTOGROUP_SUPPORT
# define _SDT_ASM_AUTOGROUP "?"
#else
# define _SDT_ASM_AUTOGROUP ""
#endif

Proposed fix in debian/sysdeps/linux.mk :
========================================
root@ubuntu:~/glibc-2.19/debian/sysdeps# diff linux.mk /root/new//glibc-2.19/debian/sysdeps
57d56
< ln -s /usr/include//sys/sdt-config.h debian/include/sys/sdt-config.h