[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#483613: gcc-4.3: on hurd-i386 -fstack-protector tries to link with libssp_nonshared



Package: gcc-4.3
Version: 4.3.0-3
Severity: important
Tags: patch

Hello,

When using -fstack-protector, gcc tries to link with libssp_nonshared,
which is not package, thus making a bunch of packages FTBFS.  The
attached patch fixes that by making configure notice that (just like on
GNU/Linux and GNU/kfreebsd) __stack_chk_fail is available from glibc.

Cheers,
Samuel

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages gcc-4.3 depends on:
ii  binutils            2.18.1~cvs20080103-4 The GNU assembler, linker and bina
ii  cpp-4.3             4.3.0-3              The GNU C preprocessor
ii  gcc-4.3-base        4.3.0-3              The GNU Compiler Collection (base 
ii  libc6               2.7-10               GNU C Library: Shared libraries
ii  libgcc1             1:4.3.0-3            GCC support library
ii  libgomp1            4.3.0-3              GCC OpenMP (GOMP) support library

Versions of packages gcc-4.3 recommends:
ii  libc6-dev                     2.7-10     GNU C Library: Development Librari

-- no debconf information

-- 
Samuel
The nice thing about Windows is - It does not just crash, it displays a
dialog box and lets you press 'OK' first.
(Arno Schaefer's .sig)
Index: debian/patches/libssp-gnu.dpatch
===================================================================
--- debian/patches/libssp-gnu.dpatch	(révision 3128)
+++ debian/patches/libssp-gnu.dpatch	(copie de travail)
@@ -34,7 +34,7 @@
    gcc_cv_libc_provides_ssp=no
      case "$target" in
 -       *-*-linux*)
-+       *-*-*-gnu*)
++       *-*-gnu*|*-*-*-gnu*)
        if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
  	if test "x$with_sysroot" = x; then
  	  glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
@@ -45,7 +45,7 @@
        [gcc_cv_libc_provides_ssp=no
      case "$target" in
 -       *-*-linux*)
-+       *-*-*-gnu*)
++       *-*-gnu*|*-*-*-gnu*)
        if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
  	if test "x$with_sysroot" = x; then
  	  glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"

Reply to: