[root@zone2 libnbcompat]$ /bin/sh config.sub sun4config.sub: -r: is not an identifier[root@zone2 libnbcompat]$ /usr/xpg4/bin/sh config.sub sun4sparc-sun-sunos4.1.1[root@zone2 libnbcompat]$ /bin/ksh config.sub sun4sparc-sun-sunos4.1.1
[root@zone2 libnbcompat]$ /bin/sh -x config.sub sun4timestamp=2018-08-29+ echo config.sub+ sed -e s,.*/,,me=config.subusage=Usage: config.sub [OPTION] CPU-MFR-OPSYS or ALIASCanonicalize a configuration name.Options:-h, --help print this help, then exit-t, --time-stamp print date of last modification, then exit-v, --version print version number, then exitReport bugs and patches to <config-patches%gnu.org@localhost>.version=GNU config.sub (2018-08-29)Copyright 1992-2018 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.help=Try `config.sub --help' for more information.+ test 1 -gt 0+ breakIFS=-+ read -r field1 field2 field3 field4sun4config.sub: -r: is not an identifier
Date: Tue, 2 Oct 2018 21:24:50 -0400
From: Julien Savard <juliensavard17%gmail.com@localhost>
Message-ID: <CAFVXn8SCtKnN8xvx1APzKmU-Qu+YK0-5agEczcbjWyO9_B8peA%mail.gmail.com@localhost>
| configure: error: cannot run /bin/sh ./config.sub
| *** Error code 1
Try running
/bin/sh config.sub sun4
and see what happens. When run from configure stdout and stderr are
redirected, so no error messages appear.
It should just print something like
sparc-sun-sunos4.1.1
and do nothing else, but in your case it appears to be failing for
some reason. Perhaps /bin/sh is not a good enough shell for the
script - you mighht need to set SHELL to /bin/ksh (or some other
sh - perhaps /usr/xpg4/sh or wherever it is).
Certainly the version of gcc is irrelevant for this, it is simply a shell
script failing in some way.
If it prints nothing at all, and simply exits with a non-zero status, then
add tthe -x option to show how far it gets ...
/bin/sh -x config.sub sun4
(you need to be in the pkgsrc/pkgtools/libnbcompat/files ditrectory to
find config.sub for all of this.)
kre