bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Solaris 8/SunOS 5.8 /bin/sh test builtin


From: Richard A Ryan
Subject: Solaris 8/SunOS 5.8 /bin/sh test builtin
Date: Fri, 04 Jan 2002 17:18:17 +0000
User-agent: Mozilla/5.0 (X11; U; SunOS sun4m; en-US; rv:0.9.2) Gecko/20011002 Netscape6/6.1

Hello,

For uname -a I get the following output:

SunOS bevis.fsl.noaa.gov 5.8 Generic_108528-11 sun4m sparc SUNW,SPARCstation-20

gcc -v gives me:

Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/specs
  gcc version 2.95.2 19991024 (release)


bison --version gives me

  GNU Bison version 1.28

perl -v gives me

  This is perl, v5.6.1 built for sun4-solaris

  Copyright 1987-2001, Larry Wall

  ...

If I run the yacc7.test with /bin/ksh (to which /usr/xpg4/bin/sh
is symbolically linked), it succeeds.  However, if I run it
with the regular /bin/sh, it fails.  The following is how I ran
it after my build.



address@hidden:~/sandbox/freeware/packages/configuration/build/automake-1.5/tests 723% env srcdir=${HOME}/sandbox/freeware/packages/configuration/automake-1.5/tests VERBOSE=1 /bin/sh -xv ~/sandbox/freeware/packages/configuration/automake-1.5/tests/yacc7.test
#! /bin/sh

# Test to make sure dependencies are generated correctly for .h files.
# Report from Richard Boulton.

. $srcdir/defs || exit 1
+ . /home/ryan/sandbox/freeware/packages/configuration/automake-1.5/tests/defs + test -f /home/ryan/sandbox/freeware/packages/configuration/automake-1.5/tests/defs
+ sed -e s,.*[\/],,;s/\.test$//
+ echo /home/ryan/sandbox/freeware/packages/configuration/automake-1.5/tests/yacc7.test
me=yacc7
+ chmod -R a+rwx testSubDir
+ rm -rf testSubDir
+ mkdir testSubDir
+ cp /home/ryan/sandbox/freeware/packages/configuration/automake-1.5/tests/../lib/install-sh testSubDir/install-sh + cp /home/ryan/sandbox/freeware/packages/configuration/automake-1.5/tests/../lib/mkinstalldirs testSubDir/mkinstalldirs + cp /home/ryan/sandbox/freeware/packages/configuration/automake-1.5/tests/../lib/missing testSubDir/missing + cp /home/ryan/sandbox/freeware/packages/configuration/automake-1.5/tests/../lib/depcomp testSubDir/depcomp
+ cd ./testSubDir
+ cat
+ test -z 1
+ test -z
PERL=perl
+ test -z
MAKE=make
+ unset MFLAGS
+ unset MAKEFLAGS
+ unset MAKELEVEL
needs_gnu_make=:
+ test -z
AUTOCONF=autoconf
has_autoconf=:
needs_autoconf=:
+ echo === Running test /home/ryan/sandbox/freeware/packages/configuration/automake-1.5/tests/yacc7.test === Running test /home/ryan/sandbox/freeware/packages/configuration/automake-1.5/tests/yacc7.test
+ test -z
perllibdir=/home/ryan/sandbox/freeware/packages/configuration/automake-1.5/tests/../lib
+ export perllibdir
AUTOMAKE=perl ../../automake --libdir=/home/ryan/sandbox/freeware/packages/configuration/automake-1.5/tests/../lib --foreign --Werror
+ test -z
ACLOCAL=perl ../../aclocal --acdir=/home/ryan/sandbox/freeware/packages/configuration/automake-1.5/tests/../m4

$needs_gnu_make
+ :
$needs_autoconf
+ :

cat > configure.in << 'END'
AC_INIT
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_CC
AC_PROG_YACC
AC_OUTPUT(Makefile)
END
+ cat

cat > Makefile.am << 'END'
bin_PROGRAMS = foo
foo_SOURCES = foo.y
AM_YFLAGS = -d
END
+ cat

cat > foo.y << 'END'
%%
WORD: "up";
%%
END
+ cat

$ACLOCAL || exit 1
+ perl ../../aclocal --acdir=/home/ryan/sandbox/freeware/packages/configuration/automake-1.5/tests/../m4
$AUTOMAKE -a || exit 1
+ perl ../../automake --libdir=/home/ryan/sandbox/freeware/packages/configuration/automake-1.5/tests/../lib --foreign --Werror -a
$AUTOCONF || exit 1
+ autoconf
./configure || exit 1
+ ./configure
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for a BSD compatible install... ./install-sh -c
checking whether make sets ${MAKE}... (cached) yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc
checking for bison... bison -y
configure: creating ./config.status
config.status: creating Makefile

$MAKE foo.h || exit 1
+ make foo.h
bison -y  -d foo.y && mv y.tab.c foo.c
if test -f y.tab.h; then \
  if cmp -s y.tab.h foo.h; then \
    rm -f y.tab.h; \
  else \
    mv y.tab.h foo.h; \
  fi; \
fi

test -e foo.h || exit 1
+ test -e foo.h
/home/ryan/sandbox/freeware/packages/configuration/automake-1.5/tests/yacc7.test: test: argument expected






reply via email to

[Prev in Thread] Current Thread [Next in Thread]