FTBFS: segv in ld

Bug #14274 reported by LaMont Jones
8
Affects Status Importance Assigned to Milestone
hfsutils (Debian)
Fix Released
Unknown
hfsutils (Ubuntu)
Fix Released
Critical
Matthias Klose

Bug Description

During a test rebuild of hoary:

gcc -g -O2 -Ilibhfs -I/usr/include/tcl8.3 -DHAVE_CONFIG_H -c -o hfssh.o hfssh.c
gcc -g -O2 -Ilibhfs -I/usr/include/tcl8.3 -DHAVE_CONFIG_H -c -o tclhfs.o
tclhfs.c
gcc -Llibhfs hfssh.o tclhfs.o crc.o binhex.o copyin.o copyout.o charset.o
darray.o dlist.o dstring.o glob.o suid.o version.o \
        -lhfs -L/usr/lib -ltcl8.3 -ldl -lieee -lm -o hfssh
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/bin/ld: BFD 2.15 assertion fail ../../bfd/elflink.c:6081
make[1]: *** [hfssh] Error 1

http://people.ubuntu.com/~lamont/buildLogs/Test/h/hfsutils/3.2.6-7/hfsutils_3.2.6-7_20050320-0054-amd64-failed: http://people.ubuntu.com/~lamont/buildLogs/Test/h/hfsutils/3.2.6-7/hfsutils_3.2.6-7_20050320-0054-amd64-failed

Revision history for this message
In , David Liontooth (liontooth) wrote : hfsutils-tcltk still suffering from errno problem on amd64

Package: hfsutils-tcltk
Version: 3.2.6-7
Followup-For: Bug #280310

I'm assuming this is the same bug -- I haven't tried the patch and don't
know if it applies to hfsutils-tcltk. Here's the error:

# xhfs
xhfs: relocation error: xhfs: symbol errno,
version GLIBC_2.2.5 not defined in file libc.so.6 with link time reference

-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.9-ac6
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages hfsutils-tcltk depends on:
ii hfsutils 3.2.6-7 Tools for reading and writing Maci
ii libc6 2.3.2.ds1-20.0.0.1.pure64 GNU C Library: Shared libraries an
hi libx11-6 4.3.0.dfsg.1-9 X Window System protocol client li
ii tcl8.3 8.3.5-4 Tcl (the Tool Command Language) v8
ii tk8.3 8.3.5-4 Tk toolkit for Tcl and X11, v8.3 -
hi xlibs 4.3.0.dfsg.1-9 X Keyboard Extension (XKB) configu

-- no debconf information

Revision history for this message
LaMont Jones (lamont) wrote :

During a test rebuild of hoary:

gcc -g -O2 -Ilibhfs -I/usr/include/tcl8.3 -DHAVE_CONFIG_H -c -o hfssh.o hfssh.c
gcc -g -O2 -Ilibhfs -I/usr/include/tcl8.3 -DHAVE_CONFIG_H -c -o tclhfs.o
tclhfs.c
gcc -Llibhfs hfssh.o tclhfs.o crc.o binhex.o copyin.o copyout.o charset.o
darray.o dlist.o dstring.o glob.o suid.o version.o \
        -lhfs -L/usr/lib -ltcl8.3 -ldl -lieee -lm -o hfssh
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/bin/ld: BFD 2.15 assertion fail ../../bfd/elflink.c:6081
make[1]: *** [hfssh] Error 1

Revision history for this message
Tollef Fog Heen (tfheen) wrote :

AMD64's libc and binutils doesn't like errno being defined as extern int.

http://err.no/patches/hfsutils-no-extern-int-errno.diff should be a fix for this
issue.

(Not applied yet; waiting for testing.)

Revision history for this message
Matthias Klose (doko) wrote :

fixed in hfsutils 3.2.6-7ubuntu1

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (4.0 KiB)

Message-Id: <email address hidden>
Date: Mon, 08 Nov 2004 18:25:28 +0100
From: Andreas Jochens <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: hfsutils: FTBFS (amd64/gcc-3.4): Please use '#include <errno.h>' instead of 'extern int
 errno; '

Package: hfsutils
Severity: normal
Tags: patch

