On Tue, Dec 19, 2000 at 04:50:38PM -0700, 'David Scott Urban wrote:
> Site configuration information for perl v5.7.0:
>
> Configured by urban at Tue Dec 19 13:57:30 MST 2000.
>
> Summary of my perl5 (revision 5.0 version 7 subversion 0) configuration:
> Platform:
> osname=hpux, osvers=10.20, archname=PA-RISC1.1
> uname='hp-ux spica b.10.20 a 9000735 2008140532 two-user license '
> config_args='-Accflags=-DPERL_POLLUTE -Dcc=gcc -Dprefix=/disk2/perl'
> hint=recommended, useposix=true, d_sigaction=define
> usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
> useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
> use64bitint=undef use64bitall=undef uselongdouble=undef
> Compiler:
> cc='gcc', ccflags ='-D_HPUX_SOURCE -L/lib/pa1.1 -DUINT32_MAX_BROKEN
>-DPERL_POLLUTE -fno-strict-aliasing -I/home/urban/local/hp/include
>-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
what does "UINT32_MAX_BROKEN imply other than this snippet in perl.h
# ifndef UINT32_MAX_BROKEN /* e.g. HP-UX with gcc messes this up */
# define UV_MAX UINT32_MAX
# else
# define UV_MAX 4294967295U
However, as H.Merijn Brand is finding problems with HP's compiler I'm not
sure if this is exactly it. However, my memory is that HP's compiler is
dogmatically conservative and traditional (to put it politely)
(one needs to supply -Aa to get ANSI, and -D_HPUX_SOURCE to get any of
the expected but non ANSI constants from the ANSI headers) the following
may be of note
sv.c: In function `Perl_sv_inc':
sv.c:5188: warning: integer constant is unsigned in ANSI C, signed with -traditional
sv.c:5189: warning: width of integer constant may change on other systems with
-traditional
sv.c:5190: warning: width of integer constant may change on other systems with
-traditional
sv.c:5198: warning: integer constant is unsigned in ANSI C, signed with -traditional
sv.c:5205: warning: integer constant is unsigned in ANSI C, signed with -traditional
sv.c:5213: warning: integer constant is unsigned in ANSI C, signed with -traditional
sv.c:5240: warning: integer constant is unsigned in ANSI C, signed with -traditional
(gcc on x86 linux with -Wtraditional)
Does this suggest a previously know problem with HP-UX and the UV_MAX
constant?
Nicholas Clark