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
v5.10.0 util.c and pp_sys.c fail to compile under Mac OS X #9080
Comments
From @trwyantThis is a bug report for perl from wyant@cpan.org, The 'make' step for Perl 5.10.0 DEVEL32174 fails to compile util.c `sh cflags "optimize='-Os'" util.o` util.c The problem is that the various OSByteOrder.h files define (by default) pp_sys.c fails in the same way, because it (eventually) includes the same This may be a duplicate - I tried to send a report on this on October 19, I do not know what the favored response is. A look at the Changes file Note that this is _NOT_ the current Mac OS X by any means; the current is $ uname -a Flags: Site configuration information for perl 5.10.0: Configured by tom at Mon Oct 22 18:46:15 EDT 2007. Summary of my perl5 (revision 5 version 10 subversion 0 patch 32174) configuration: Locally applied patches: @INC for perl 5.10.0: Environment for perl 5.10.0: |
From @doughera88On Mon, 22 Oct 2007, Tom Wyant wrote:
[ etc. ]
Good analysis. The -std=c89 and -ansi flags are added by cflags.SH after That "representative" file already tries to include <sys/select.h>, but This patch fixes a series of similar typos. It ought to fix it up: Inline Patchdiff -r -u perl-current/cflags.SH perl-andy/cflags.SH
--- perl-current/cflags.SH 2007-10-22 17:43:41.000000000 -0400
+++ perl-andy/cflags.SH 2007-10-23 08:28:18.000000000 -0400
@@ -66,31 +66,31 @@
#ifdef I_UNISTD
#include <unistd.h>
#endif
-#ifdef I_SYSTYPES
+#ifdef I_SYS_TYPES
#include <sys/types.h>
#endif
-#ifdef I_SYSPARAM
+#ifdef I_SYS_PARAM
#include <sys/param.h>
#endif
-#ifdef I_SYSRESOURCE
+#ifdef I_SYS_RESOURCE
#include <sys/resource.h>
#endif
-#ifdef I_SYSSELECT
+#ifdef I_SYS_SELECT
#include <sys/select.h>
#endif
#if defined(HAS_SOCKET) && !defined(VMS) && !defined(WIN32) /* See perl.h. */
#include <sys/socket.h>
#endif
-#ifdef I_SYSSTAT
+#ifdef I_SYS_STAT
#include <sys/stat.h>
#endif
-#ifdef I_SYSTIME
+#ifdef I_SYS_TIME
#include <sys/time.h>
#endif
-#ifdef I_SYSTIMES
+#ifdef I_SYS_TIMES
#include <sys/times.h>
#endif
-#ifdef I_SYSWAIT
+#ifdef I_SYS_WAIT
#include <sys/wait.h>
#endif
/* The gcc -ansi can cause a lot of noise in Solaris because of:
@@ -139,7 +139,7 @@
case " $ccflags " in
*" $opt "*) ;; # Skip if already there.
*) rm -f _cflags$_exe
- case "`$cc $cflags $warn $opt _cflags.c -o _cflags$_exe 2>&1`" in
+ case "`$cc $cflags $warn $stdflags $opt _cflags.c -o _cflags$_exe 2>&1`" in
*"unrecognized"*) ;;
*"implicit declaration"*) ;; # Was something useful hidden?
*"Invalid"*) ;;
-- Andy Dougherty doughera@lafayette.edu |
The RT System itself - Status changed from 'new' to 'open' |
From @nwc10On Tue, Oct 23, 2007 at 08:54:51AM -0400, Andy Dougherty wrote:
Thanks, applied (change 32181) Nicholas Clark |
From @trwyantOn Tue Oct 23 06:32:19 2007, nicholas wrote:
Confirmed. With 32181, 'make' runs without intervention, and 'make test' |
@smpeters - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#46725 (status was 'resolved')
Searchable as RT46725$
The text was updated successfully, but these errors were encountered: