openssh-2.9.9p2, AC_SYS_LARGEFILE, SCO, and HPUX

Paul Eggert eggert at twinsun.com
Fri Sep 28 16:38:13 EST 2001


> Date: Thu, 27 Sep 2001 14:02:39 -0700 (PDT)
> From: Tim Rice <tim at multitalents.net>
> 
> The problem on SCO (Open Server 3, aka. 3.2v4.2) is the sed scripts
> produced by autoconf make sed choke.
> The configure script worked fine on SCO Open Server 5
> 
> .....
> checking if your system defines WTMPX_FILE... no
> configure: creating ./config.status
> sed: command garbled: s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
> config.status: creating Makefile
> .....
> 
> If the autoconf testsuite.log is of any interest,
> I can e-mail it to you or grab it from
> ftp://ftp.multitalents.net/pub/testsuite.log
> http://www.multitalents.net/testsuite.log

This reminds me of the bug fix suggested by Philippe De Muyter in

http://mail.gnu.org/pipermail/bug-autoconf/2000-May/000413.html

Is there any reason why that bug fix wasn't installed?
(I'll CC: this to bug-autoconf to see.)

Can you please try the following shell script on the troublesome host?
You'll need to cut and paste, to get the exact set of tabs.  If the
first 'sed' fails, but the second one succeeds, it suggests that the
autoconf bug fix should be installed, and that it will fix your
problem.

   echo '#define x(y) z' | sed -n 's,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp'
   echo xxxxx
   echo '#define x(y) z' | sed -n 's,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp'

Here's what the output should look like for a host with a working 'sed':

   ${ac_dA}x${ac_dB}x(y)${ac_dC}z${ac_dD}
   xxxxx
   ${ac_dA}x${ac_dB}x(y)${ac_dC}z${ac_dD}

but my theory is that you'll get an error message instead.



More information about the openssh-unix-dev mailing list