From bug-octave-request at che dot utexas dot edu Mon Dec 13 08:06:27 1993 Subject: octave bug report From: Wolfgang Rohrmoser To: bug-octave at che dot utexas dot edu Cc: rohr at pdv3 dot fmr dot maschinenbau dot th-darmstadt dot de Date: Mon, 13 Dec 93 15:06:03 +0100 running octave-0.79 on a sun3/160 under SUNOS4.1.1, compiled with f2c and gcc-2.4.5 I applied your patches from Wed, 10 Nov 93 15:09:04 CST ------------------------------------------------------------- Bug1: I have two octave files containing: fileA.m: a=1; function y=f(x) y=10*x; endfunction b=2; fileB.m function y=f(x) y=10*x; endfunction a=1; b=2; only fileA will run under octave: Octave, version 0.79. Copyright (C) 1992, 1993, John W. Eaton. This is free software with ABSOLUTELY NO WARRANTY. For details, type `warranty'. octave:1> fileA octave:2> fileB warning: ignoring trailing garbage after end of function near line 3 of file `fileB.m' warning: function name `f' does not agree with M-file name `fileB.m' error: `fileB' undefined near line 2 column 1 error: evaluating expression near line 2, column 1 octave:3> ------------------------------------------------------------------- Bug2: octave will exit with SIGSEGV in function qzval octave:1> a=[1,3;7,8] a = 1 3 7 8 octave:2> b=[1,1;2,2] b = 1 1 2 2 octave:3> qzval(a,b) error: caught SIGSEGV -- stopping myself... Running the same script on a DEC ULTRIX V4.3 (Rev. 44) with octave compiled with gcc-2.5.4 did not cause any problems. Running octave under gdb indicated that the problem on the sun3-160 occurs in g++include/Complex.h. Because I was using an 'old' gcc version 2.4.5 I decided to install the latest version 2.5.6 Trying to recompile octave with gcc-2.5.6 ended up with: g++ -c -I. -I./../liboctave -I./.. -I. -I../liboctave -I.. -DNPSOL_MISSING=1 -DQPSOL_MISSING=1 -DFSQP_MISSING=1 -DHAVE_ALLOCA_H=1 -DF77_APPEND_UNDERSCORE=1 -DHAVE_STRING_H=1 -DHAVE_VARARGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_FCNTL_H=1 -DHAVE_SYS_TTOLD_H=1 -DHAVE_UNISTD_H=1 -DDIRENT=1 -DHAVE_SETVBUF=1 -DHAVE_GETCWD=1 -DHAVE_BZERO=1 -DHAVE_RINDEX=1 -DHAVE_VFPRINTF=1 -DHAVE_VSPRINTF=1 -DRETSIGTYPE=void -DHAVE_TERMIOS_H=1 -DHAVE_LIBM=1 -DHAVE_FINITE=1 -DHAVE_ISNAN=1 -DHAVE_ISINF=1 -g -O -Wall f-balance.cc In file included from f-balance.cc:30: ./../liboctave/Matrix.h:2512: `SCHUR::operator =(const SCHUR &, const char *)' must take exactly one argument ./../liboctave/Matrix.h:2538: `SCHUR::operator =(const SCHUR &, const char *)' must take exactly one argument ./../liboctave/Matrix.h:2564: `ComplexSCHUR::operator =(const ComplexSCHUR &, const char *)' must take exactly one argument ./../liboctave/Matrix.h:2593: `ComplexSCHUR::operator =(const ComplexSCHUR &, const char *)' must take exactly one argument f-balance.cc: In function `class tree_constant * balance(const class tree_constant *, int, int)': f-balance.cc:278: warning: this function may return with or without a value gmake: *** [f-balance.o] Error 1 Compilation exited abnormally with code 1 at Mon Dec 13 13:51:02 * * Wolfgang Rohrmoser * Technical University of Darmstadt * Institute for Flight Mechanics and Control Theory * Petersenstrasse 30 * 64287 Darmstadt (germany) * Tel: 6151 163090 * FAX: 6151 165434 * Email: rohr at pdv3 dot fmr dot maschinenbau dot th-darmstadt dot de *