When building 'hfsutils' on amd64 with gcc-3.4 I get the following error:

gcc -Llibhfs hfssh.o tclhfs.o crc.o binhex.o copyin.o copyout.o charset.o darray.o dlist.o dstring.o glob.o suid.o version.o \
 -lhfs -L/usr/lib -ltcl8.3 -ldl -lieee -lm -o hfssh
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/bin/ld: BFD 2.15 assertion fail ../../bfd/elflink.c:6081
make[1]: *** [hfssh] Error 1
make[1]: Leaving directory `/hfsutils-3.2.6'

With the attached patch 'hfsutils' can be compiled on amd64 using gcc-3.4.

Regards
Andreas Jochens

diff -urN ../tmp-orig/hfsutils-3.2.6/binhex.c ./binhex.c
--- ../tmp-orig/hfsutils-3.2.6/binhex.c 1998-09-18 22:56:22.000000000 +0000
+++ ./binhex.c 2004-11-04 15:06:17.913586968 +0000
@@ -38,8 +38,6 @@

 const char *bh_error = "no error";

-extern int errno;
-
 # define ERROR(code, str) (bh_error = (str), errno = (code))

 static FILE *file; /* input/output file */
diff -urN ../tmp-orig/hfsutils-3.2.6/copyin.c ./copyin.c
--- ../tmp-orig/hfsutils-3.2.6/copyin.c 1998-11-02 22:08:25.000000000 +0000
+++ ./copyin.c 2004-11-04 15:06:31.973449544 +0000
@@ -48,8 +48,6 @@

 const char *cpi_error = "no error";

-extern int errno;
-
 # define ERROR(code, str) (cpi_error = (str), errno = (code))

 # define MACB_BLOCKSZ 128
diff -urN ../tmp-orig/hfsutils-3.2.6/copyout.c ./copyout.c
--- ../tmp-orig/hfsutils-3.2.6/copyout.c 1998-04-11 08:26:54.000000000 +0000
+++ ./copyout.c 2004-11-04 15:06:41.784957968 +0000
@@ -49,8 +49,6 @@

 const char *cpo_error = "no error";

-extern int errno;
-
 # define ERROR(code, str) (cpo_error = (str), errno = (code))

 # define MACB_BLOCKSZ 128
diff -urN ../tmp-orig/hfsutils-3.2.6/hcwd.c ./hcwd.c
--- ../tmp-orig/hfsutils-3.2.6/hcwd.c 1998-04-11 08:26:56.000000000 +0000
+++ ./hcwd.c 2004-11-04 15:06:56.217763848 +0000
@@ -43,8 +43,6 @@
 static int mtabsz = 0, nmounts = 0;
 static int curvol = -1, dirty = 0;

-extern int errno;
-
 /*
  * NAME: addent()
  * DESCRIPTION: insert mount entry into table
diff -urN ../tmp-orig/hfsutils-3.2.6/hfsutil.h ./hfsutil.h
--- ../tmp-orig/hfsutils-3.2.6/hfsutil.h 1998-04-11 08:26:57.000000000 +0000
+++ ./hfsutil.h 2004-11-04 15:07:27.707976608 +0000
@@ -19,7 +19,7 @@
  * $Id: hfsutil.h,v 1.8 1998/04/11 08:26:57 rob Exp $
  */

-extern int errno;
+#include <errno.h>

 # define ERROR(code, str) (hfs_error = (str), errno = (code))

diff -urN ../tmp-orig/hfsutils-3.2.6/libhfs/libhfs.h ./libhfs/libhfs.h
--- ../tmp-orig/hfsutils-3.2.6/libhfs/libhfs.h 1998-11-02 22:09:02.000000000 +0000
+++ ./libhfs/libhfs.h 2004-11-04 15:05:36.494883568 +0000
@@ -22,7 +22,7 @@
 # include "hfs.h"
 # include "apple.h"

-extern int errno;
+#include <errno.h>

 # define ERROR(code, str) \
     do { hfs_error = (str), errno = (code); goto fail; } while (0)
diff -urN ../tmp-orig/hfsutils-3.2.6/librsrc/librsrc.h ./librsrc/libr...

Read more...

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Sun, 13 Feb 2005 17:35:29 -0800
From: David Liontooth <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: hfsutils-tcltk still suffering from errno problem on amd64

Package: hfsutils-tcltk
Version: 3.2.6-7
Followup-For: Bug #280310

I'm assuming this is the same bug -- I haven't tried the patch and don't
know if it applies to hfsutils-tcltk. Here's the error:

# xhfs
xhfs: relocation error: xhfs: symbol errno,
version GLIBC_2.2.5 not defined in file libc.so.6 with link time reference

-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.9-ac6
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages hfsutils-tcltk depends on:
ii hfsutils 3.2.6-7 Tools for reading and writing Maci
ii libc6 2.3.2.ds1-20.0.0.1.pure64 GNU C Library: Shared libraries an
hi libx11-6 4.3.0.dfsg.1-9 X Window System protocol client li
ii tcl8.3 8.3.5-4 Tcl (the Tool Command Language) v8
ii tk8.3 8.3.5-4 Tk toolkit for Tcl and X11, v8.3 -
hi xlibs 4.3.0.dfsg.1-9 X Keyboard Extension (XKB) configu

-- no debconf information

Revision history for this message
In , Matej Vela (vela) wrote : Bug#280310: fixed in hfsutils 3.2.6-8

Source: hfsutils
Source-Version: 3.2.6-8

We believe that the bug you reported is fixed in the latest version of
hfsutils, which is due to be installed in the Debian FTP archive:

hfsutils-tcltk_3.2.6-8_i386.deb
  to pool/main/h/hfsutils/hfsutils-tcltk_3.2.6-8_i386.deb
hfsutils_3.2.6-8.diff.gz
  to pool/main/h/hfsutils/hfsutils_3.2.6-8.diff.gz
hfsutils_3.2.6-8.dsc
  to pool/main/h/hfsutils/hfsutils_3.2.6-8.dsc
hfsutils_3.2.6-8_i386.deb
  to pool/main/h/hfsutils/hfsutils_3.2.6-8_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matej Vela <email address hidden> (supplier of updated hfsutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 26 Apr 2005 11:35:02 +0200
Source: hfsutils
Binary: hfsutils-tcltk hfsutils
Architecture: source i386
Version: 3.2.6-8
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <email address hidden>
Changed-By: Matej Vela <email address hidden>
Description:
 hfsutils - Tools for reading and writing Macintosh volumes
 hfsutils-tcltk - Tcl/Tk interfaces for reading and writing Macintosh volumes
Closes: 174469 261565 280310 302937
Changes:
 hfsutils (3.2.6-8) unstable; urgency=low
 .
   * QA upload.
   * Package is orphaned (see #303264); set maintainer to Debian QA Group.
   * Include <errno.h> instead of declaring errno on our own (patch by
     Andreas Jochens). Closes: #280310.
   * Link to tcl8.4/tk8.4.
   * Switch to debhelper.
   * Remove trailing dot from short description. Closes: #174469.
   * debian/copyright: List copyright holder. Closes: #302937.
   * debian/rules: Force make not to re-run autoconf.
   * Move xhfs from /usr/X11R6/bin to /usr/bin.
   * Replace /usr/share/doc/hfsutils-tcltk with a symlink to hfsutils.
   * Drop /usr/doc symlink. Closes: #261565.
   * Conforms to Standards version 3.6.1.
Files:
 5dafafb7f2fc081c5afca9489a00cc4c 607 otherosfs extra hfsutils_3.2.6-8.dsc
 97016daabf1bb24535d1157f02066a7c 4314 otherosfs extra hfsutils_3.2.6-8.diff.gz
 1870eb7ca97d0ff3e4121fb3da981f17 72922 otherosfs extra hfsutils_3.2.6-8_i386.deb
 b40f978a6f744a87e1bdb757823c74ae 105412 otherosfs extra hfsutils-tcltk_3.2.6-8_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCbgt8xBYivKllgY8RAm8bAJ471Tqi4eg3uLGGM0dr7x8o0rhLIgCfVbJH
Ep9VQwkqXWJnyG8KbA/NPZ8=
=nL0d
-----END PGP SIGNATURE-----

Changed in hfsutils:
status: Unknown → 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.