Skip Menu |

This queue is for tickets about the POSIX-strptime CPAN distribution.

Report information
The Basics
Id: 36140
Status: resolved
Priority: 0/
Queue: POSIX-strptime

People
Owner: Nobody in particular
Requestors: mmann [...] otmltd.com
Cc:
AdminCc:

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



CC: "Patrick O'Driscoll" <podriscoll [...] otmltd.com>
Subject: Problems installing POSIX::strptime
Date: Fri, 23 May 2008 16:33:40 +0100
To: <bug-POSIX-strptime [...] rt.cpan.org>
From: "Martin Mann" <mmann [...] otmltd.com>
Hello, I am having some problems installing this module; the perl Makefile.pl gives me the following; S_SCUDA_905:/usr/src/POSIX-strptime-0.08> perl Makefile.PL WARNING: SIGN is not a known parameter. Checking if your kit is complete... Looks good 'SIGN' is not a known MakeMaker parameter name. Writing Makefile for POSIX::strptime The first time through I ignored this as it was just a warning but got the following output from the make command; S_SCUDA_905:/usr/src/POSIX-strptime-0.08> make cp lib/POSIX/strptime.pm blib/lib/POSIX/strptime.pm /usr/bin/perl -e 'use ExtUtils::Mksymlists; Mksymlists("NAME" => "POSIX::strptime", "DL_FUNCS" => { }, "FUNCLIST" => [], "DL_VARS" => []);' /usr/bin/perl /usr/opt/perl5/lib/5.8.0/ExtUtils/xsubpp -typemap /usr/opt/perl5/lib/5.8.0/ExtUtils/typemap strptime.xs > strptime.xsc && mv s trptime.xsc strptime.c Please specify prototyping behavior for strptime.xs (see perlxs manual) cc_r -c -I. -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARG E_FILES -qlonglong -O -DVERSION=\"0.08\" -DXS_VERSION=\"0.08\" "-I/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE" strptime.c 1506-507 (W) No licenses available. Contact your program supplier to add additional users. Compilation will proceed shortly. "strptime.xs", line 19.27: 1506-046 (S) Syntax error. "strptime.xs", line 19.48: 1506-276 (S) Syntax error: possible missing ';'? "strptime.xs", line 20.6: 1506-276 (S) Syntax error: possible missing 'while'? "strptime.xs", line 20.48: 1506-276 (S) Syntax error: possible missing ';'? "strptime.xs", line 21.6: 1506-276 (S) Syntax error: possible missing 'while'? "strptime.xs", line 21.48: 1506-276 (S) Syntax error: possible missing ';'? "strptime.xs", line 22.6: 1506-276 (S) Syntax error: possible missing 'while'? "strptime.xs", line 22.48: 1506-276 (S) Syntax error: possible missing ';'? "strptime.xs", line 23.6: 1506-276 (S) Syntax error: possible missing 'while'? "strptime.xs", line 23.48: 1506-276 (S) Syntax error: possible missing ';'? "strptime.xs", line 24.6: 1506-276 (S) Syntax error: possible missing 'while'? "strptime.xs", line 24.48: 1506-276 (S) Syntax error: possible missing ';'? "strptime.xs", line 25.6: 1506-276 (S) Syntax error: possible missing 'while'? "strptime.xs", line 25.48: 1506-276 (S) Syntax error: possible missing ';'? "strptime.xs", line 26.6: 1506-276 (S) Syntax error: possible missing 'while'? "strptime.xs", line 26.48: 1506-276 (S) Syntax error: possible missing ';'? "strptime.c", line 43.2: 1506-276 (S) Syntax error: possible missing 'while'? "strptime.c", line 62.1: 1506-204 (S) Unexpected end of file. make: 1254-004 The error code from the last command is 1. Stop. Any advise would be appreciated. For info, I am running AIX 5.2 TL 10 with Perl 5.8.0 Martin Mann This e-mail and its attachments are confidential and intended solely for the addressee. If you are not the intended addressee, you must not disclose, forward, copy or take any action in respect of this email or any attachments. If you have received this e-mail in error, please delete it and notify the sender. While OTM have taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage, which you may sustain as a result of software viruses. You should carry out your own virus checks before opening the attachment. Opus Trust Marketing Limited, 133 Scudamore Road, Braunstone Frith Industrial Estate, Leicester, LE3 1UQ Registered in England, Number 3829642
From: gozer [...] cpan.org
On Fri May 23 13:23:57 2008, mmann@otmltd.com wrote: Show quoted text
> Hello, > > I am having some problems installing this module; the perl Makefile.pl > gives me the following; > > S_SCUDA_905:/usr/src/POSIX-strptime-0.08> perl Makefile.PL > > WARNING: SIGN is not a known parameter. > > Checking if your kit is complete... > > Looks good > > 'SIGN' is not a known MakeMaker parameter name. > > Writing Makefile for POSIX::strptime > > > > The first time through I ignored this as it was just a warning but got > the following output from the make command;
Yes, that's a harmless warning. Show quoted text
> [...] > > E_FILES -qlonglong -O -DVERSION=\"0.08\" -DXS_VERSION=\"0.08\" > "-I/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE" strptime.c > > 1506-507 (W) No licenses available. Contact your program supplier to > add > additional users. Compilation will proceed shortly. > > "strptime.xs", line 19.27: 1506-046 (S) Syntax error. > > "strptime.xs", line 19.48: 1506-276 (S) Syntax error: possible missing > ';'? > > "strptime.xs", line 20.6: 1506-276 (S) Syntax error: possible missing > 'while'? > > "strptime.xs", line 20.48: 1506-276 (S) Syntax error: possible missing > ';'? > > "strptime.xs", line 21.6: 1506-276 (S) Syntax error: possible missing > 'while'? > > "strptime.xs", line 21.48: 1506-276 (S) Syntax error: possible missing > ';'? > > "strptime.xs", line 22.6: 1506-276 (S) Syntax error: possible missing > 'while'? > > "strptime.xs", line 22.48: 1506-276 (S) Syntax error: possible missing > ';'? > > "strptime.xs", line 23.6: 1506-276 (S) Syntax error: possible missing > 'while'? > > "strptime.xs", line 23.48: 1506-276 (S) Syntax error: possible missing > ';'? > > "strptime.xs", line 24.6: 1506-276 (S) Syntax error: possible missing > 'while'? > > "strptime.xs", line 24.48: 1506-276 (S) Syntax error: possible missing > ';'? > > "strptime.xs", line 25.6: 1506-276 (S) Syntax error: possible missing > 'while'? > > "strptime.xs", line 25.48: 1506-276 (S) Syntax error: possible missing > ';'? > > "strptime.xs", line 26.6: 1506-276 (S) Syntax error: possible missing > 'while'? > > "strptime.xs", line 26.48: 1506-276 (S) Syntax error: possible missing > ';'? > > "strptime.c", line 43.2: 1506-276 (S) Syntax error: possible missing > 'while'? > > "strptime.c", line 62.1: 1506-204 (S) Unexpected end of file. > > make: 1254-004 The error code from the last command is 1. > > Stop.
Sounds like there is something about the foo = bar == -1 ? baz : ban syntax that's getting tripped up. Can you try the attached patch and see if it makes the problem dissapear?
=== strptime.xs ================================================================== --- strptime.xs (revision 620) +++ strptime.xs (local) @@ -6,6 +6,17 @@ #include <time.h> +#define POSIX_STRPTIME_SET(field) \ + { \ + if (field == -1) { \ + XPUSHs(&PL_sv_undef); \ + } \ + else { \ + mXPUSHi(field); \ + } \ + } \ + + MODULE = POSIX::strptime PACKAGE = POSIX::strptime void @@ -16,11 +27,11 @@ struct tm tm_t = { -1,-1,-1,-1,-1,-1,-1,-1 }; PPCODE: strptime(input, format, &tm_t); - tm_t.tm_sec == -1 ? XPUSHs(&PL_sv_undef) : mXPUSHi(tm_t.tm_sec); - tm_t.tm_min == -1 ? XPUSHs(&PL_sv_undef) : mXPUSHi(tm_t.tm_min); - tm_t.tm_hour == -1 ? XPUSHs(&PL_sv_undef) : mXPUSHi(tm_t.tm_hour); - tm_t.tm_mday == -1 ? XPUSHs(&PL_sv_undef) : mXPUSHi(tm_t.tm_mday); - tm_t.tm_mon == -1 ? XPUSHs(&PL_sv_undef) : mXPUSHi(tm_t.tm_mon); - tm_t.tm_year == -1 ? XPUSHs(&PL_sv_undef) : mXPUSHi(tm_t.tm_year); - tm_t.tm_wday == -1 ? XPUSHs(&PL_sv_undef) : mXPUSHi(tm_t.tm_wday); - tm_t.tm_yday == -1 ? XPUSHs(&PL_sv_undef) : mXPUSHi(tm_t.tm_yday); + POSIX_STRPTIME_SET(tm_t.tm_sec); + POSIX_STRPTIME_SET(tm_t.tm_min); + POSIX_STRPTIME_SET(tm_t.tm_hour); + POSIX_STRPTIME_SET(tm_t.tm_mday); + POSIX_STRPTIME_SET(tm_t.tm_mon); + POSIX_STRPTIME_SET(tm_t.tm_year); + POSIX_STRPTIME_SET(tm_t.tm_wday); + POSIX_STRPTIME_SET(tm_t.tm_yday);
On Fri May 23 13:23:57 2008, mmann@otmltd.com wrote: Show quoted text
> Hello, > > I am having some problems installing this module; the perl Makefile.pl > gives me the following; > [...] > "strptime.xs", line 22.6: 1506-276 (S) Syntax error: possible missing > 'while'? > > "strptime.xs", line 22.48: 1506-276 (S) Syntax error: possible missing > ';'?
Try 0.09, it was just released on CPAN and might very well fix this bug too.