-
Notifications
You must be signed in to change notification settings - Fork 567
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
error building ODBM_File on Windows, perl 5.23.9 #15241
Comments
From @chornyI'm trying to build Strawberry perl 5.23.9 64-bit int on Windows XP 32-bit Russian. gcc -c -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"1.13\" -DXS_VERSION=\"1.13\" "-I..\..\lib\CORE" ODBM_File.c These lines where added in commit ed6087a by Jarkko Hietaniemi. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @jhiOn Wed Mar 23 19:41:01 2016, tonyc wrote:
Alex, please try the attached patch. |
From @jhi0001-perl-127751-error-building-ODBM_File-on-Windows-perl.patchFrom b7a1bd3f252191f4b9ebd7fa3301f77ded1f3d2a Mon Sep 17 00:00:00 2001
From: Jarkko Hietaniemi <jhi@iki.fi>
Date: Thu, 24 Mar 2016 07:12:51 -0400
Subject: [PATCH] [perl #127751] error building ODBM_File on Windows, perl
5.23.9
No POSIX open in Win32, broken by ed6087adbd9c90b59cf3f08af7c23a947c00bf69
Use the PerlLIO_open3 as suggested by Tony Cook, use the same trick as POSIX.xs
---
ext/ODBM_File/ODBM_File.xs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ext/ODBM_File/ODBM_File.xs b/ext/ODBM_File/ODBM_File.xs
index bf5def3..eaa1923 100644
--- a/ext/ODBM_File/ODBM_File.xs
+++ b/ext/ODBM_File/ODBM_File.xs
@@ -3,6 +3,10 @@
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
+#if defined(PERL_IMPLICIT_SYS)
+# undef open
+# define open PerlLIO_open3
+#endif
#ifdef I_DBM
# include <dbm.h>
--
2.7.4
|
From @chornyHi 2016-03-24 13:18 GMT+02:00 Jarkko Hietaniemi via RT <
Compiles without problems, tests pass. -- |
From @jhiOn Sat Mar 26 14:44:17 2016, chorny wrote:
In blead as of http://perl5.git.perl.org/perl.git/commit/77bbf816cb5fd9cd539e3e70dd0a57384245e920 (and http://perl5.git.perl.org/perl.git/commit/5942644739c2d477d25e89b4a40ced7cfb0ee4e9 for the .pm version bump). Marking as resolved. |
@jhi - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#127751 (status was 'resolved')
Searchable as RT127751$
The text was updated successfully, but these errors were encountered: