Note that I am not the maintainer but another list denizen.
> the "date" program from sh-utils-2.0 produces incorrect output on our
> HPUX build system. Format strings %V and %U always give "00",
> regardless of the actual date.
>
> The problem goes away if src/date.c and lib/strftime.c are manually
> compiled without optimizations (no "-O2" option).
I see that you are using gcc. I cannot reproduce the problem using
the HP ANSI C compiler. Here is the options I used.
CC=cc CFLAGS='-O' ./configure
And here is the output I see on hpux.
date '+%V'
36
date '+%U'
36
date --version
date (GNU sh-utils) 2.0j
Bob