Hello,
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).
sh ./config.guess
hppa1.1-hp-hpux10.20
Attached is the config.status file in case it may help.
Best regards
Jan Iven
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host hp10ref:
#
# ./configure
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
ac_cs_usage="Usage: ./config.status [--recheck] [--version] [--help]"
for ac_option
do
case "$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion"
exec ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "./config.status generated by autoconf version 2.14.1"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "$ac_cs_usage"; exit 0 ;;
*) echo "$ac_cs_usage"; exit 1 ;;
esac
done
ac_given_srcdir=.
ac_given_INSTALL="/opt/imake/bin/install -c"
trap 'rm -fr Makefile
doc/Makefile
intl/Makefile
lib/Makefile
man/Makefile
m4/Makefile
po/Makefile.in
src/Makefile
tests/Makefile
tests/basename/Makefile
tests/date/Makefile
tests/factor/Makefile
tests/seq/Makefile
tests/stty/Makefile
tests/test/Makefile
config.h conftest*; exit 1' 1 2 15
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\%]/\\/g;
s/@@/%@/; s/@@/@%/; s/@g$/%g/' conftest.subs \CEOF
/^[ ]*VPATH[]*=[^:]*$/d
s%@SHELL@%/bin/sh%g
s%@CFLAGS@%-g -O2%g
s%@CPPFLAGS@%%g
s%@CXXFLAGS@%%g
s%@FFLAGS@%%g
s%@DEFS@%-DHAVE_CONFIG_H%g
s%@LDFLAGS@%%g
s%@LIBS@%-lintl -lsec %g
s%@exec_prefix@%${prefix}%g
s%@prefix@%/usr/local%g
s%@program_transform_name@%s,x,x,%g
s%@bindir@%${exec_prefix}/bin%g
s%@sbindir@%${exec_prefix}/sbin%g
s%@libexecdir@%${exec_prefix}/libexec%g
s%@datadir@%${prefix}/share%g
s%@sysconfdir@%${prefix}/etc%g
s%@sharedstatedir@%${prefix}/com%g
s%@localstatedir@%${prefix}/var%g
s%@libdir@%${exec_prefix}/lib%g
s%@includedir@%${prefix}/include%g
s%@oldincludedir@%/usr/include%g
s%@infodir@%${prefix}/info%g
s%@mandir@%${prefix}/man%g
s%@host@%hppa1.1-hp-hpux10.20%g
s%@host_alias@%hppa1.1-hp-hpux10.20%g
s%@host_cpu@%hppa1.1%g
s%@host_vendor@%hp%g
s%@host_os@%hpux10.20%g
s%@INSTALL_PROGRAM@%${INSTALL}%g
s%@INSTALL_SCRIPT@%${INSTALL}%g
s%@INSTALL_DATA@%${INSTALL} -m 644%g
s%@PACKAGE@%sh-utils%g
s%@VERSION@%2.0%g
s%@ACLOCAL@%aclocal%g
s%@AUTOCONF@%autoconf%g
s%@AUTOMAKE@%automake%g
s%@AUTOHEADER@%autoheader%g
s%@MAKEINFO@%makeinfo%g
s%@AMTAR@%gtar%g
s%@AMTARFLAGS@%o%g
s%@SET_MAKE@%%g
s%@PERL@%perl%g
s%@OPTIONAL_BIN_PROGS@% uname chroot hostid nice uptime stty%g
s%@OPTIONAL_BIN_ZCRIPTS@% nohup%g
s%@MAN@% uname.1 chroot.1 hostid.1 nice.1 nohup.1 stty.1%g
s%@CC@%gcc%g
s%@CPP@%gcc -E%g
s%@RANLIB@%ranlib%g
s%@YACC@%bison -y%g
s%@build@%hppa1.1-hp-hpux10.20%g
s%@build_alias@%hppa1.1-hp-hpux10.20%g
s%@build_cpu@%hppa1.1%g
s%@build_vendor@%hp%g
s%@build_os@%hpux10.20%g
s%@GETCONF@%getconf%g
s%@U@%%g
s%@ANSI2KNR@%%g
s%@GNU_PACKAGE@%GNU sh-utils%g
s%@LIBOBJS@%mktime$U.o regex$U.o getline$U.o stpcpy$U.o group-member$U.o putenv$U.o
error$U.o strftime$U.o getloadavg$U.o%g
s%@ALLOCA@%%g
s%@NEED_SETGID@%false%g
s%@KMEM_GROUP@%%g
s%@GETLOADAVG_LIBS@%-L/usr/local/lib %g
s%@SEQ_LIBM@%-lm%g
s%@POW_LIBM@%%g
s%@SQRT_LIBM@%-lm%g
s%@LIB_CRYPT@%%g
s%@USE_NLS@%yes%g
s%@MSGFMT@%/usr/local/bin/msgfmt%g
s%@GMSGFMT@%/usr/local/bin/msgfmt%g
s%@XGETTEXT@%/usr/local/bin/xgettext%g
s%@GENCAT@%%g
s%@USE_INCLUDED_LIBINTL@%no%g
s%@CATALOGS@% cs.gmo de.gmo el.gmo es.gmo fr.gmo it.gmo nl.gmo no.gmo pl.gmo pt.gmo
pt_BR.gmo ru.gmo sk.gmo sv.gmo zh.gmo%g
s%@CATOBJEXT@%.gmo%g
s%@DATADIRNAME@%share%g
s%@GMOFILES@% cs.gmo de.gmo el.gmo es.gmo fr.gmo it.gmo nl.gmo no.gmo pl.gmo pt.gmo
pt_BR.gmo ru.gmo sk.gmo sv.gmo zh.gmo%g
s%@INSTOBJEXT@%.mo%g
s%@INTLDEPS@%%g
s%@INTLLIBS@%%g
s%@INTLOBJS@%%g
s%@POFILES@% cs.po de.po el.po es.po fr.po it.po nl.po no.po pl.po pt.po pt_BR.po
ru.po sk.po sv.po zh.po%g
s%@POSUB@%po%g
s%@INCLUDE_LOCALE_H@%#include locale.h%g
s%@GT_NO@%%g
s%@GT_YES@%#YES#%g
s%@MKINSTALLDIRS@%./mkinstalldirs%g
s%@l@%%g
CEOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds