Bug#362423: [tbm@cyrius.com: [Pkg-octave-devel] Bug#362219: FTBFS with GCC 4.2: ambiguous overload for 'operator==']

John W. Eaton jwe at bevo.che.wisc.edu
Tue Sep 5 14:36:55 UTC 2006


On  3-Sep-2006, Rafael Laboissiere wrote:

| package octave2.1
| forwarded 362423 bug at octave.org
| tags 362423 upstream
| thanks
| 
| * Rafael Laboissiere <rafael at debian.org> [2006-04-12 23:55]:
| 
| > I am forwarding below a bug report filed against the octave2.9 Debian
| > package.  I have not checked the problems myself, but Martin Milchmayr is
| > doing a very good job on building the Debian packages with the prospective
| > gcc compiler.
| 
| This is just to register that the same problem has been reported against
| the octave2.1 package.  See http://bugs.debian.org/362423

Does the following patch help?  I think this is how we avoided the
problem for 2.9.x.

jwe


src/ChangeLog:

2006-09-05  John W. Eaton  <jwe at octave.org>

	* load-save.cc (Fsave): Use tellp instead of pubseekoff to
	determine whether we are at beginning of file.


Index: src/load-save.cc
===================================================================
RCS file: /cvs/octave/src/load-save.cc,v
retrieving revision 1.191.2.8
diff -u -u -r1.191.2.8 load-save.cc
--- src/load-save.cc	18 Oct 2005 17:31:01 -0000	1.191.2.8
+++ src/load-save.cc	5 Sep 2006 14:35:33 -0000
@@ -1478,9 +1478,7 @@
 	  
 	  if (file)
 	    {
-	      bool write_header_info
-		= ((file.rdbuf ())->pubseekoff (0, std::ios::cur)
-		   == static_cast<std::streampos> (0));
+	      bool write_header_info = ! file.tellp ();
 	      
 	      save_vars (argv, i, argc, file, save_builtins, format,
 			 save_as_floats, write_header_info);




More information about the Pkg-octave-devel mailing list