Subject: | Initialisation is not C89 compatible causing build fail |
$ make
:
cc -c -I. -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=\"\" -DXS_VERSION=\"\"
+Z "-I/pro/lib/perl5/5.10.1/PA-RISC2.0-LP64/CORE" -DHAVE_CONFIG_H
scanner.c
cc: "scanner.c", line 1122: error 1536: Cannot evaluate initialization
expression, please initialize dynamically.
cc: "scanner.c", line 1992: warning 562: Redeclaration of
"yaml_parser_scan_directive" with a different storage class specifier:
"yaml_parser_scan_directive" will have internal linkage.
make[1]: *** [scanner.o] Error 1
$ perl -ne'1119..1126 and print"$.:$_"' LibYAML/scanner.c
1119: if (parser->simple_key_allowed)
1120: {
1121: yaml_simple_key_t simple_key = { 1, required,
1122: parser->tokens_parsed + parser->tokens.tail - parser-
Show quoted text
>tokens.head,
1123: { 0, 0, 0 } };
1124: simple_key.mark = parser->mark;
1125:
1126: if (!yaml_parser_remove_simple_key(parser)) return 0;
/usr/bin/cc:
$Revision: 92453-07 linker linker crt0.o B.11.53 060807 $
LINT B.11.11.18 CXREF B.11.11.18
HP92453-01 B.11.11.18 HP C Compiler
$ PATCH/11.00:PHCO_27774 Oct 3 2002 09:45:59 $
/usr/bin/cc:
$Revision: 92453-07 linker linker crt0.o B.11.53 060807 $