Kismet Wireless

Kismet Forums

 

Posted by:janbbeck
Subject:Compile error for plugin-autowep in Cygwin
Date:03:37:29 24/08/2010

> > > Somehow the compiler cannot find the libary. I am pretty sure kismet itself links to that file when it compiles. Probably a silly mistake on my part. Can anyone point me in the right direction, please?
> >
> > Make that 'the linker cannot find the library'. Sorry.
>
> I suspect it's something weird to do with how cygwin handles libraries (which is very poorly).
>
> I'll have to look into it when I have more time (unless someone gets to it first). It'll probably involve splitting up the linker flags in the makefiles, since the plugins don't need pcap or airpcap (they come in w/ the kismet server linkages)

Ok, I deleted the reference to the library and ran make again.

There are some warnings and errors. I suspect the warnings cause the errors:

First warning:

make[1]: Entering directory `/home/jan/kismet-2010-07-R1/plugin-autowep'
g++ -I/home/jan/kismet-2010-07-R1/Airpcap_Devpack/include -I/usr/include/ncurses
-IAirpcap_Devpack/Include -IWinpcap_Devpack/Include -I/usr/include -I/home/jan/
kismet-2010-07-R1 -g -fPIC -c autowep-kismet.cc -o autowep-kismet.o
autowep-kismet.cc:1: warning: -fPIC ignored for target (all code is position ind
ependent)


Second warning:
g++ -shared -rdynamic autowep-kismet.o -o autowep-kismet.so -ldl -lstdc++
g++: unrecognized option `-rdynamic'

I suspect that one of these options instructs the linker to ignore missing references so that we can take the plugin and link it at runtime to the kismet process.

This then results in manny errors - here is a sample:
autowep-kismet.o: In function `_Z22kisautowep_packet_hookP14GlobalRegistryPvP10k
is_packet':
/home/jan/kismet-2010-07-R1/plugin-autowep/autowep-kismet.cc:222: undefined refe
rence to `MungeToPrintable(std::basic_string<char, std::char_traits<char>, std::
allocator<char> >)'


Reply to this message