nirnex
01-02-2008, 05:36 PM
Getting the following during my compile on a new Ubuntu install. Been a while since I've been able to get a decent linux box running.
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/qt3 -I. -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
packetcapture.cpp: In member function ‘void PacketCaptureThread::start(const char*, const char*, bool, uint8_t)’:
packetcapture.cpp:98: error: invalid conversion from ‘const char*’ to ‘char*’
packetcapture.cpp:98: error: initializing argument 1 of ‘int pcap_lookupnet(char*, bpf_u_int32*, bpf_u_int32*, char*)’
packetcapture.cpp: In member function ‘void PacketCaptureThread::setFilter(const char*, const char*, bool, uint8_t, uint16_t, uint16_t)’:
packetcapture.cpp:431: error: invalid conversion from ‘const char*’ to ‘char*’
packetcapture.cpp:431: error: initializing argument 1 of ‘int pcap_lookupnet(char*, bpf_u_int32*, bpf_u_int32*, char*)’
make[2]: *** [packetcapture.o] Error 1
make[2]: Leaving directory `/home/pat/showeq-5.12.0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pat/showeq-5.12.0.0'
make: *** [all] Error 2
Any ideas on this? I know just enoug c to have an idea of what it's telling me but no idea how to get past it. Thanks for any help.
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/qt3 -I. -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
packetcapture.cpp: In member function ‘void PacketCaptureThread::start(const char*, const char*, bool, uint8_t)’:
packetcapture.cpp:98: error: invalid conversion from ‘const char*’ to ‘char*’
packetcapture.cpp:98: error: initializing argument 1 of ‘int pcap_lookupnet(char*, bpf_u_int32*, bpf_u_int32*, char*)’
packetcapture.cpp: In member function ‘void PacketCaptureThread::setFilter(const char*, const char*, bool, uint8_t, uint16_t, uint16_t)’:
packetcapture.cpp:431: error: invalid conversion from ‘const char*’ to ‘char*’
packetcapture.cpp:431: error: initializing argument 1 of ‘int pcap_lookupnet(char*, bpf_u_int32*, bpf_u_int32*, char*)’
make[2]: *** [packetcapture.o] Error 1
make[2]: Leaving directory `/home/pat/showeq-5.12.0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pat/showeq-5.12.0.0'
make: *** [all] Error 2
Any ideas on this? I know just enoug c to have an idea of what it's telling me but no idea how to get past it. Thanks for any help.