Subject: pkg/30308: conflicting local errno in lang/perl5.8
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <joerg@leaf.dragonflybsd.org>
List: pkgsrc-bugs
Date: 05/22/2005 15:51:00
>Number:         30308
>Category:       pkg
>Synopsis:       conflicting local errno in lang/perl5.8
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 22 15:51:00 +0000 2005
>Originator:     Jörg Sonnenberger
>Release:        pkgsrc-HEAD
>Organization:
>Environment:
DragonFly britannica.bec.de 1.3.1-DEVELOPMENT DragonFly 1.3.1-DEVELOPMENT #15: Tue May 17 13:31:47 2005     joerg@britannica.bec.de:/home/joerg/wd/DragonFly/world/src/sys/compile/TURTLE  i386

>Description:
The Perl 5.8 source defines errno locally, which conflicts with the definition in errno.h.
>How-To-Repeat:
build in DragonFly HEAD
>Fix:
Add the following patch:

--- ext/SDBM_File/sdbm/sdbm.c.orig      2003-08-27 12:30:22.000000000 +0200
+++ ext/SDBM_File/sdbm/sdbm.c   2005-05-03 10:18:19.000000000 +0200
@@ -36,9 +36,11 @@
  */
 #ifndef WIN32
 #ifndef sun
+#ifndef __STDC__
 extern int errno;
 #endif
 #endif
+#endif
 
 extern Malloc_t malloc proto((MEM_SIZE));
 extern Free_t free proto((Malloc_t));