PDA

View Full Version : Beta 5.0.0.3 spawn.cpp



Elyon
12-22-2003, 05:15 PM
During compile, I don;t know if this effects anything or not, but I see the following:


spawn.cpp: In function 'Qstring print_item)short unsigned int)':
spawn.cpp:90: warning: comparison us always true due to limited range of data type.

Same thing for lines 96, 102, 108 and 114.

Zaphod
12-22-2003, 08:51 PM
Originally posted by Elyon
During compile, I don;t know if this effects anything or not, but I see the following:


spawn.cpp: In function 'Qstring print_item)short unsigned int)':
spawn.cpp:90: warning: comparison us always true due to limited range of data type.

Same thing for lines 96, 102, 108 and 114.

What compiler version?

Enjoy,
Zaphod (dohpaZ)

Elyon
12-22-2003, 09:57 PM
Deafult of what comes in Fedora Core,

QT 3.1.2 and GCC 3.3.2

Zaphod
12-22-2003, 10:31 PM
Ugh... So far I have been singularly unimpressed with gcc 3.3.x. This is a regression in the behaviour of the compiler from previous versions. In this context those value should all be in range (since all values from the formulas used in the comparisons have values less then 255) and regardless of the range of the smallest operand in those comparisons the "Usual arithmetic conversion" rules should be applied in this context per both the ISO C++ and C standards. This could indeed effect how the code works in a negative fashion.

Oh joy, yet another bug in gcc 3.3.x to workaround and get around to writing up a bug report on.

Enjoy,
Zaphod (dohpaZ)

Archaeopteryx
12-26-2003, 10:44 PM
Work around is installing an earlier version of gcc ?

Zaphod
12-26-2003, 11:12 PM
Originally posted by Archaeopteryx
Work around is installing an earlier version of gcc ?

Don't worry about it for now. Shouldn't cause too many problems...

Enjoy,
Zaphod (dohpaZ)

Archaeopteryx
12-27-2003, 01:06 AM
It's causing tons of trouble for me any help, as usual, is greatly appreciated.


