[MINC-users] Building EBTKS

Andrew Janke andrew_janke@iinet.net.au
Wed Dec 8 06:55:06 2004


Which version of gcc is /usr/bin/gcc?

There have been a number of template problems with EBTKS and gcc, the most 
reliable thing to do seems to be to use at least gcc 3.3

a

On Tue, 7 Dec 2004, Beau Sapach wrote:

> I'm having some trouble building EBTKS 1.3.  ./configure seems to run just
> fine but make fails.  Has anyone seen this before?  Any help would be much
> appreciated!  Thanks!
>
> Beau
>
> ******** variables ****************
>
> CC=/usr/bin/gcc
> CXX=/usr/bin/c++
>
>
> ******** configure output **********
>
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether ln -s works... yes
> checking whether make sets $(MAKE)... (cached) yes
> checking for gcc... /usr/bin/gcc
> checking for C compiler default output... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether /usr/bin/gcc accepts -g... yes
> checking for /usr/bin/gcc option to accept ANSI C... none needed
> checking for style of include used by make... GNU
> checking dependency style of /usr/bin/gcc... gcc3
> checking whether we are using the GNU C++ compiler... yes
> checking whether /usr/bin/c++ accepts -g... yes
> checking dependency style of /usr/bin/c++... gcc3
> checking how to run the C preprocessor... /usr/bin/gcc -E
> checking for egrep... grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking values.h usability... yes
> checking values.h presence... yes
> checking for values.h... yes
> checking malloc.h usability... yes
> checking malloc.h presence... yes
> checking for malloc.h... yes
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking for ld used by GCC... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking for /usr/bin/ld option to reload object files... -r
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking for a sed that does not truncate output... /bin/sed
> checking how to recognise dependent libraries... pass_all
> checking command to parse /usr/bin/nm -B output... ok
> checking dlfcn.h usability... yes
> checking dlfcn.h presence... yes
> checking for dlfcn.h... yes
> checking for ranlib... ranlib
> checking for strip... strip
> checking for objdir... .libs
> checking for /usr/bin/gcc option to produce PIC... -fPIC
> checking if /usr/bin/gcc PIC flag -fPIC works... yes
> checking if /usr/bin/gcc static flag -static works... yes
> checking if /usr/bin/gcc supports -c -o file.o... yes
> checking if /usr/bin/gcc supports -c -o file.lo... yes
> checking if /usr/bin/gcc supports -fno-rtti -fno-exceptions... yes
> checking whether the linker (/usr/bin/ld) supports shared libraries... yes
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... no
> checking whether to build static libraries... yes
> creating libtool
> checking for finite... yes
> checking for isfinite... no
> checking for mkstemp... yes
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating config.h
> config.status: executing depfiles commands
>
>
> ******** make output *************
>
> make  all-am
> make[1]: Entering directory `/root/EBTKS-1.3'
> if /bin/sh ./libtool --mode=compile /usr/bin/c++ -DHAVE_CONFIG_H -I. -I. -I.
> -I./include -I./templates -DUSE_COMPMAT -DUSE_DBLMAT   -g -O2 -MT version.lo
> -MD -MP -MF ".deps/version.Tpo" \
>  -c -o version.lo `test -f 'version.cc' || echo './'`version.cc; \
> then mv ".deps/version.Tpo" ".deps/version.Plo"; \
> else rm -f ".deps/version.Tpo"; exit 1; \
> fi
> /usr/bin/c++ -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./templates
> -DUSE_COMPMAT -DUSE_DBLMAT -g -O2 -MT version.lo -MD -MP -MF
> .deps/version.Tpo -c version.cc -o version.o
> echo timestamp > version.lo
> if /bin/sh ./libtool --mode=compile /usr/bin/c++ -DHAVE_CONFIG_H -I. -I. -I.
> -I./include -I./templates -DUSE_COMPMAT -DUSE_DBLMAT   -g -O2 -MT FileIO.lo
> -MD -MP -MF ".deps/FileIO.Tpo" \
>  -c -o FileIO.lo `test -f 'src/FileIO.cc' || echo './'`src/FileIO.cc; \
> then mv ".deps/FileIO.Tpo" ".deps/FileIO.Plo"; \
> else rm -f ".deps/FileIO.Tpo"; exit 1; \
> fi
> /usr/bin/c++ -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./templates
> -DUSE_COMPMAT -DUSE_DBLMAT -g -O2 -MT FileIO.lo -MD -MP -MF .deps/FileIO.Tpo
> -c src/FileIO.cc -o FileIO.o
> In file included from ./include/trivials.h:42,
>                 from ./templates/SimpleArray.h:23,
>                 from ./include/MString.h:24,
>                 from ./include/Path.h:23,
>                 from ./include/FileIO.h:26,
>                 from src/FileIO.cc:21:
> ./templates/miscTemplateFunc.h: In function `Histogram& add(Histogram&,
> const SimpleArray<Type>&)':
> ./templates/miscTemplateFunc.h:102: error: invalid use of undefined type
> `struct Histogram'
> ./templates/miscTemplateFunc.h:28: error: forward declaration of `struct
> Histogram'
> In file included from ./include/MString.h:24,
>                 from ./include/Path.h:23,
>                 from ./include/FileIO.h:26,
>                 from src/FileIO.cc:21:
> ./templates/SimpleArray.h: In member function `unsigned int
> SimpleArray<Type>::occurrencesOf(Type) const':
> ./templates/SimpleArray.h:100: error: `_size' undeclared (first use this
> function)
> ./templates/SimpleArray.h:100: error: (Each undeclared identifier is
> reported only once for each function it appears in.)
> ./templates/SimpleArray.h: In member function `int
> SimpleArray<Type>::indexOf(Type, int) const':
> ./templates/SimpleArray.h:106: error: `_size' undeclared (first use this
> function)
> ./templates/SimpleArray.h: In member function `virtual void
> SimpleArray<Type>::qsort(int (*)(const void*, const void*))':
> ./templates/SimpleArray.h:130: error: `_contents' undeclared (first use this
> function)
> ./templates/SimpleArray.h:130: error: `_size' undeclared (first use this
> function)
> ./templates/SimpleArray.h: In member function `virtual void
> SimpleArray<Type>::qsortAscending()':
> ./templates/SimpleArray.h:132: error: `_contents' undeclared (first use this
> function)
> ./templates/SimpleArray.h:132: error: `_size' undeclared (first use this
> function)
> ./templates/SimpleArray.h: In member function `virtual void
> SimpleArray<Type>::qsortDescending()':
> ./templates/SimpleArray.h:134: error: `_contents' undeclared (first use this
> function)
> ./templates/SimpleArray.h:134: error: `_size' undeclared (first use this
> function)
> ./templates/SimpleArray.h: In member function `double
> SimpleArray<Type>::mean() const':
> ./templates/SimpleArray.h:144: error: `_size' undeclared (first use this
> function)
> ./templates/SimpleArray.h: In member function `SimpleArray<Type>
> SimpleArray<Type>::operator-() const':
> ./templates/SimpleArray.h:190: error: `_size' undeclared (first use this
> function)
> make[1]: *** [FileIO.lo] Error 1
> make[1]: Leaving directory `/root/EBTKS-1.3'
> make: *** [all] Error 2
>
>
> _______________________________________________
> MINC-users@bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>
>

--
Andrew Janke (andrew_janke@iinet.net DOT au || www.cmr.uq.edu.au/~rotor) 
Australia->Brisbane            H: +61 7 3390 6332  || M: +61 4 2138 8581