Nmap Development mailing list archives

Re: SVN FTBFS on Debian testing


From: Daniel Miller <bonsaiviking () gmail com>
Date: Mon, 30 Dec 2013 06:56:12 -0600

Jacek,

Does adding "#include <stddef.h>" to gh_heap.h fix this? This was my
failure, sorry. offsetof() is an ANSI C macro that should be defined
in stddef.h.

Dan

On Sun, Dec 29, 2013 at 9:39 PM, Jacek Wielemborek
<wielemborekj1 () gmail com> wrote:
Compiling libnsock
cd nsock/src && make
make[1]: Entering directory `/home/d33tah/nmap/nsock/src'
gcc -c -I../../libpcap  -I../../nbase -DHAVE_CONFIG_H
-DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall
-Wall   filespace.c -o filespace.o
In file included from nsock_internal.h:80:0,
                 from filespace.c:59:
nsock_proxy.h: In function ‘proxy_ctx_node_next’:
nsock_proxy.h:167:10: warning: implicit declaration of function ‘offsetof’
[-Wimplicit-function-declaration]
nsock_proxy.h:167:10: error: expected expression before ‘struct’
In file included from filespace.c:59:0:
nsock_internal.h: In function ‘next_expirable_event’:
nsock_internal.h:502:10: error: expected expression before ‘msevent’
nsock_internal.h: In function ‘lnode_msevent’:
nsock_internal.h:506:10: error: expected expression before ‘msevent’
nsock_internal.h: In function ‘lnode_msevent2’:
nsock_internal.h:510:10: error: expected expression before ‘msevent’
make[1]: *** [filespace.o] Error 1
make[1]: Leaving directory `/home/d33tah/nmap/nsock/src'
make: *** [nsock_build] Error 2
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: