Jarkko Hietaniemi <[EMAIL PROTECTED]> wrote:
rajarshi das wrote:
> Hi,
>
> I am configuring and building p59x26223 on z/OS v1.7.
> I configure it as :
> sh Configure -Dmake=gmake
>
> and use all default options when asked (except a -g
> when asked for a optimization/ debugging flag).
>
> I get the following errors :
> ....
> Finding dependencies for perly.o.
> ERROR CCN3202
> /u/isldev2/tmp_devel/p59x26223/.67175129.c:86
> #endif can only appear at the end of a #if, #elif,
> #ifdef or #ifndef block.
> FSUM3065 The COMPILE step ended with return code 12.
> FSUM3017 Could not compile .67175129.c. Correct the
> errors and try again.
>
> Finding dependencies for pp_pack.o.
> ERROR CCN3294
> /u/isldev2/tmp_devel/p59x26223/.33620736.c:100
> Syntax error in _expression_ on #if directive.
> FSUM3065 The COMPILE step ended with return code 12.
> FSUM3017 Could not compile .33620736.c. Correct the
> errors and try again.
>
>
> Thereafter, a gmake fails while compiling op.c :
>
> `sh cflags "optimize='-g'" op.o` op.c
> CCCMD = c89 -DPERL_CORE -c
> -DPERL_PATCHNUM=26223 -DMAXSIG=38 -DOEMVS
> -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE
> -DYYDYNAMIC -DDEBUGGING -I/usr/local/include -W
> 0,float(ieee) -g
> WARNING CCN4300
> /u/isldev2/tmp_devel/p59x26223/op.c:1980 The
> subscript -1 is less than zero. The subscript of an
> array should be greater than or equal to zero.

This warning is a bit silly. Though it admittedly is not for
the faint-hearted, accessing a position before a pointer
is fine if one trusts that one doesn't do that too soon
after the pointer has advanced (enough) past its origin.

> ERROR CCN3068 /u/isldev2/tmp_devel/p59x26223/op.c:2478
> Operation between types "const unsigned char*" and
> "int" is not allowed.
> ERROR CCN3068 /u/isldev2/tmp_devel/p59x26223/op.c:2482
> Operation between types "const unsigned char*" and
> "int" is not allowed.
> ERROR CCN3068 /u/isldev2/tmp_devel/p59x26223/op.c:2491
> Operation between types "const unsigned char*" and
> "int" is not allowed.

Please ry adding these two to the end of utfebcdic.h (in case
my stupid mail client wraps the lines, see the end of utf8.h):

#define uvuni_to_utf8(d, uv) uvuni_to_utf8_flags(d, uv, 0)
#define is_utf8_string_loc(s, len, ep) is_utf8_string_loclen(s, len, ep, 0)
Adding the above two lines to the end of utfebcdic.h gets the op.c file to compile fine. Thanks for that. The build proceeds till we hit the following error :
------------------------------------------------------------------------------------------
c89 -c  -I./zlib-src -DMAXSIG=38 -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED
-D_ALL_SOURCE -DYYDYNAMIC -DDEBUGGING -I/usr/local/include -W 0,float\(ieee\) -g
   -DVERSION=\"2.000_06\" -DXS_VERSION=\"2.000_06\"  "-I../../.."  -DGZIP_OS_COD
E=3 Zlib.c
ERROR CCN3277 /u/isldev2/tmp_devel/p59x26223/ext/Compress/Zlib/zlib-src/zlib.h:9
2    Syntax error: possible missing ';' or ','?
ERROR CCN3007 /u/isldev2/tmp_devel/p59x26223/ext/Compress/Zlib/zlib-src/zlib.h:9
2    "struct internal_state" is undefined.
ERROR CCN3166 /u/isldev2/tmp_devel/p59x26223/ext/Compress/Zlib/zlib-src/zlib.h:1
03   Definition of function FAR requires parentheses.
ERROR CCN3276 /u/isldev2/tmp_devel/p59x26223/ext/Compress/Zlib/zlib-src/zlib.h:1
03   Syntax error: possible missing '{'?
ERROR CCN3273 /u/isldev2/tmp_devel/p59x26223/ext/Compress/Zlib/zlib-src/zlib.h:1
24   Missing type in declaration of gz_header.
ERROR CCN3166 /u/isldev2/tmp_devel/p59x26223/ext/Compress/Zlib/zlib-src/zlib.h:1
26   Definition of function gz_header requires parentheses.
ERROR CCN3276 /u/isldev2/tmp_devel/p59x26223/ext/Compress/Zlib/zlib-src/zlib.h:1
26   Syntax error: possible missing '{'?
WARNING CCN3137 /u/isldev2/tmp_devel/p59x26223/ext/Compress/Zlib/zlib-src/zlib.h
:1346  Declaration must declare at least one declarator, tag, or the members of
an enumeration.
ERROR CCN3275 /u/isldev2/tmp_devel/p59x26223/ext/Compress/Zlib/zlib-src/zlib.h:1
350  Unexpected text z encountered.
ERROR CCN3282 /u/isldev2/tmp_devel/p59x26223/ext/Compress/Zlib/zlib-src/zlib.h:1
350  The type of the parameters must be specified in a prototype.
ERROR CCN3019 /u/isldev2/tmp_devel/p59x26223/ext/Compress/Zlib/Zlib.c:684   Expe
cting an array or a pointer to object type.
CCN0793(I) Compilation failed for file ./Zlib.c.  Object file not created.
FSUM3065 The COMPILE step ended with return code 12.
FSUM3017 Could not compile Zlib.c. Correct the errors and try again.
gmake[1]: *** [Zlib.o] Error 3
gmake[1]: Leaving directory `/u/isldev2/tmp_devel/p59x26223/ext/Compress/Zlib'
gmake: *** [lib/auto/Compress/Zlib/Zlib.a] Error 2
------------------------------------------------------------------------------------
 
The above is not a problem if we use the system supplied zlib.h and libz.a as mentioned in option 3 (in the Compress::Zlib readme). However, the zlib needs to work with option 1 (as mentioned in the readme).
 
Any thoughts ?
 

For those following at home that do not have the 26223 patchlevel
handy, those three lines are still there as of 26437, only about
ten lines further down.

> CCN0793(I) Compilation failed for file ./op.c. Object
> file not created.
> FSUM3065 The COMPILE step ended with return code 12.
> FSUM3017 Could not compile op.c. Correct the errors
> and try again.
> gmake: *** [op.o] Error 3
>
> The above problem happens even if I configure and
> build without a '-g' flag.
>
> Any thoughts on why this might be happening ?
>
> Thanks,
> Rajarshi.
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Reply via email to