Your message dated Fri, 22 Sep 2006 20:32:06 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#366864: fixed in libgc 1:6.8-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libgc  
Version: 1:6.6-2
Tags: patch

Hi,

the current version fails to build on GNU/kFreeBSD.

Please find attached patch with added support.
The patch is generated against newer upstream - gc6.7, 
but it applies also for 6.6. The exception is kfreebsd-gnu 
case in configure.in, which have to be added manually.
Of course, configure have to be regenerated.
 
It would be nice if it could be included in the next upload.

Thanks in advance,

        Petr
diff -ur gc6.7/configure.in gc6.7/configure.in
--- gc6.7/configure.in  2006-02-17 05:07:50.000000000 +0100
+++ gc6.7/configure.in  2006-05-11 18:58:59.000000000 +0200
@@ -110,6 +110,17 @@
        INCLUDES="$INCLUDES -pthread"
        THREADDLLIBS=-pthread
        ;;
+     *-*-kfreebsd*-gnu)
+       AC_DEFINE(GC_FREEBSD_THREADS)
+       INCLUDES="$INCLUDES -pthread"
+       THREADDLLIBS=-pthread
+       AC_DEFINE(_REENTRANT)
+        if test "${enable_parallel_mark}" = yes; then
+         AC_DEFINE(PARALLEL_MARK)
+       fi
+       AC_DEFINE(THREAD_LOCAL_ALLOC)
+       AC_DEFINE(USE_COMPILER_TLS)
+       ;;
      *-*-netbsd*)
        AC_MSG_WARN("Only on NetBSD 2.0 or later.")
        AC_DEFINE(GC_NETBSD_THREADS)
diff -ur gc6.7/dyn_load.c gc6.7/dyn_load.c
--- gc6.7/dyn_load.c    2006-02-16 22:13:55.000000000 +0100
+++ gc6.7/dyn_load.c    2006-05-11 18:29:02.000000000 +0200
@@ -26,7 +26,7 @@
  * None of this is safe with dlclose and incremental collection.
  * But then not much of anything is safe in the presence of dlclose.
  */
-#if defined(__linux__) && !defined(_GNU_SOURCE)
+#if (defined(__linux__) || defined(__GLIBC__)) && !defined(_GNU_SOURCE)
     /* Can't test LINUX, since this must be define before other includes */
 #   define _GNU_SOURCE
 #endif
@@ -381,7 +381,7 @@
 /* For glibc 2.2.4+.  Unfortunately, it doesn't work for older */
 /* versions.  Thanks to Jakub Jelinek for most of the code.    */
 
-# if defined(LINUX) /* Are others OK here, too? */ \
+# if (defined(LINUX) || defined (__GLIBC__)) /* Are others OK here, too? */ \
      && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
          || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG))) 
 
diff -ur gc6.7/include/gc.h gc6.7/include/gc.h
--- gc6.7/include/gc.h  2006-02-18 02:03:40.000000000 +0100
+++ gc6.7/include/gc.h  2006-05-11 18:29:02.000000000 +0200
@@ -469,7 +469,7 @@
 #   define GC_RETURN_ADDR (GC_word)__return_address
 #endif
 
-#ifdef __linux__
+#if defined(__linux__) || defined(__GLIBC__)
 # include <features.h>
 # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \
      && !defined(__ia64__)
diff -ur gc6.7/include/private/gcconfig.h gc6.7/include/private/gcconfig.h
--- gc6.7/include/private/gcconfig.h    2006-02-17 05:34:18.000000000 +0100
+++ gc6.7/include/private/gcconfig.h    2006-05-11 18:37:53.000000000 +0200
@@ -55,7 +55,7 @@
 # endif
 
 /* And one for FreeBSD: */
-# if defined(__FreeBSD__) && !defined(FREEBSD)
+# if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !defined(FREEBSD)
 #    define FREEBSD
 # endif
 
@@ -1249,8 +1249,15 @@
 #      ifndef GC_FREEBSD_THREADS
 #          define MPROTECT_VDB
 #      endif
-#      define SIG_SUSPEND SIGUSR1
-#      define SIG_THR_RESTART SIGUSR2
+#      ifdef __GLIBC__
+#          define SIG_SUSPEND          (32+6)
+#          define SIG_THR_RESTART      (32+5)
+           extern int _end[];
+#          define DATAEND (_end)
+#      else
+#          define SIG_SUSPEND SIGUSR1
+#          define SIG_THR_RESTART SIGUSR2
+#      endif
 #      define FREEBSD_STACKBOTTOM
 #      ifdef __ELF__
 #          define DYNAMIC_LOADING
@@ -1993,6 +2000,28 @@
 #          define PREFETCH_FOR_WRITE(x) __builtin_prefetch((x), 1)
 #      endif
 #   endif