[root@somecomp]# make clean
Making clean in .
make[1]: Entering directory `/root/showeq'
test -z "configure.dbg libqt2.dbg libqt3.dbg" || rm -f configure.dbg libqt2.dbg libqt3.dbg
make[1]: Leaving directory `/root/showeq'
Making clean in conf
make[1]: Entering directory `/root/showeq/conf'
make[1]: Nothing to be done for `clean'.
make[1]: Leaving directory `/root/showeq/conf'
Making clean in src
make[1]: Entering directory `/root/showeq/src'
test -z "showeq showeqitemdbtool" || rm -f showeq showeqitemdbtool
test -z "sortitem" || rm -f sortitem
rm -rf .libs _libs
test -z "m_packet.cpp m_packetstream.cpp m_spawnshell.cpp m_spawnlist.cpp m_spellshell.cpp m_spelllist.cpp m_editor.cpp m_interface.cpp m_compass.cpp m_map.cpp
[root@somecomp]# ./configure && make
loading 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... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc-3.3.1... (cached) gcc-3.3.1
checking for gcc-c++-3.3.1... (cached) g++
checking for supported compiler version... yes
checking for gcc... (cached) gcc-3.3.1
checking whether the C compiler (gcc-3.3.1 ) works... yes
checking whether the C compiler (gcc-3.3.1 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc-3.3.1 accepts -g... (cached) yes
checking for c++... (cached) 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++... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc-3.3.1 -E
checking for working const... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking for a sed that does not truncate output... (cached) /bin/sed
checking how to recognise dependent libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking command to parse /usr/bin/nm -B output... (cached) ok
checking for dlfcn.h... (cached) yes
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
checking for objdir... .libs
checking for gcc-3.3.1 option to produce PIC... (cached) -fPIC
checking if gcc-3.3.1 PIC flag -fPIC works... (cached) yes
checking if gcc-3.3.1 static flag -static works... (cached) yes
checking if gcc-3.3.1 supports -c -o file.o... (cached) yes
checking if gcc-3.3.1 supports -c -o file.lo... (cached) yes
checking if gcc-3.3.1 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... (cached) no
creating libtool
checking for supported libc version... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... (cached) -lz
(cached) checking for IceConnectionNumber in -lICE... (cached) yes
checking for libXext... (cached) yes
checking for libpng... (cached) -lpng -lz -lm
checking for Qt... yes
>> Found version.: 3.1.2
>>> Headers......: /usr/lib/qt3/include/
>>>> Libraries...: /usr/lib/qt3/lib/
>>>>> Workable...: -*{ YES }*-
checking for Qt MOC... yes
checking if Qt compiles without flags... no
checking for pthread_create in -lpthread... (cached) yes
setting Linux pthread compilation options
checking for pcap_open_live in -lpcap... (cached) yes
checking for gdImageCreate in -lgd... (cached) no
checking for gdImagePng in -lgd... (cached) no
checking for inflate in -lz... (cached) yes
checking for gdbm_open in -lgdbm... (cached) yes
checking how to run the C++ preprocessor... (cached) g++ -E
checking for ANSI C header files... (cached) yes
checking for deque... (cached) yes
checking for size_t... (cached) 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
conf.h is unchanged
Success!
Please run:
make
make all-recursive
make[1]: Entering directory `/root/showeq'
Making all in maps
make[2]: Entering directory `/root/showeq/maps'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/showeq/maps'
Making all in src
make[2]: Entering directory `/root/showeq/src'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3/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
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3/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 spawn.cpp
spawn.cpp: In function `QString print_item(short unsigned int)':
spawn.cpp:90: warning: comparison is always true due to limited range of data type
spawn.cpp:96: warning: comparison is always true due to limited range of data type
spawn.cpp:102: warning: comparison is always true due to limited range of data type
spawn.cpp:108: warning: comparison is always true due to limited range of data type
spawn.cpp:114: warning: comparison is always true due to limited range of data type
spawn.cpp: In member function `void Drop::update(const makeDropStruct*, const QString&)':
spawn.cpp:1033: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://qa.mandrakesoft.com/> for instructions.
make[2]: *** [spawn.o] Error 1
make[2]: Leaving directory `/root/showeq/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/showeq'
make: *** [all-recursive-am] Error 2

Archaeopteryx
12-27-2003, 01:23 AM
It's causing tons of trouble for me any help, as usual, is greatly appreciated.


[root@somecomp]# make clean
Making clean in .
make[1]: Entering directory `/root/showeq'
test -z "configure.dbg libqt2.dbg libqt3.dbg" || rm -f configure.dbg libqt2.dbg libqt3.dbg
make[1]: Leaving directory `/root/showeq'
Making clean in conf
make[1]: Entering directory `/root/showeq/conf'
make[1]: Nothing to be done for `clean'.
make[1]: Leaving directory `/root/showeq/conf'
Making clean in src
make[1]: Entering directory `/root/showeq/src'
test -z "showeq showeqitemdbtool" || rm -f showeq showeqitemdbtool
test -z "sortitem" || rm -f sortitem
rm -rf .libs _libs
test -z "m_packet.cpp m_packetstream.cpp m_spawnshell.cpp m_spawnlist.cpp m_spellshell.cpp m_spelllist.cpp m_editor.cpp m_interface.cpp m_compass.cpp m_map.cpp
[root@somecomp]# ./configure && make
loading 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... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc-3.3.1... (cached) gcc-3.3.1
checking for gcc-c++-3.3.1... (cached) g++
checking for supported compiler version... yes
checking for gcc... (cached) gcc-3.3.1
checking whether the C compiler (gcc-3.3.1 ) works... yes
checking whether the C compiler (gcc-3.3.1 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc-3.3.1 accepts -g... (cached) yes
checking for c++... (cached) 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++... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc-3.3.1 -E
checking for working const... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking for a sed that does not truncate output... (cached) /bin/sed
checking how to recognise dependent libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking command to parse /usr/bin/nm -B output... (cached) ok
checking for dlfcn.h... (cached) yes
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
checking for objdir... .libs
checking for gcc-3.3.1 option to produce PIC... (cached) -fPIC
checking if gcc-3.3.1 PIC flag -fPIC works... (cached) yes
checking if gcc-3.3.1 static flag -static works... (cached) yes
checking if gcc-3.3.1 supports -c -o file.o... (cached) yes
checking if gcc-3.3.1 supports -c -o file.lo... (cached) yes
checking if gcc-3.3.1 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... (cached) no
creating libtool
checking for supported libc version... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... (cached) -lz
(cached) checking for IceConnectionNumber in -lICE... (cached) yes
checking for libXext... (cached) yes
checking for libpng... (cached) -lpng -lz -lm
checking for Qt... yes
>> Found version.: 3.1.2
>>> Headers......: /usr/lib/qt3/include/
>>>> Libraries...: /usr/lib/qt3/lib/
>>>>> Workable...: -*{ YES }*-
checking for Qt MOC... yes
checking if Qt compiles without flags... no
checking for pthread_create in -lpthread... (cached) yes
setting Linux pthread compilation options
checking for pcap_open_live in -lpcap... (cached) yes
checking for gdImageCreate in -lgd... (cached) no
checking for gdImagePng in -lgd... (cached) no
checking for inflate in -lz... (cached) yes
checking for gdbm_open in -lgdbm... (cached) yes
checking how to run the C++ preprocessor... (cached) g++ -E
checking for ANSI C header files... (cached) yes
checking for deque... (cached) yes
checking for size_t... (cached) 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
conf.h is unchanged
Success!
Please run:
make
make all-recursive
make[1]: Entering directory `/root/showeq'
Making all in maps
make[2]: Entering directory `/root/showeq/maps'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/showeq/maps'
Making all in src
make[2]: Entering directory `/root/showeq/src'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3/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
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3/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 spawn.cpp
spawn.cpp: In function `QString print_item(short unsigned int)':
spawn.cpp:90: warning: comparison is always true due to limited range of data type
spawn.cpp:96: warning: comparison is always true due to limited range of data type
spawn.cpp:102: warning: comparison is always true due to limited range of data type
spawn.cpp:108: warning: comparison is always true due to limited range of data type
spawn.cpp:114: warning: comparison is always true due to limited range of data type
spawn.cpp: In member function `void Drop::update(const makeDropStruct*, const QString&)':
spawn.cpp:1033: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://qa.mandrakesoft.com/> for instructions.
make[2]: *** [spawn.o] Error 1
make[2]: Leaving directory `/root/showeq/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/showeq'
make: *** [all-recursive-am] Error 2

Cryonic
12-27-2003, 03:21 AM
Originally posted by Archaeopteryx

spawn.cpp:1033: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://qa.mandrakesoft.com/> for instructions.


Seg faults of this nature tend not to be SEQ related (or SEQ code related). Try doing what the error message suggested and submit a bug report to the above URL