From owner-bug-octave at bevo dot che dot wisc dot edu Wed Jan 22 16:58:16 1997 Subject: configure octave-2.0.1 bug From: "John W. Eaton" To: Neal Becker Cc: bug-octave at bevo dot che dot wisc dot edu Date: Wed, 22 Jan 1997 16:57:08 -0600 On 13-Jan-1997, Neal Becker wrote: : octave-2.0.1, hpux9.05. Here's what happens: : : echo $foutput | sed -n -e 's/.*\(LD_RUN_PATH *= *[^ ]*\).*/\1/p' | sed -e 's/LD_RUN_PATH *= *//' : ++ echo gcc -v -o conftest -xf77 conftest.f -xnone -lf2c -lm Reading specs from /usr/local/lib/gcc-lib/hppa1.1-hp-hpux9/2.7.2.f.1/specs gcc version 2.7.2.f.1 /usr/local/lib/gcc-lib/hppa1.1-hp-hpux9/2.7.2.f.1/f771 conftest.f -fset-g77-defaults -quiet -dumpbase conftest.f -version -fversion -o /usr/tmp/cca11079.s GNU F77 version 2.7.2.f.1 '(hppa)' compiled by GNU C version 2.7.2.f.1. GNU Fortran Front End version 0.5.19 compiled: Dec 16 1996 09:39:44 /usr/local/hppa1.1-hp-hpux9/bin/as -o /usr/tmp/cca110791.o /usr/tmp/cca11079.s /usr/local/lib/gcc-lib/hppa1.1-hp-hpux9/2.7.2.f.1/ld -u main -o conftest /lib/crt0.o -L/usr/local/lib -L/lib/pa1.1 -L/usr/lib/pa1.1 -L/usr/local/lib/gcc-lib/hppa1.1-hp-hpux9/2.7.2.f.1 -L/usr/local/lib /usr/tmp/cca110791.o -lf2c -lm -lgcc -lc -lgcc : ++ sed -n -e 's/.*\(LD_RUN_PATH *= *[^ ]*\).*/\1/p' : ++ sed -e 's/LD_RUN_PATH *= *//' : : Pid 11092 received a SIGSEGV for stack growth failure. : Possible causes: insufficient memory or swap space, : or stack size exceeded maxssiz. : : It looks like sed is the problem, this is gnu sed: : sed --version : GNU sed version 2.05 : Rather disappointing, usually GNU stuff is better. Not sure what to : do as a workaround. It looks like anchoring the search at the beginning of the line will work around the problem. I don't think that should cause any problems for the case where this might actually be needed. Here is a patch: Wed Jan 22 11:14:07 1997 John W. Eaton * aclocal.m4 (ld_run_path): Anchor search at beginning of line to avoid GNU sed bug on HP-UX systems. Use just one sed command. Index: aclocal.m4 =================================================================== RCS file: /home/jwe/src/master/octave/aclocal.m4,v retrieving revision 1.19 diff -c -r1.19 aclocal.m4 *** aclocal.m4 1996/12/19 22:35:54 1.19 --- aclocal.m4 1997/01/22 22:55:02 *************** *** 126,133 **** fi dnl ld_run_path=`echo $foutput | \ ! sed -n -e 's/.*\(LD_RUN_PATH *= *[^ ]*\).*/\1/p' | \ ! sed -e 's/LD_RUN_PATH *= *//'` dnl dnl We are only supposed to find this on Solaris systems, and this dnl substitution is probably only going to work with gcc on those --- 126,132 ---- fi dnl ld_run_path=`echo $foutput | \ ! sed -n -e 's/^.*\(LD_RUN_PATH *= *\([^ ]*\).*/\1/p'` dnl dnl We are only supposed to find this on Solaris systems, and this dnl substitution is probably only going to work with gcc on those Thanks, jwe