+#   ifdef FREEBSD
+#      define OS_TYPE "FREEBSD"
+#      ifndef GC_FREEBSD_THREADS
+#          define MPROTECT_VDB
+#      endif
+#      ifdef __GLIBC__
+#          define SIG_SUSPEND          (32+6)
+#          define SIG_THR_RESTART      (32+5)
+           extern int _end[];
+#          define DATAEND (_end)
+#      else
+#          define SIG_SUSPEND SIGUSR1
+#          define SIG_THR_RESTART SIGUSR2
+#      endif
+#      define FREEBSD_STACKBOTTOM
+#      ifdef __ELF__
+#          define DYNAMIC_LOADING
+#      endif
+       extern char etext[];
+       extern char * GC_FreeBSDGetDataStart();
+#      define DATASTART GC_FreeBSDGetDataStart(0x1000, &etext)
+#   endif
 #   ifdef NETBSD
 #      define OS_TYPE "NETBSD"
 #      ifdef __ELF__
@@ -2064,7 +2093,7 @@
 #   define SUNOS5SIGS
 # endif
 
-# if defined(FREEBSD) && (__FreeBSD__ >= 4)
+# if defined(FREEBSD) && ((__FreeBSD__ >= 4) || (__FreeBSD_kernel__ >= 4))
 #   define SUNOS5SIGS
 # endif
 
@@ -2132,7 +2161,7 @@
 #   define CACHE_LINE_SIZE 32  /* Wild guess   */
 # endif
 
-# ifdef LINUX
+# if defined(LINUX) || defined(__GLIBC__)
 #   define REGISTER_LIBRARIES_EARLY
     /* We sometimes use dl_iterate_phdr, which may acquire an internal */
     /* lock.  This isn't safe after the world has stopped.  So we must */
@@ -2216,7 +2245,7 @@
 #if defined(SPARC)
 # define CAN_SAVE_CALL_ARGS
 #endif
-#if (defined(I386) || defined(X86_64)) && defined(LINUX)
+#if (defined(I386) || defined(X86_64)) && (defined(LINUX) || 
defined(__GLIBC__))
            /* SAVE_CALL_CHAIN is supported if the code is compiled to save     
*/
            /* frame pointers by default, i.e. no -fomit-frame-pointer flag.    
*/
 # define CAN_SAVE_CALL_ARGS

--- End Message ---
--- Begin Message ---
Source: libgc
Source-Version: 1:6.8-1

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

libgc-dev_6.8-1_i386.deb
  to pool/main/libg/libgc/libgc-dev_6.8-1_i386.deb
libgc1c2_6.8-1_i386.deb
  to pool/main/libg/libgc/libgc1c2_6.8-1_i386.deb
libgc_6.8-1.diff.gz
  to pool/main/libg/libgc/libgc_6.8-1.diff.gz
libgc_6.8-1.dsc
  to pool/main/libg/libgc/libgc_6.8-1.dsc
libgc_6.8.orig.tar.gz
  to pool/main/libg/libgc/libgc_6.8.orig.tar.gz



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 PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ryan Murray <[EMAIL PROTECTED]> (supplier of updated libgc 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 PROTECTED])


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

Format: 1.7
Date: Fri, 22 Sep 2006 20:08:09 -0700
Source: libgc
Binary: libgc-dev libgc1c2
Architecture: source i386
Version: 1:6.8-1
Distribution: unstable
Urgency: low
Maintainer: Ryan Murray <[EMAIL PROTECTED]>
Changed-By: Ryan Murray <[EMAIL PROTECTED]>
Description: 
 libgc-dev  - conservative garbage collector for C (development)
 libgc1c2   - conservative garbage collector for C and C++
Closes: 366864 383817
Changes: 
 libgc (1:6.8-1) unstable; urgency=low
 .
   * New upstream release (closes: #366864)
   * Apply patch to fix m68k (closes: #383817)
Files: 
 671a77ef55880975b762b4a85e153bd6 553 libs standard libgc_6.8-1.dsc
 418d38bd9c66398386a372ec0435250e 756879 libs standard libgc_6.8.orig.tar.gz
 24d78822e77d8eb68fd21d245f7cd4bd 320538 libs standard libgc_6.8-1.diff.gz
 3b79a660ddd878c2f5e1f085004664c1 118326 libs standard libgc1c2_6.8-1_i386.deb
 8fd9c6b5451059499b79c4334e907c87 160808 libdevel optional 
libgc-dev_6.8-1_i386.deb

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

iD8DBQFFFKXaN2Dbz/1mRasRAq6EAKDB/4MM9kNrakTXUd2kLGJ3L4hPxQCg3aft
Y9qWQac0ABeAtHVrLFAFF10=
=2Qlw
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to