Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Nov 2002 21:52:50 +0100 (CET)
From:      Volker Stolz <vs@foldr.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        obrien@FreeBSD.org
Subject:   ports/44857: [patch] lang/egcs partial GCC3 fix
Message-ID:  <200211032052.gA3KqoON015467@monster.ikea.net>

next in thread | raw e-mail | index | archive | help

>Number:         44857
>Category:       ports
>Synopsis:       [patch] lang/egcs partial GCC3 fix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 03 13:00:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Volker Stolz
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Lambda Core Research Facility
>Environment:
System: FreeBSD monster.ikea.net 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sat Oct 26 17:47:39 CEST 2002 root@monster.ikea.net:/usr/obj/usr/src/sys/MONSTER i386


	
>Description:
Generic sys_[nerr,nsig] fix. Gee, now it breaks at a different place:
stage1/xgcc -Bstage1/  -DIN_GCC    -O2 -O -pipe -Wall -mcpu=pentiumpro  -DHAVE_CONFIG_H   -o cccp cccp.o cexp.o prefix.o \
  version.o obstack.o     
/usr/bin/ld: unrecognised emulation mode: elf_i386
Supported emulations: elf_i386_fbsd
collect2: ld returned 1 exit status
gmake[2]: *** [cccp] Error 1
gmake[2]: Leaving directory `/opt/ports/lang/egcs/work/egcs-1.1.2/gcc'

>How-To-Repeat:
>Fix:
Add these two patches to the patch collection.
--- libiberty/strerror.c.orig	Sun Nov  3 21:37:47 2002
+++ libiberty/strerror.c	Sun Nov  3 21:38:08 2002
@@ -462,7 +462,7 @@
 
 #else
 
-extern int sys_nerr;
+extern __const int sys_nerr;
 extern char *sys_errlist[];
 
 #endif
--- libiberty/strsignal.c.orig	Sun Nov  3 21:38:47 2002
+++ libiberty/strsignal.c	Sun Nov  3 21:39:31 2002
@@ -244,7 +244,7 @@
 #else
 
 #ifdef NSIG
-static int sys_nsig = NSIG;
+static __const int sys_nsig = NSIG;
 #else
 #ifdef _NSIG
 static int sys_nsig = _NSIG;
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211032052.gA3KqoON015467>