pkgsrc-Bugs archive

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

pkg/49296: lang/gcc49 fails to compile with glibc 2.3.6



>Number:         49296
>Category:       pkg
>Synopsis:       lang/gcc49 fails to compile with glibc 2.3.6
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 19 22:55:00 +0000 2014
>Originator:     Mikhail Gusarov
>Release:        pkgsrc-2014Q3 from 20.10.2014
>Organization:
>Environment:
Linux debian-40-i386 2.6.18-6-686 #1 SMP Fri Feb 19 23:40:03 UTC 2010 i686 GNU/Linux
>Description:
lang/gcc49 fails to build under Debian Etch i386 due to failure in glibc header corrected in later releases of glibc: semaphore.h uses __sem_lock type without defining it first.

Attached patch works around this issue and allows to finish gcc build.
>How-To-Repeat:
Bootstrap pkgsrc on Debian Etch i386. Try to build lang/gcc49.

>Fix:
Work around broken <semaphore.h> in glibc < 2.5.

Corresponding Debian bug report:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=402318

--- libcilkrts/runtime/signal_node.c.orig	2014-10-20 00:37:57.000000000 +0200
+++ libcilkrts/runtime/signal_node.c	2014-10-20 00:38:36.000000000 +0200
@@ -51,6 +51,7 @@
     typedef HANDLE cilk_semaphore_t;
 #else // Linux/MIC
 #   include <errno.h>
+#   include <pthread.h>
 #   include <semaphore.h>
 #   include <stdio.h>
     typedef sem_t cilk_semaphore_t;



Home | Main Index | Thread Index | Old Index