3.0.2 build failure on RHELv5.1

Jeff Blaine jblaine at mitre.org
Mon Sep 22 12:45:29 CDT 2008


John W. Eaton wrote:
> On 18-Sep-2008, Jeff Blaine wrote:
> 
> | Any help would be great.  Our users are antsy :)
> | 
> | ==============================================================
> | 
> | Red Hat Enterprise Linux Server release 5.1 (Tikanga)
> | 
> | Linux beijing 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 
> | x86_64 x86_64 GNU/Linux
> | 
> | gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-14)
> | 
> | ==============================================================
> | 
> | % ./configure --prefix=/afs/rcf/apps/octave/amd64_linux26/3.01
> | ...
> | % make
> | ...
> | g++ -c  -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc 
> | -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -g -O2 Cell.cc -o 
> | pic/Cell.o
> | g++ -c  -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc 
> | -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -g -O2 bitfcns.cc -o 
> | pic/bitfcns.o
> | ../liboctave/oct-inttypes.h: In member function âoctave_int<T>& 
> | octave_int<T>::operator>>=(const T2&) [with T2 = int, T = unsigned char]â:
> | ../liboctave/oct-inttypes.h:541:   instantiated from âoctave_int<T> 
> | operator>>(const octave_int<T>&, const T2&) [with T1 = unsigned char, T2 
> | = int]â
> | ../liboctave/oct-inttypes.h:552:   instantiated from âoctave_int<T> 
> | bitshift(const octave_int<T>&, int, const octave_int<T>&) [with T = 
> | unsigned char]â
> | bitfcns.cc:461:   instantiated from here
> | ../liboctave/oct-inttypes.h:319: warning: comparison is always false due 
> | to limited range of data type
> | ../liboctave/oct-inttypes.h: In member function âoctave_int<T>& 
> | octave_int<T>::operator>>=(const T2&) [with T2 = int, T = short unsigned 
> | int]â:
> | ../liboctave/oct-inttypes.h:541:   instantiated from âoctave_int<T> 
> | operator>>(const octave_int<T>&, const T2&) [with T1 = short unsigned 
> | int, T2 = int]â
> | ../liboctave/oct-inttypes.h:552:   instantiated from âoctave_int<T> 
> | bitshift(const octave_int<T>&, int, const octave_int<T>&) [with T = 
> | short unsigned int]â
> | bitfcns.cc:463:   instantiated from here
> | ../liboctave/oct-inttypes.h:319: warning: comparison is always false due 
> | to limited range of data type
> | ../liboctave/oct-inttypes.h: In member function âoctave_int<T>& 
> | octave_int<T>::operator>>=(const T2&) [with T2 = int, T = unsigned int]â:
> | ../liboctave/oct-inttypes.h:541:   instantiated from âoctave_int<T> 
> | operator>>(const octave_int<T>&, const T2&) [with T1 = unsigned int, T2 
> | = int]â
> | ../liboctave/oct-inttypes.h:552:   instantiated from âoctave_int<T> 
> | bitshift(const octave_int<T>&, int, const octave_int<T>&) [with T = 
> | unsigned int]â
> | bitfcns.cc:465:   instantiated from here
> | ../liboctave/oct-inttypes.h:319: warning: comparison of unsigned 
> | expression < 0 is always false
> | ../liboctave/oct-inttypes.h: In member function âoctave_int<T>& 
> | octave_int<T>::operator>>=(const T2&) [with T2 = int, T = long unsigned 
> | int]â:
> | ../liboctave/oct-inttypes.h:541:   instantiated from âoctave_int<T> 
> | operator>>(const octave_int<T>&, const T2&) [with T1 = long unsigned 
> | int, T2 = int]â
> | ../liboctave/oct-inttypes.h:552:   instantiated from âoctave_int<T> 
> | bitshift(const octave_int<T>&, int, const octave_int<T>&) [with T = long 
> | unsigned int]â
> | bitfcns.cc:467:   instantiated from here
> | ../liboctave/oct-inttypes.h:319: warning: comparison of unsigned 
> | expression < 0 is always false
> | g++ -c  -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc 
> | -DHAVE_CONFIG_H  -Wall -W -Wshadow -Wold-style-cast -g -O2 
> | c-file-ptr-stream.cc -o pic/c-file-ptr-stream.o
> | c-file-ptr-stream.h: In member function âvoid c_zfile_ptr_buf::clear()â:
> | c-file-ptr-stream.h:189: error: âgzclearerrâ was not declared in this scope
> | c-file-ptr-stream.cc: At global scope:
> | c-file-ptr-stream.cc:130: warning: unused parameter âoffsetâ
> | c-file-ptr-stream.cc:130: warning: unused parameter âdirâ
> | c-file-ptr-stream.cc:147: warning: unused parameter âoffsetâ
> | c-file-ptr-stream.cc: In member function âint 
> | c_zfile_ptr_buf::underflow_common(bool)â:
> | c-file-ptr-stream.cc:231: error: âgzungetcâ was not declared in this scope
> | c-file-ptr-stream.cc: In member function âvirtual int 
> | c_zfile_ptr_buf::pbackfail(int)â:
> | c-file-ptr-stream.cc:247: error: âgzungetcâ was not declared in this scope
> 
> It looks like your version of zlib does not have the gzclearerr or
> gzungetc functions.  What version of zlib do you have?  Do you have
> the development package installed?
> 
> jwe

Hi John,

The zlib version that comes with RHEL5.1, which appears to be
1.2.3

octave-3.0.2:beijing> rpm -qa | grep zlib
zlib-1.2.3-3
zlib-1.2.3-3
zlib-devel-1.2.3-3
zlib-devel-1.2.3-3
octave-3.0.2:beijing>



More information about the Bug-octave mailing list