[ee122] proto_parser libraries for home compiling??

Lisa Fowler fowler at eecs.berkeley.edu
Sat Dec 8 01:03:05 PST 2007

You need to install libpcap, and how you would do so depends on your
system.  If you're using cygwin, you should download and install
winpcap, but your mileage may vary.  It will likely be much more worth
your time to handle this on c199...


On Dec 8, 2007 12:50 AM, Drew Lustro <drewlustro at gmail.com> wrote:
> I couldnt compile the sample proto_parser obtained off the /projects/
> directory.. then I noticed that the makefile includes the lib/include
> directories at /usr/sww/lib and /usr/sww/include
> What can I do to try to compile and extend the proto_parser at home to work
> with our protocol? g++ reports:
> g++ -O0 -g3 -Wall -c -fmessage-length=0 -osrc/proto-parser.o
> ../src/proto-parser.cpp
> g++ -o proto-parser src/proto-parser.o
> Undefined symbols:
>   "_pcap_next", referenced from:
>       _main in proto-parser.o
>   "_pcap_open_offline", referenced from:
>       _main in proto-parser.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> Build error occurred, build is stopped
> Clearly I do not have the pcap libs. I tried downloading the whole directory
> (/usr/sww/include and /usr/sww/lib), but then got permission errors and gave
> up.
> Thanks
> Drew
> _______________________________________________
> ee122 mailing list
> ee122 at mailman.ICSI.Berkeley.EDU
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/ee122

More information about the ee122 mailing list