tcpdump mailing list archives

RE: crypto w/ OpenBSD 3.2


From: "Kristoffer Lott" <kristoffer.lott () allscripts com>
Date: Thu, 26 Jun 2003 13:53:06 -0700

Here are the config output and config.log. Any help is much appreciated.

I see in config.log that it is not finding rc5.h, but it does in fact exist in /usr/include/ssl/rc5.h. Perhaps this is 
not where the configure script expects to find it?

configure output:
----------------

creating cache ./config.cache
checking host system type... i386-unknown-openbsd3.2
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking gcc version... 2
checking for inline... inline
checking for __attribute__... yes
checking how to run the C preprocessor... gcc -E
checking for fcntl.h... yes
checking for rpc/rpcent.h... no
checking for netinet/if_ether.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for smi.h... no
checking for smiInit in -lsmi... no
checking whether to enable the possibly-buggy SMB printer... yes
configure: warning: The SMB printer may have exploitable buffer overflows!!!
checking whether to enable ipv6... yes
checking ipv6 stack type... kame
You do not have inet6 library, using libc
checking for library containing getaddrinfo... none required
checking getaddrinfo bug... good
checking for getaddrinfo... yes
checking for getnameinfo... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for inet_aton... yes
checking if sockaddr struct has sa_len member... yes
checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking for addrinfo... yes
checking for NI_MAXSERV... yes
checking for NI_NAMEREQD... yes
checking for sockaddr_storage... yes
checking for INADDRSZ... yes
checking for IN6ADDRSZ... yes
checking for RES_USE_INET6... yes
checking for res_state_ext... no
checking for nsort in res_state... no
checking for vfprintf... yes
checking for strcasecmp... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for strdup... yes
checking for ether_ntohost... yes
checking for buggy ether_ntohost... no
checking for setlinebuf... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking return type of signal handlers... void
checking for sigset... no
checking for sigaction... yes
checking for dnet_htoa in -ldnet... no
checking for main in -lrpc... no
checking for library containing getrpcbynumber... none required
checking for library containing gethostbyname... none required
checking for library containing socket... none required
checking for library containing putmsg... no
checking for local pcap library... not found
checking for main in -lpcap... yes
checking for bpf_dump... no
checking for u_int8_t using gcc... yes
checking for int16_t using gcc... yes
checking for u_int16_t using gcc... yes
checking for int32_t using gcc... yes
checking for u_int32_t using gcc... yes
checking if sockaddr struct has sa_len member... yes
checking if unaligned accesses fail... no
checking for h_errno... yes
checking for rc5.h... no
checking for a BSD compatible install... /usr/bin/install -c
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h

config.log:
----------

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:635: checking host system type
configure:722: checking for gcc
configure:835: checking whether the C compiler (gcc  ) works
configure:851: gcc -o conftest    conftest.c  1>&5
configure:877: checking whether the C compiler (gcc  ) is a cross-compiler
configure:882: checking whether we are using GNU C
configure:891: gcc -E conftest.c
configure:910: checking whether gcc accepts -g
configure:947: checking gcc version
configure:1090: checking for inline
configure:1120: gcc -c -g -O2  conftest.c 1>&5
configure:1148: checking for __attribute__
configure:1171: gcc -c -g -O2  conftest.c 1>&5
configure:1193: checking how to run the C preprocessor
configure:1214: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1276: checking for fcntl.h
configure:1286: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1276: checking for rpc/rpcent.h
configure:1286: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1282: rpc/rpcent.h: No such file or directory
configure: failed program was:
#line 1281 "configure"
#include "confdefs.h"
#include <rpc/rpcent.h>
configure:1276: checking for netinet/if_ether.h
configure:1286: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1313: checking whether time.h and sys/time.h may both be included
configure:1327: gcc -c -g -O2  conftest.c 1>&5
configure:1387: checking for smi.h
configure:1397: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1393: smi.h: No such file or directory
configure: failed program was:
#line 1392 "configure"
#include "confdefs.h"
#include <smi.h>
configure:1424: checking for smiInit in -lsmi
configure:1443: gcc -o conftest -g -O2   conftest.c -lsmi   1>&5
ld: -lsmi: no match
collect2: ld returned 1 exit status
configure: failed program was:
#line 1432 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char smiInit();

int main() {
smiInit()
; return 0; }
configure:1528: checking whether to enable the possibly-buggy SMB printer
configure:1552: checking whether to enable ipv6
configure:1591: gcc -o conftest -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len   conftest.c  1>&5
configure:1619: checking ipv6 stack type
configure:1782: checking for library containing getaddrinfo
configure:1800: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len   conftest.c  1>&5
configure:1839: checking getaddrinfo bug
configure:1942: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len   conftest.c  1>&5
configure:1974: checking for getaddrinfo
configure:2002: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len   conftest.c  1>&5
configure:1974: checking for getnameinfo
configure:2002: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len   conftest.c  1>&5
configure:2030: checking for inet_ntop
configure:2043: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  conftest.c 1>&5
configure:2111: checking for inet_pton
configure:2124: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  conftest.c 1>&5
configure:2192: checking for inet_aton
configure:2205: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  conftest.c 1>&5
configure:2275: checking if sockaddr struct has sa_len member
configure:2289: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  conftest.c 1>&5
configure:2314: checking size of char
configure:2333: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len   conftest.c  1>&5
configure:2353: checking size of short
configure:2372: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len   conftest.c  1>&5
configure:2392: checking size of int
configure:2411: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len   conftest.c  1>&5
configure:2431: checking size of long
configure:2450: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len   conftest.c  1>&5
configure:2473: checking for addrinfo
configure:2486: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  conftest.c 1>&5
configure:2517: checking for NI_MAXSERV
configure:2555: checking for NI_NAMEREQD
configure:2593: checking for sockaddr_storage
configure:2607: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  conftest.c 1>&5
configure:2634: checking for INADDRSZ
configure:2647: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  conftest.c 1>&5
configure:2669: checking for IN6ADDRSZ
configure:2682: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  conftest.c 1>&5
configure:2710: checking for RES_USE_INET6
configure:2725: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  conftest.c 1>&5
configure:2751: checking for res_state_ext
configure:2767: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  conftest.c 1>&5
In file included from configure:2760:
/usr/include/netinet6/in6.h:69: #error "do not include netinet6/in6.h directly, include netinet/in.h.  see RFC2553"
configure: failed program was:
#line 2756 "configure"
#include "confdefs.h"

#               include <sys/types.h>
#               include <netinet/in.h>
#               include <netinet6/in6.h>
#               include <resolv.h>
int main() {
struct __res_state_ext e
; return 0; }
configure:2793: checking for nsort in res_state
configure:2809: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  conftest.c 1>&5
In file included from configure:2802:
/usr/include/netinet6/in6.h:69: #error "do not include netinet6/in6.h directly, include netinet/in.h.  see RFC2553"
configure: failed program was:
#line 2798 "configure"
#include "confdefs.h"

#               include <sys/types.h>
#               include <netinet/in.h>
#               include <netinet6/in6.h>
#               include <resolv.h>
int main() {
struct __res_state e; e.nsort = 0
; return 0; }
configure:2839: checking for vfprintf
configure:2867: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c  1>&5
configure:2839: checking for strcasecmp
configure:2867: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c  1>&5
configure:2839: checking for strlcat
configure:2867: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c  1>&5
configure:2839: checking for strlcpy
configure:2867: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c  1>&5
configure:2839: checking for strdup
configure:2867: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c  1>&5
configure:2896: checking for ether_ntohost
configure:2924: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c  1>&5
configure:2944: checking for buggy ether_ntohost
configure:2972: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c  1>&5
configure:3002: checking for setlinebuf
configure:3030: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c  1>&5
configure:3059: checking for vsnprintf
configure:3087: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c  1>&5
configure:3059: checking for snprintf
configure:3087: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c  1>&5
configure:3118: checking return type of signal handlers
configure:3140: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing conftest.c 1>&5
configure:3182: checking for sigset
configure:3210: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c  1>&5
configure:3204: Undefined symbol `_sigset' referenced from text segment
collect2: ld returned 1 exit status
configure: failed program was:
#line 3187 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char sigset(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char sigset();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_sigset) || defined (__stub___sigset)
choke me
#else
sigset();
#endif

; return 0; }
configure:3238: checking for sigaction
configure:3266: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c  1>&5
configure:3295: checking for dnet_htoa in -ldnet
configure:3314: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c -ldnet   1>&5
ld: -ldnet: no match
collect2: ld returned 1 exit status
configure: failed program was:
#line 3303 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dnet_htoa();

int main() {
dnet_htoa()
; return 0; }
configure:3343: checking for main in -lrpc
configure:3358: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c -lrpc   1>&5
ld: -lrpc: no match
collect2: ld returned 1 exit status
configure: failed program was:
#line 3351 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:3387: checking for library containing getrpcbynumber
configure:3405: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c  1>&5
configure:3456: checking for library containing gethostbyname
configure:3474: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c  1>&5
configure:3563: checking for library containing socket
configure:3581: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c  1>&5
configure:3665: checking for library containing putmsg
configure:3683: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c  1>&5
configure:3679: Undefined symbol `_putmsg' referenced from text segment
collect2: ld returned 1 exit status
configure: failed program was:
#line 3672 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char putmsg();

