Front page | perl.perl5.porters |
Postings from November 2010
YAML::Syck under 5.13.7
Thread Next
From:
H.Merijn Brand
Date:
November 21, 2010 02:37
Subject:
YAML::Syck under 5.13.7
Message ID:
20101121113723.05fb43ba@pc09.procura.nl
Threaded version did OK, but under unthreaded perl:
cc -c -I. -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fPIC "-I/media/Tux/perls/lib/5.13.7/i686-linux-64int/CORE" Syck.c
Syck.c: In function ‘XS_YAML__Syck_LoadYAML’:
Syck.c:84:21: error: ‘na’ undeclared (first use in this function)
Syck.c:84:21: note: each undeclared identifier is reported only once for each function it appears in
Syck.c: In function ‘XS_YAML__Syck_LoadJSON’:
Syck.c:128:21: error: ‘na’ undeclared (first use in this function)
make: *** [Syck.o] Error 1
I upped ppport.h from 3.13 to 3.19_02 and got a lot of warnings when I ran
$ perl5.13.7 ppport.h
some make me worry, but none fixes the above error.
What part of the toolchain misbehaves here? The generated
char * s = (char *)SvPV(ST(0),na);
should of course now be
char * s = (char *)SvPV_nolen(ST(0));
With that change, YAML::Sync tests and installs fine
Yuck:
--- ./perl_syck.h 2010-09-23 13:03:08.000000000 +0200
+++ ./perl_syck.h 2010-11-21 11:26:05.000000000 +0100
@@ -1109,7 +1118,7 @@
syck_emit_item( e, (st_data_t)val );
}
}
- // reset hash each poiter
+ /* reset hash each poiter */
hv_iterinit(hv);
syck_emit_end(e);
return;
--
H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/
using 5.00307 through 5.12 and porting perl5.13.x on HP-UX 10.20, 11.00,
11.11, 11.23 and 11.31, OpenSuSE 10.1, 11.0 .. 11.3 and AIX 5.2 and 5.3.
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/
http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/
Thread Next
-
YAML::Syck under 5.13.7
by H.Merijn Brand