pkgsrc-Bugs archive

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

Re: pkg/43131 lang/gcc44 does not compile on linux



The following reply was made to PR pkg/43131; it has been noted by GNATS.

From: "Kai-Uwe Eckhardt" <kuehro%gmx.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/43131  lang/gcc44 does not compile on linux 
Date: Thu, 12 May 2011 17:54:42 +0200

 Hello,
 
 the bug can be fixed using the patches I have introduced in
 wip/gcc45/46. Just delete patch-ae and add the following as
 patch-an. Tested on Scientific Linux 6 (amd64) and NetBSD
 current (i386 and amd64) with yesterdays lang/gcc44 from
 CVS. The patch-ae removed the inclusion of stddef.h for all
 platforms, which was the wrong approach. Now care must be taken,
 not to break the package for platforms beside Linux/NetBSD by
 deleting patch-ae. What we need is either testing on Dragonfly,
 Solaris, etc. or a platform check if stddef.h should be included
 or not. I vote for the second option, but don't know yet how to
 do it the right way.
 
 Kai-Uwe
 
 
 $NetBSD$
 
 --- gcc/ginclude/stddef.h.orig 2011-05-12 06:22:26.000000000 +0000
 +++ gcc/ginclude/stddef.h
 @@ -53,6 +53,11 @@ see the files COPYING3 and COPYING.RUNTI
     one less case to deal with in the following.  */
  #if defined (__BSD_NET2__) || defined (____386BSD____) || (defined 
(__FreeBSD__) && (__FreeBSD__ < 5)) || defined(__NetBSD__)
  #include <machine/ansi.h>
 +#if !defined(_MACHINE_ANSI_H_)
 +#if defined(_I386_ANSI_H_) || defined(_X86_64_ANSI_H_)
 +#define _MACHINE_ANSI_H_
 +#endif
 +#endif
  #endif
  /* On FreeBSD 5, machine/ansi.h does not exist anymore... */
  #if defined (__FreeBSD__) && (__FreeBSD__ >= 5)
 
 -- 
 -- 
 
 


Home | Main Index | Thread Index | Old Index