Nmap Development mailing list archives

Re: Nsock test suite


From: Henri Doreau <henri.doreau () gmail com>
Date: Sat, 11 May 2013 12:15:24 +0200

2013/5/11 Henri Doreau <henri.doreau () gmail com>:
Hi David,

I hope you liked the idea. thanks for testing it.

2013/5/11 David Fifield <david () bamsoftware com>:
The first time I tried to build it, I got an error because the
--libpcap=included wasn't noticed in the makefile. I think the examples
directory has this problem too.

nsock/tests$ make
gcc -c -Wall -O0 -ggdb -I../include/ -I../../nbase tests_main.c -o tests_main.o
gcc -c -Wall -O0 -ggdb -I../include/ -I../../nbase basic.c -o basic.o
gcc -c -Wall -O0 -ggdb -I../include/ -I../../nbase timer.c -o timer.o
gcc -c -Wall -O0 -ggdb -I../include/ -I../../nbase logs.c -o logs.o
gcc -c -Wall -O0 -ggdb -I../include/ -I../../nbase connect.c -o connect.o
gcc -lssl -lpcap -lcrypto tests_main.o basic.o timer.o logs.o connect.o -o tests_main ../src/libnsock.a 
../../nbase/libnbase.a
/usr/bin/ld: cannot find -lpcap
collect2: error: ld returned 1 exit status
make: *** [tests_main] Error 1

After I installed libpcap-dev, these are my results.

I'll have a closer look at this.

nsock/tests$ ./tests_main
[OK] nsock pool user data
[OK] test timer operations
[OK] set standard log levels
[OK] check error log levels
(connect.c:67) Assertion failed: (ctd->connect_result) == (NSE_STATUS_SUCCESS)
[FAILED] simple tcp connection (Invalid argument)

David
Ho I see what happened. ./tests_main shouldn't be called directly, use
the run_tests.sh wrapper instead.

Regards

--
Henri
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: