PDA

View Full Version : Error Compile 5.1



coffeencream
10-03-2005, 09:27 AM
Just a quick question.

The last working version of SEQ I had was 5.0.25, using Rehat 9.

On both version 5.1 Beta and 5.1 ".configure" runs fine but crashes on "make".

Running an older version of QT (at work, so can't check exact version)... so my question is... What version of QT do I need to run to get 5.1 running, as I assume that is my problem.

Don't really want to have to switch to FC4 if I can avoid it. Thanks in advance.

purple
10-03-2005, 09:51 AM
As documented in the tarball you downloaded, I believe 3.2 is the minimum. Personally, I'm using 3.3.4.

Posting that you had a compile error without actually including the compile error is really annoying by the way.

coffeencream
10-03-2005, 10:02 AM
Thanks, Purple...

Yeah, sorry about not posting the error. Just wanted to throw it out there while I'm at work. Tried to post it last night, but had forgotten my user name. ( I know.. the shame :( )

I'll post the error later today.

Thank you again for the quick response.

coffeencream
10-03-2005, 06:27 PM
Hmmmm... got QT 3.2.3... and here's the error message... I must be doing something else wrong. :confused:

[root@localhost root]# export CC=gcc
[root@localhost root]# export CXX=g++
[root@localhost root]# export QTDIR=/usr/lib/qt-3.2.3
[root@localhost root]# cd showeq-5.1.0.0
[root@localhost showeq-5.1.0.0]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
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 whether to enable maintainer-specific portions of Makefiles... no
checking for doxygen... /usr/bin/doxygen
checking for perl... /usr/bin/perl
checking for dot... no
configure: WARNING: dot not found - will not generate graphics for doxygen documentation
checking for gcc... gcc
checking for g++... g++
checking for supported compiler version... checking for style of include used by make... GNU
checking for C++ compiler default output file name... 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 g++ accepts -g... yes
checking dependency style of g++... gcc3
yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for an ANSI C-conforming 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 a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
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 dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for correct ltmain.sh version... yes
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for supported libc version... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for IceConnectionNumber in -lICE... yes
checking for libXext... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for Qt... yes
>> Found version.: 3.2.3
>>> Headers......: /usr/lib/qt-3.2.3/include/
>>>> Libraries...: /usr/lib/qt-3.2.3/lib/
>>>> Documentation...: /usr/lib/qt-3.2.3/doc/html/
>>>>> 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 for ANSI C header files... (cached) yes
checking deque usability... yes
checking deque presence... yes
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
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating conf/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
Success!
Please run:
make
[root@localhost showeq-5.1.0.0]# make
make all-recursive
make[1]: Entering directory `/root/showeq-5.1.0.0'
Making all in src
make[2]: Entering directory `/root/showeq-5.1.0.0/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt-3.2.3/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/\" -g -O2 -MT packetcapture.o -MD -MP -MF ".deps/packetcapture.Tpo" -c -o packetcapture.o packetcapture.cpp; \
then mv -f ".deps/packetcapture.Tpo" ".deps/packetcapture.Po"; else rm -f ".deps/packetcapture.Tpo"; exit 1; fi
packetcapture.cpp: In member function `void PacketCaptureThread::start(const
char*, const char*, bool, unsigned char)':
packetcapture.cpp:98: invalid conversion from `const char*' to `char*'
packetcapture.cpp: In member function `void
PacketCaptureThread::setFilter(const char*, const char*, bool, unsigned
char, short unsigned int, short unsigned int)':
packetcapture.cpp:431: invalid conversion from `const char*' to `char*'
make[2]: *** [packetcapture.o] Error 1
make[2]: Leaving directory `/root/showeq-5.1.0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/showeq-5.1.0.0'
make: *** [all] Error 2
[root@localhost showeq-5.1.0.0]#

purple
10-03-2005, 07:20 PM
Need a newer pcap or follow this thread:
http://www.showeq.net/forums/showthread.php?t=5374

You can stop reading that thread after like 3 or 4 posts though, as it turns into a moronfest.