Skip Menu |

This queue is for tickets about the Time-Piece CPAN distribution.

Report information
The Basics
Id: 69266
Status: resolved
Priority: 0/
Queue: Time-Piece

People
Owner: Nobody in particular
Requestors: HMBRAND [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.19
Fixed in: (no value)



Subject: alloca "fix" breaks HP-UX
HP-UX 11.23/64 IPF: cc -c -Ae -DPERL_DONT_CREATE_GVSV +Z -z -D_HPUX_SOURCE -Wl, +vnocompatwarnings +DD64 -I/pro/local/include -D_LARGEFILE_SOURCE - D_FILE_OFFSET_BITS=64 +O2 +Onolimit -DVERSION=\"1.20\" -DXS_VERSION= \"1.20\" +Z "-I/pro/lib/perl5/5.10.1/IA64.ARCHREV_0-LP64/CORE" Piece.c "Piece.xs", line 919: warning #2223-D: function "alloca" declared implicitly zonestr = (char *)alloca(cp - buf + 1); ^ "Piece.xs", line 919: error #4313-D: no prototype or definition in scope for call to memory allocation routine "alloca" zonestr = (char *)alloca(cp - buf + 1); ^ 1 error detected in the compilation of "Piece.c". All was still 100% PASS in 1.18
Much simpler would be to lift the revised code from the perl core, which sidesteps the whole alloca() mess, and demonstrably already compiles on more platforms than even the CPAN testers manage. Nicholas Clark
On Wed Jul 06 08:21:09 2011, NWCLARK wrote: Show quoted text
> Much simpler would be to lift the revised code from the perl core, which > sidesteps the whole alloca() mess, and demonstrably already compiles on > more platforms than even the CPAN testers manage.
Version from core attached. (blead + fixes for compiler warnings, tested on a branch) I believe that this completely sidesteps the whole alloca mess, and builds everywhere perl builds. :-) Nicholas Clark
Subject: Piece.xs

Message body is not shown because it is too large.

I believe this is fixed in blead and will be fixed on CPAN shortly. -- rjbs