Nmap Development mailing list archives
Re: Error compiling included libpcre on FreeBSD
From: David Fifield <david () bamsoftware com>
Date: Wed, 17 Mar 2010 20:41:30 -0600
On Tue, Mar 16, 2010 at 12:47:57PM -0500, Daniel Miller wrote:
Got no errors with ./configure, but when I try to make, it fails. [miller@danbsd ~/nmap-5.21/libpcre]$ gmake gmake all-am gmake[1]: Entering directory `/usr/home/miller/nmap-5.21/libpcre' gcc -DHAVE_CONFIG_H -I. -O2 -MT pcre_compile.o -MD -MP -MF .deps/pcre_compile.Tpo -c -o pcre_compile.o pcre_compile.c In file included from pcre_compile.c:56: pcre_internal.h:340:2: error: #error LINK_SIZE must be either 2, 3, or 4 pcre_compile.c: In function 'find_fixedlength': pcre_compile.c:1143: error: 'LINK_SIZE' undeclared (first use in this function) pcre_compile.c:1143: error: (Each undeclared identifier is reported only once pcre_compile.c:1143: error: for each function it appears in.) pcre_compile.c: In function 'find_bracket': pcre_compile.c:1344: error: 'LINK_SIZE' undeclared (first use in this function) pcre_compile.c: In function 'adjust_recurse': pcre_compile.c:1866: error: 'LINK_SIZE' undeclared (first use in this function) pcre_compile.c: In function 'auto_callout': pcre_compile.c:1912: error: 'LINK_SIZE' undeclared (first use in this function) pcre_compile.c: In function 'complete_callout': pcre_compile.c:1938: error: 'LINK_SIZE' undeclared (first use in this function) pcre_compile.c: In function 'compile_branch': pcre_compile.c:3798: error: 'LINK_SIZE' undeclared (first use in this function) pcre_compile.c:4506: error: 'MAX_NAME_COUNT' undeclared (first use in this function) pcre_compile.c:4514: error: 'MAX_NAME_SIZE' undeclared (first use in this function) pcre_compile.c: In function 'compile_regex': pcre_compile.c:5323: error: 'LINK_SIZE' undeclared (first use in this function) pcre_compile.c: In function 'is_anchored': pcre_compile.c:5591: error: 'LINK_SIZE' undeclared (first use in this function) pcre_compile.c: In function 'is_startline': pcre_compile.c:5667: error: 'LINK_SIZE' undeclared (first use in this function) pcre_compile.c: In function 'find_firstassertedchar': pcre_compile.c:5726: error: 'LINK_SIZE' undeclared (first use in this function) pcre_compile.c: In function 'pcre_compile2': pcre_compile.c:5934: error: 'NEWLINE' undeclared (first use in this function) pcre_compile.c:6017: error: 'MAX_PATTERN_SIZE' undeclared (first use in this function) pcre_compile.c:6108: error: 'LINK_SIZE' undeclared (first use in this function) gmake[1]: *** [pcre_compile.o] Error 1 gmake[1]: Leaving directory `/usr/home/miller/nmap-5.21/libpcre' gmake: *** [all] Error 2 [miller@danbsd ~/nmap-5.21/libpcre]$ grep LINK_SIZE config* config.h.generic:/* The value of LINK_SIZE determines the number of bytes used to store links config.h.generic:#ifndef LINK_SIZE config.h.generic:#define LINK_SIZE 2 config.log:#define LINK_SIZE 2 config.status:D["LINK_SIZE"]=" 2" configure:#define LINK_SIZE $with_link_size configure.ac:AC_DEFINE_UNQUOTED([LINK_SIZE], [$with_link_size], [ configure.ac: The value of LINK_SIZE determines the number of bytes used to store
Do you have a file libpcre/config.h? That should be generated by configure. If so, please post it. David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Error compiling included libpcre on FreeBSD Daniel Miller (Mar 16)
- Re: Error compiling included libpcre on FreeBSD David Fifield (Mar 17)