[Pkg-octave-devel] Bug#504945: [CHANGESET] Fix compilation with g++ 4.4

Rafael Laboissiere rafael at debian.org
Sat Nov 8 13:00:07 UTC 2008


package octave3.0
tags 504945 upstream
found 504945 3.0.3-1
thanks

The patch attached below fixes Bug#504945 [1] reported against the
octave3.0 Debian package.  I confirm that the patch fixes the compilation
with g++ 4.4 of both versions 3.0.3 and 3.1.51.

The bug report also mention a failure to generate liboctinterp.so due to an
undefined reference to `std::ctype<char>::_M_widen_init'.  I did not
investigate this issue.

[1] http://bugs.debian.org/504945

-- 
Rafael
-------------- next part --------------
# HG changeset patch
# User Rafael Laboissiere <rafael at debian.org>
# Date 1226148116 -3600
# Node ID 5dad473eda487543584ae68eb1d5e567c95f7cdd
# Parent  ec969f3b8955140a79ee94c626ccdbb780daf61e
Include cstdio header.

Without this header inclusion, compilation of oct-md5.cc and gethelp.cc
with g++ 4.4 fails because symbols like sprintf, fopen, fread, fclose, and
EOF are not found.

diff -r ec969f3b8955 -r 5dad473eda48 liboctave/ChangeLog
--- a/liboctave/ChangeLog	Tue Nov 04 15:08:27 2008 +0100
+++ b/liboctave/ChangeLog	Sat Nov 08 13:41:56 2008 +0100
@@ -1,3 +1,7 @@ 2008-10-31  Jaroslav Hajek  <highegg at gma
+2008-11-08  Rafael Laboissiere  <rafael at debian.org>
+
+	* oct-md5.cc: Include cstdio, otherwise compilation with g++ 4.4 fails.
+
 2008-10-31  Jaroslav Hajek  <highegg at gmail.com>
 
 	* oct-norm.h: New header file.
diff -r ec969f3b8955 -r 5dad473eda48 liboctave/oct-md5.cc
--- a/liboctave/oct-md5.cc	Tue Nov 04 15:08:27 2008 +0100
+++ b/liboctave/oct-md5.cc	Sat Nov 08 13:41:56 2008 +0100
@@ -20,6 +20,7 @@ along with Octave; see the file COPYING.
 
 */
 
+#include <cstdio>
 #include <string>
 #include <vector>
 
diff -r ec969f3b8955 -r 5dad473eda48 scripts/ChangeLog
--- a/scripts/ChangeLog	Tue Nov 04 15:08:27 2008 +0100
+++ b/scripts/ChangeLog	Sat Nov 08 13:41:56 2008 +0100
@@ -1,3 +1,7 @@ 2008-09-28  Jaroslav Hajek <highegg at gmai
+2008-11-08  Rafael Laboissiere  <rafael at debian.org>
+
+	* gethelp.cc: Include cstdio, otherwise compilation with g++ 4.4 fails.
+
 2008-09-28  Jaroslav Hajek <highegg at gmail.com>
 
 	* optimization/__fdjac__.m: New function file.
diff -r ec969f3b8955 -r 5dad473eda48 scripts/gethelp.cc
--- a/scripts/gethelp.cc	Tue Nov 04 15:08:27 2008 +0100
+++ b/scripts/gethelp.cc	Sat Nov 08 13:41:56 2008 +0100
@@ -24,6 +24,7 @@ along with Octave; see the file COPYING.
 #define __USE_STD_IOSTREAM
 #endif
 
+#include <cstdio>
 #include <string>
 #include <iostream>
 


More information about the Pkg-octave-devel mailing list