Nmap Development mailing list archives
Re: Error compiling nmap-4.76 during make of libnbase on MacOSX 10.3.9
From: David Fifield <david () bamsoftware com>
Date: Mon, 15 Sep 2008 21:59:55 -0600
On Mon, Sep 15, 2008 at 01:32:01PM -0400, Myshkin LeVine wrote:
Hello, I had the same compiling errors as Sergej Arko who posted recently. The thread seems to have stopped without resolution so I decided to post. The build fails when libnbase starts to be compiled. Here are the error messages: ...................... Compiling libnbase cd nbase && make gcc -g -O2 -Wall -DHAVE_CONFIG_H -c -o snprintf.o snprintf.c In file included from snprintf.c:66: nbase.h:192: error: parse error before "u8" nbase.h:192: warning: type defaults to `int' in declaration of `u8' nbase.h:192: warning: data definition has no type or storage class nbase.h:194: error: parse error before "u16" nbase.h:194: warning: type defaults to `int' in declaration of `u16' nbase.h:194: warning: data definition has no type or storage class nbase.h:196: error: parse error before "u32" nbase.h:196: warning: type defaults to `int' in declaration of `u32' nbase.h:196: warning: data definition has no type or storage class nbase.h:198: error: parse error before "u64" nbase.h:198: warning: type defaults to `int' in declaration of `u64' nbase.h:198: warning: data definition has no type or storage class In file included from snprintf.c:66: nbase.h:392: error: parse error before "get_random_u32" nbase.h:392: warning: type defaults to `int' in declaration of `get_random_u32' nbase.h:392: warning: data definition has no type or storage class nbase.h:393: error: parse error before "get_random_u16" nbase.h:393: warning: type defaults to `int' in declaration of `get_random_u16' nbase.h:393: warning: data definition has no type or storage class nbase.h:394: error: parse error before "get_random_u8" nbase.h:394: warning: type defaults to `int' in declaration of `get_random_u8' nbase.h:394: warning: data definition has no type or storage class snprintf.c:51: warning: `rcsid' defined but not used make[1]: *** [snprintf.o] Error 1 make: *** [nbase_build] Error 2 .....................
Can you try the attached patch? It appears OS X 10.3.9 needs inttypes.h for the integer types. You'll have to re-configure and re-make after appying the patch. David Fifield
Attachment:
nbase-inttypes.diff
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Error compiling nmap-4.76 during make of libnbase on MacOSX 10.3.9 Myshkin LeVine (Sep 15)
- Re: Error compiling nmap-4.76 during make of libnbase on MacOSX 10.3.9 David Fifield (Sep 15)
- Re: Error compiling nmap-4.76 during make of libnbase on MacOSX 10.3.9 Myshkin LeVine (Sep 18)
- Re: Error compiling nmap-4.76 during make of libnbase on MacOSX 10.3.9 David Fifield (Sep 15)