PDA

View Full Version : Point.h error message



Tawnosi
05-25-2004, 02:16 PM
I've tried searching on this but i'm sure there is something i've missed. I'm using redhat 7.3 and attempting to compile showeq version 4.3.21.

[root@localhost showeq]# gcc -v
Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/specs
Configured with: ./configure
Thread model: posix
gcc version 3.4.0
[root@localhost showeq]# g++ -v
Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/specs
Configured with: ./configure
Thread model: posix
gcc version 3.4.0
[root@localhost showeq]# make -f Makefile.dist
Adding libtool support...................................... done!
Generating aclocal.m4 from configure.in and acinclude.m4.... done!

Checking Autoheader version................................. done!
>> Using Autoheader version................................. 2.13!

Generating configure template (config.h).................... done!
Generating Makefile.in from Makefile.am..................... done!

Checking Autoconf version................................... done!
>> Using Autoconf version................................... 2.13!

Finalizing Autoconf script (configure)...................... done!
Releasing temporary file handles............................ done!


******************************************
Success! Please type the following:

./configure && make


This will configure and compile ShowEQ...

If you are installing ShowEQ for the first
time, be sure to add '&& make install' to
the end of the compile process...
******************************************

[root@localhost showeq]# ./configure
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for /usr/local/bin/gcc... no
checking for gcc... gcc
checking for /usr/local/bin/g++... no
checking for g++... g++
checking for supported compiler version... yes
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... g++
checking whether the C++ compiler (g++ ) works... yes
checking whether the C++ compiler (g++ ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for working const... 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 Cygwin environment... no
checking for mingw32 environment... no
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 how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if 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... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for supported libc version... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for IceConnectionNumber in -lICE... yes
checking for libXext... yes
checking for libpng... -lpng -lz -lm
checking for Qt... yes
>> Found version.: 3.3.2
>>> Headers......: /usr/local/qt/include/
>>>> Libraries...: /usr/local/qt/lib/
>>>>> Workable...: -*{ YES }*-
checking for Qt MOC... yes
checking if Qt compiles without flags... no
checking for pthread_create in -lpthread... yes
setting Linux pthread compilation options
checking for pcap_open_live in -lpcap... yes
checking for gdImageCreate in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for inflate in -lz... yes
checking for gdbm_open in -lgdbm... yes
checking how to run the C++ preprocessor... g++ -E
checking for ANSI C header files... no
checking for deque... yes
checking for size_t... yes
checking whether to enable debugging code and flags... yes
checking whether to build with optimization enabled... yes
checking whether to build with code inlined... yes
checking whether to build with profiling... no
checking whether to build with Berkeley DB3... no
checking whether to build for use with the test server... no
checking for rpath... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating maps/Makefile
creating conf/Makefile
creating conf.h
Success!
Please run:
make
[root@localhost showeq]# make
make all-recursive
make[1]: Entering directory `/home/jay/showeq'
Making all in maps
make[2]: Entering directory `/home/jay/showeq/maps'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/jay/showeq/maps'
Making all in src
make[2]: Entering directory `/home/jay/showeq/src'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/qt/include -I/usr/X11R6/include -DMAPDIR=\"/usr/local/share/showeq\" -DLOGDIR=\"/usr/local/share/showeq\" -I/usr/include/pcap -D_REENTRANT -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -DDISPLAY_ICONS=false -DICON_DIR=\"/eq-icons/\" -c main.cpp
In file included from spawn.h:33,
from spawnlistcommon.h:26,
from spawnlist.h:47,
from interface.h:33,
from main.cpp:34:
point.h:134: error: non-template `Point3D' used as template
point.h:134: error: (use `Point3D<_T>::template Point3D' to indicate that it is a template)
point.h:312: error: expected class-name before ';' token
point.h:312: error: variable or field `Point3D' declared void
point.h:312: error: `Point3D<_T>::Point3D' declared as an `inline' variable
point.h:312: error: `int Point3D<_T>::Point3D' is not a static member of `class Point3D<_T>'
point.h:312: error: template definition of non-template `int Point3D<_T>::Point3D'
point.h:315: error: expected init-declarator before '<' token
point.h:315: error: expected `;' before '<' token
point.h:321: error: expected init-declarator before '<' token
point.h:321: error: expected `;' before '<' token
point.h:351: error: expected init-declarator before '<' token
point.h:351: error: expected `;' before '<' token
point.h:360: error: expected init-declarator before '<' token
point.h:360: error: expected `;' before '<' token
point.h:366: error: expected init-declarator before '<' token
point.h:366: error: expected `;' before '<' token
point.h:372: error: expected init-declarator before '<' token
point.h:372: error: expected `;' before '<' token
point.h:378: error: expected init-declarator before '<' token
point.h:378: error: expected `;' before '<' token
point.h:392: error: expected init-declarator before '<' token
point.h:392: error: expected `;' before '<' token
point.h:423: error: expected init-declarator before '<' token
point.h:423: error: expected `;' before '<' token
point.h:438: error: expected init-declarator before '<' token
point.h:438: error: expected `;' before '<' token
point.h:470: error: expected init-declarator before '<' token
point.h:470: error: expected `;' before '<' token
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/jay/showeq/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jay/showeq'
make: *** [all-recursive-am] Error 2

Any ideas, even with flames and directions to hookedonphonics?

LordCrush
05-25-2004, 11:37 PM
4.x does not work any longer. You need to get 5.0.0.8 from CVS

Tawnosi
05-26-2004, 07:39 AM
I tried it again with the 5.0.0.8 version from the cvs and got pretty much the same thing just with different line numbers:

[root@localhost showeq]# make
make all-recursive
make[1]: Entering directory `/home/jay/showeq'
Making all in maps
make[2]: Entering directory `/home/jay/showeq/maps'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/jay/showeq/maps'
Making all in src
make[2]: Entering directory `/home/jay/showeq/src'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/qt/include -I/usr/X11R6/include -DPKGDATADIR=\"/usr/local/share/showeq/\" -I/usr/include/pcap -D_REENTRANT -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -DDISPLAY_ICONS=false -DICON_DIR=\"/eq-icons/\" -c main.cpp
In file included from spawn.h:33,
from spawnlistcommon.h:26,
from spawnlist.h:47,
from interface.h:33,
from main.cpp:39:
point.h:143: error: non-template `Point3D' used as template
point.h:143: error: (use `Point3D<_T>::template Point3D' to indicate that it is a template)
point.h:329: error: expected class-name before ';' token
point.h:329: error: variable or field `Point3D' declared void
point.h:329: error: `Point3D<_T>::Point3D' declared as an `inline' variable
point.h:329: error: `int Point3D<_T>::Point3D' is not a static member of `class Point3D<_T>'
point.h:329: error: template definition of non-template `int Point3D<_T>::Point3D'
point.h:332: error: expected init-declarator before '<' token
point.h:332: error: expected `;' before '<' token
point.h:338: error: expected init-declarator before '<' token
point.h:338: error: expected `;' before '<' token
point.h:368: error: expected init-declarator before '<' token
point.h:368: error: expected `;' before '<' token
point.h:377: error: expected init-declarator before '<' token
point.h:377: error: expected `;' before '<' token
point.h:383: error: expected init-declarator before '<' token
point.h:383: error: expected `;' before '<' token
point.h:389: error: expected init-declarator before '<' token
point.h:389: error: expected `;' before '<' token
point.h:395: error: expected init-declarator before '<' token
point.h:395: error: expected `;' before '<' token
point.h:409: error: expected init-declarator before '<' token
point.h:409: error: expected `;' before '<' token
point.h:440: error: expected init-declarator before '<' token
point.h:440: error: expected `;' before '<' token
point.h:455: error: expected init-declarator before '<' token
point.h:455: error: expected `;' before '<' token
point.h:487: error: expected init-declarator before '<' token
point.h:487: error: expected `;' before '<' token
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/jay/showeq/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jay/showeq'
make: *** [all-recursive-am] Error 2

uRit1u2CBBA=
05-26-2004, 11:23 AM
Any unusuall messages show up in the ./configure?

You might have an old version of something.

Tawnosi
05-26-2004, 09:38 PM
Nothing looks out of the ordinary to me but i prolly wouldn't recognize anything without a glowing neon sign. This is from attempting the 5.0.0.8 version and looks pretty much like the previous attempt:

[root@localhost showeq]# make -f Makefile.dist

Clearing all old Makefile data.............................. done!


Adding libtool support...................................... done!
Generating aclocal.m4 from configure.in and acinclude.m4.... done!

Checking Autoheader version................................. done!
>> Using Autoheader version................................. 2.13!

Generating configure template (config.h).................... done!
Generating Makefile.in from Makefile.am..................... done!

Checking Autoconf version................................... done!
>> Using Autoconf version................................... 2.13!

Finalizing Autoconf script (configure)...................... done!
Releasing temporary file handles............................ done!


******************************************
Success! Please type the following:

./configure && make


This will configure and compile ShowEQ...

If you are installing ShowEQ for the first
time, be sure to add '&& make install' to
the end of the compile process...
******************************************

[root@localhost showeq]# ./configure
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for /usr/local/bin/gcc... no
checking for gcc... gcc
checking for /usr/local/bin/g++... no
checking for g++... g++
checking for supported compiler version... yes
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... g++
checking whether the C++ compiler (g++ ) works... yes
checking whether the C++ compiler (g++ ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for working const... 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 Cygwin environment... no
checking for mingw32 environment... no
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 how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if 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... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for supported libc version... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for IceConnectionNumber in -lICE... yes
checking for libXext... yes
checking for libpng... -lpng -lz -lm
checking for Qt... yes
>> Found version.: 3.3.2
>>> Headers......: /usr/local/qt/include/
>>>> Libraries...: /usr/local/qt/lib/
>>>>> Workable...: -*{ YES }*-
checking for Qt MOC... yes
checking for Qt UIC... yes
checking if Qt compiles without flags... no
checking for pthread_create in -lpthread... yes
setting Linux pthread compilation options
checking for pcap_open_live in -lpcap... yes
checking for gdImageCreate in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for inflate in -lz... yes
checking for gdbm_open in -lgdbm... yes
checking how to run the C++ preprocessor... g++ -E
checking for ANSI C header files... no
checking for deque... yes
checking for size_t... yes
checking whether to enable debugging code and flags... yes
checking whether to build with optimization enabled... yes
checking whether to build with code inlined... yes
checking whether to build with profiling... no
checking whether to build with Berkeley DB3... no
checking whether to build for use with the test server... no
checking for rpath... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating maps/Makefile
creating conf/Makefile
creating conf.h
Success!
Please run:
make
[root@localhost showeq]#