From bug-octave-request at bevo dot che dot wisc dot edu Sat Nov 22 06:35:40 2003 Subject: Can't compile Octave v2.1.9 on Suse Linux 7.2 From: Bernd Kalbfuss To: Bug Octave Date: Sat, 22 Nov 2003 13:35:06 +0100 Trying to compile Octave v2.1.9 (latest testing release) results in the following error message: make[2]: Entering directory `/home/kalbfuss/src/octave-2.1.9/liboctave' c++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -mieee-fp -fno-rtti -fno-exceptions -fno-implicit-templates -g -O2 -Wall data-conv.cc data-conv.cc: In function `void read_doubles(istream &, double *, save_type, int, int, oct_mach_info::float_format)': data-conv.cc:616: passing `volatile short unsigned int *' as argument 1 of `swap_2_bytes(void *, int)' discards qualifiers data-conv.cc:620: passing `volatile unsigned int *' as argument 1 of `swap_4_bytes(void *, int)' discards qualifiers data-conv.cc:628: passing `volatile short int *' as argument 1 of `swap_2_bytes(void *, int)' discards qualifiers data-conv.cc:632: passing `volatile int *' as argument 1 of `swap_4_bytes(void *, int)' discards qualifiers make[2]: *** [data-conv.o] Error 1 make[2]: Leaving directory `/home/kalbfuss/src/octave-2.1.9/liboctave' make[1]: *** [liboctave] Error 2 make[1]: Leaving directory `/home/kalbfuss/src/octave-2.1.9' make: *** [all] Error 2 I use gcc version 2.95.3 and the configure script returned no errors. I experienced the same problem on a Debian 3.0 with gcc from the v2.95.x series, too. Changing the declarations so that data-conc.cc compiles only results in similar errors in other source files. Do I need another compiler? Bernd ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------