From bug-octave-request at bevo dot che dot wisc dot edu Tue Jan 13 13:22:40 2004 Subject: [Compilation error with --without-hdf5 flag] From: Petter Risholm To: bug-octave at bevo dot che dot wisc dot edu Date: Tue, 13 Jan 2004 20:22:03 +0100 (MET) Bug report for Octave 2.1.52 configured for i686-pc-linux-gnu Description: ----------- * When I run configure with the --without-hdf5 flag I get a error during compilation. I have hdf5 installed and Octave compiles correctly when I don't use the --without-hdf5 flag, however it didn't compile prior to installing hdf5 (running configure without any flags). g++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc -I../glob -I../glob -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -g -O2 ov-list.cc -o ov-list.o In file included from ov-list.cc:45: ls-hdf5.h:38: 'hid_t' is used as a type, but is not defined as a type. ls-hdf5.h: In constructor `hdf5_fstreambase::hdf5_fstreambase()': ls-hdf5.h:43: `file_id' undeclared (first use this function) ls-hdf5.h:43: (Each undeclared identifier is reported only once for each function it appears in.) ls-hdf5.h: In constructor `hdf5_fstreambase::hdf5_fstreambase(const char*, int, int)': ls-hdf5.h:48: `H5F_ACC_RDONLY' undeclared (first use this function) ls-hdf5.h:48: `H5P_DEFAULT' undeclared (first use this function) ls-hdf5.h:48: `H5Fopen' undeclared (first use this function) ls-hdf5.h:50: `H5F_ACC_TRUNC' undeclared (first use this function) ls-hdf5.h:50: `H5Fcreate' undeclared (first use this function) ls-hdf5.h: In member function `void hdf5_fstreambase::close()': ls-hdf5.h:62: `H5Fclose' undeclared (first use this function) ls-hdf5.h: At global scope: ls-hdf5.h:142: syntax error before `(' token ls-hdf5.h:145: `hid_t' was not declared in this scope ls-hdf5.h:145: syntax error before `,' token ls-hdf5.h:148: syntax error before `(' token ls-hdf5.h:151: `hid_t' was not declared in this scope ls-hdf5.h:151: syntax error before `,' token Repeat-By: --------- * ./configure --without-hdf5 && make Fix: --- * If possible, replace this item with a description of how to fix the problem (if you don't have a fix for the problem, don't include this section, but please do submit your report anyway). Configuration (please do not edit this section): ----------------------------------------------- uname output: SunOS vier.idi.ntnu.no 5.9 Generic_112233-07 sun4u sparc SUNW,Ultra-4 configure opts: '--without-hdf5' 'CC=gcc' 'CXX=g++' Fortran compiler: g77 FFLAGS: -O F2C: F2CFLAGS: FLIBS: -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3 -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../.. -lfrtbegin -lg2c -lm -lgcc_s CPPFLAGS: INCFLAGS: -I. -I. -I./liboctave -I./src -I./libcruft/misc -I./glob -I./glob C compiler: gcc, version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice) CFLAGS: -g -O2 CPICFLAG: -fPIC C++ compiler: g++, version 3.2.3 CXXFLAGS: -g -O2 CXXPICFLAG: -fPIC LD_CXX: g++ LDFLAGS: LIBFLAGS: -L. RLD_FLAG: -Wl,-rpath -Wl,/usr/local/lib/octave-2.1.52 BLAS_LIBS: FFTW_LIBS: LIBS: -lreadline -lncurses -lm LEXLIB: LIBPLPLOT: LIBDLFCN: LIBGLOB: ./glob/glob.o ./glob/fnmatch.o SED: /bin/sed DEFS: -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DOCTAVE_SOURCE=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSEPCHAR=1 -DSEPCHAR_STR=":" -D__NO_MATH_INLINES=1 -DCXX_NEW_FRIEND_TEMPLATE_DECL=1 -DCXX_ISO_COMPLIANT_LIBRARY=1 -DCXX_ABI=gnu_v3 -DHAVE_LIBM=1 -DF77_FUNC(name,NAME)=name ## _ -DF77_FUNC_(name,NAME)=name ## __ -DHAVE_GETHOSTNAME=1 -DHAVE_GETPWNAM=1 -DHAVE_DEV_T=1 -DHAVE_INO_T=1 -DHAVE_NLINK_T=1 -DHAVE_NLINK_T=1 -DHAVE_LONG_LONG_INT=1 -DHAVE_UNSIGNED_LONG_LONG_INT=1 -DHAVE_SIGSET_T=1 -DHAVE_SIG_ATOMIC_T=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DNPOS=std::string::npos -DHAVE_PLACEMENT_DELETE=1 -DHAVE_DYNAMIC_AUTO_ARRAYS=1 -DSTDC_HEADERS=1 -DHAVE_DIRENT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_ASSERT_H=1 -DHAVE_CURSES_H=1 -DHAVE_D ------------------------------------------------------------- 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 -------------------------------------------------------------