Bug 126157 - octave 2.1.72 fails with gcc 4.1
Bug#: 126157 Product:  Gentoo Linux Version: 2005.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: sci@gentoo.org Reported By: hetfield666@gmail.com
Component: GCC Porting
URL: 
Summary: octave 2.1.72 fails with gcc 4.1
Keywords:  
Status Whiteboard: 
Opened: 2006-03-14 07:00 0000
Description:   Opened: 2006-03-14 07:00 0000
i686-pc-linux-gnu-g++ -c  -fPIC -I. -I.. -I../liboctave -I../src
-I../libcruft/misc  -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O3
-mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse
CMatrix.cc -o pic/CMatrix.o
CMatrix.cc: In function ‘ComplexMatrix operator*(const ColumnVector&,
const ComplexRowVector&)’:
CMatrix.cc:2263: error: conversion from ‘Complex’ to non-scalar
type ‘ComplexMatrix’ requested
CMatrix.cc: In function ‘ComplexMatrix operator*(const
ComplexColumnVector&, const RowVector&)’:
CMatrix.cc:2270: error: conversion from ‘Complex’ to non-scalar
type ‘ComplexMatrix’ requested
make[2]: *** [pic/CMatrix.o] Error 1
make[2]: Leaving directory
`/var/tmp/portage/octave-2.1.72/work/octave-2.1.72/liboctave'
make[1]: *** [liboctave] Error 2
make[1]: Leaving directory `/var/tmp/portage/octave-2.1.72/work/octave-2.1.72'
make: *** [all] Error 2


a fix should be here:

http://www.octave.org/mailing-lists/bug-octave/2006/243

please check

------- Comment #1 From Patrizio Bassi 2006-03-14 07:12:19 0000 -------
here the cleaner patch.

http://www.octave.org/octave-lists/archive/bug-octave.2006/msg00234.html

------- Comment #2 From Markus Dittrich 2006-03-14 13:28:33 0000 -------
Hi Patrizio,

Thanks for the patch! I tested it and it seems to work fine.
It is in portage CVS now.

Thanks,
Markus

------- Comment #3 From Gunnlaugur Thor Briem 2006-09-27 16:06:24 0000 -------
Typo in summary; should be 2.1.72

------- Comment #4 From Markus Dittrich 2006-09-28 05:51:49 0000 -------
(In reply to comment #3)
> Typo in summary; should be 2.1.72
> 

Yeah, that's right, thanks for pointing it out :)

Markus

------- Comment #5 From Markus Dittrich 2006-09-28 05:54:14 0000 -------
Sorry, messed it up again! I better get some coffee!