Kismet Wireless

Kismet Forums

 

Posted by:casualprogrammer
Subject:compiling kismet-newcore has errors
Date:09:42:19 18/11/2007

Compiling newcore from svn co http://svn.kismetwireless.net/code/trunk kismet-devel runs into some errors and lots of warnings.

Adding #include <string.h> to files ringbuf.cc and util.cc removes the errors, so newcore compiles warnings notwithstanding.

The warnings are mainly repetitions of:

warning: ‘typedef’ was ignored in this declaration

and

warning: deprecated conversion from string constant to ‘char*’

First error was:

g++ -Wall -g -O2 -c util.cc -o util.o
In file included from util.cc:21:
util.h:99: warning: ‘typedef’ was ignored in this declaration
util.cc: In function ‘int IsBlank(const char*)’:
util.cc:190: error: ‘strlen’ was not declared in this scope
util.cc: In function ‘int Hex2UChar(unsigned char*, unsigned char*)’:
util.cc:268: error: ‘memset’ was not declared in this scope
util.cc: In function ‘void init_proc_title(int, char**, char**)’:
util.cc:610: error: ‘strlen’ was not declared in this scope
util.cc:617: error: ‘strlen’ was not declared in this scope
util.cc:618: error: ‘strncpy’ was not declared in this scope
util.cc:627: error: ‘strlen’ was not declared in this scope
util.cc:631: error: ‘strlen’ was not declared in this scope
util.cc:637: error: ‘strdup’ was not declared in this scope
util.cc: In function ‘void set_proc_title(const char*, ...)’:
util.cc:656: error: ‘memset’ was not declared in this scope
util.cc:675: error: ‘strlen’ was not declared in this scope
make: *** [util.o] Error 1

Second error was:

g++ -Wall -g -O2 -c util.cc -o util.o
In file included from util.cc:21:
util.h:99: warning: ‘typedef’ was ignored in this declaration
g++ -Wall -g -O2 -c cygwin_utils.cc -o cygwin_utils.o
g++ -Wall -g -O2 -c ringbuf.cc -o ringbuf.o
ringbuf.cc: In member function ‘int RingBuffer::InsertData(uint8_t*, int)’:
ringbuf.cc:61: error: ‘memcpy’ was not declared in this scope
ringbuf.cc:70: error: ‘memcpy’ was not declared in this scope
ringbuf.cc: In member function ‘void RingBuffer::FetchPtr(uint8_t*, int, int*)’:
ringbuf.cc:106: error: ‘memcpy’ was not declared in this scope
ringbuf.cc:111: error: ‘memcpy’ was not declared in this scope
ringbuf.cc:127: error: ‘memcpy’ was not declared in this scope
ringbuf.cc: In member function ‘int RingBuffer::Resize(int)’:
ringbuf.cc:163: error: ‘memcpy’ was not declared in this scope


Reply to this message