int main() {
putmsg()
; return 0; }
configure:3705: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c -lstr   1>&5
ld: -lstr: no match
collect2: ld returned 1 exit status
configure: failed program was:
#line 3694 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char putmsg();

int main() {
putmsg()
; return 0; }
configure:3791: checking for local pcap library
configure:3810: checking for main in -lpcap
configure:3825: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c -lpcap   1>&5
configure:3878: checking for bpf_dump
configure:3906: gcc -o conftest -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing  conftest.
c -lpcap  1>&5
configure:3900: Undefined symbol `_bpf_dump' referenced from text segment
collect2: ld returned 1 exit status
configure: failed program was:
#line 3883 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char bpf_dump(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char bpf_dump();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_bpf_dump) || defined (__stub___bpf_dump)
choke me
#else
bpf_dump();
#endif

; return 0; }
configure:3963: checking for u_int8_t using gcc
configure:3981: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing conftest.c 1>&5
configure:4001: checking for int16_t using gcc
configure:4019: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing conftest.c 1>&5
configure:4039: checking for u_int16_t using gcc
configure:4057: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing conftest.c 1>&5
configure:4077: checking for int32_t using gcc
configure:4095: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing conftest.c 1>&5
configure:4115: checking for u_int32_t using gcc
configure:4133: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing conftest.c 1>&5
configure:4193: checking if sockaddr struct has sa_len member
configure:4207: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing conftest.c 1>&5
configure:4228: checking if unaligned accesses fail
configure:4293: checking for h_errno
configure:4307: gcc -c -DINET6 -g -O2 -Dss_family=__ss_family -Dss_len=__ss_len  -I$(srcdir)/missing conftest.c 1>&5
configure:4511: checking for rc5.h
configure:4521: gcc -E  -I$(srcdir)/missing conftest.c >/dev/null 2>conftest.out
configure:4517: rc5.h: No such file or directory
configure: failed program was:
#line 4516 "configure"
#include "confdefs.h"
#include <rc5.h>
configure:4566: checking for a BSD compatible install

-----Original Message-----
From: Guy Harris [mailto:guy () alum mit edu]
Sent: Thursday, June 26, 2003 1:12 PM
To: Kristoffer Lott
Cc: tcpdump-workers () tcpdump org
Subject: Re: [tcpdump-workers] crypto w/ OpenBSD 3.2



On Thursday, June 26, 2003, at 12:12PM, Kristoffer Lott wrote:

I've been unsuccessful at compiling tcpdump 3.7.2 with crypto support 
under OpenBSD 3.2. The binary is always compiled without it.
It appears to me that the configure script is leaving it out, even 
using --with-crypto, although I wouldn't swear to that.
I'm guessing that the configure script is having trouble finding the 
necessary crypto files, but I'm not sure how to help it find them.
Can someone offer some help? Any information that I should provide?

You should provide the output of the configure script, and the 
config.log file.  (Send it to the list, not to me; I don't have OpenBSD 
3.2 handy on which to debug and test this.)
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe


Current thread: