New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PATCH] SDBM_File fails to build on some platforms due to use of 'extern int errno' (was: Re: patches for lang/perl5.8 dfport override) #7925
Comments
From cpressey@catseye.mine.nuOn Tue, 17 May 2005 08:08:53 +0200
Hm, I guess it isn't.
OK, tobez@FreeBSD.org and perlbug@perl.com cc'ed. To re-iterate: the problem is that SDBM_File (part of Perl 5.8.6) fails The attached patch makes the appropriate substitution in the SDBM_File I'm not aware of any platforms on which '#include <errno.h>' is #ifdef HAS_ERRNO_H Thanks, |
From cpressey@catseye.mine.nuInline Patch--- ext/SDBM_File/sdbm/sdbm.c.orig 2005-05-16 16:26:17.000000000 -0700
+++ ext/SDBM_File/sdbm/sdbm.c 2005-05-16 16:26:53.000000000 -0700
@@ -31,14 +31,7 @@
# include <strings.h>
#endif
-/*
- * externals
- */
-#ifndef WIN32
-#ifndef sun
-extern int errno;
-#endif
-#endif
+#include <errno.h>
extern Malloc_t malloc proto((MEM_SIZE));
extern Free_t free proto((Malloc_t)); |
From @doughera88On Sun, 22 May 2005, Chris Pressey wrote:
Here's what I'd suggest for the main perl sources. Though this patch is Inline Patchdiff -r -u perl-current/ext/SDBM_File/sdbm/sdbm.c perl-andy/ext/SDBM_File/sdbm/sdbm.c
--- perl-current/ext/SDBM_File/sdbm/sdbm.c Thu Apr 21 12:05:30 2005
+++ perl-andy/ext/SDBM_File/sdbm/sdbm.c Mon May 23 11:31:35 2005
@@ -34,11 +34,9 @@
/*
* externals
*/
-#ifndef WIN32
-#ifndef sun
-extern int errno;
-#endif
-#endif
+
+#include <errno.h> /* See notes in perl.h about avoiding
+ extern int errno; */
extern Malloc_t malloc proto((MEM_SIZE));
extern Free_t free proto((Malloc_t));
-- Andy Dougherty doughera@lafayette.edu |
The RT System itself - Status changed from 'new' to 'open' |
From @TuxOn Mon, 23 May 2005 11:48:08 -0400 (EDT), Andrew Dougherty
Thanks, applied to blead with change #24554
-- |
@rgs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#35938 (status was 'resolved')
Searchable as RT35938$
The text was updated successfully, but these errors were encountered: