Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jan 2008 07:47:56 -0800
From:      "Mark D. Foster" <mark@foster.cc>
To:        ports@freebsd.org
Subject:   Re: ssldump fails to compile
Message-ID:  <47A1EDAC.50908@foster.cc>
In-Reply-To: <200801301937.m0UJbPue020291@jau.iki.fi>
References:  <200801301937.m0UJbPue020291@jau.iki.fi>

next in thread | previous in thread | raw e-mail | index | archive | help
Jukka A. Ukkonen wrote:
> 	The subject should already tell the most important news.
> 	Find below the error messages shown by the compiler...
>
> cc -O2 -pipe -O2 -pipe -DHAVE_LIBM=1
> -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1
> -DSIZEOF_UNSIGNED_SHORT=2 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_UNSIGNED_LONG=4
> -DSIZEOF_UNSIGNED_LONG_LONG=8 -DRETSIGTYPE=void -DHAVE_VPRINTF=1
> -DHAVE_STRDUP=1 -c -o pcap-snoop.o ./base/pcap-snoop.c -DOPENSSL -I./base/
> -I./null/ -I./ssl/ -Icommon/include/ -I./null/ -I./ssl/ -I/usr/local/include
> In file included from ./base/pcap-snoop.c:52:
> /usr/include/net/bpf.h:63: error: redefinition of `struct bpf_program'
> /usr/include/net/bpf.h:87: error: redefinition of `struct bpf_version'
> /usr/include/net/bpf.h:596: error: redefinition of `struct bpf_insn'
> ./base/pcap-snoop.c: In function `main':
> ./base/pcap-snoop.c:207: warning: passing arg 2 of `signal' from incompatible
> pointer type
> ./base/pcap-snoop.c:329: warning: passing arg 3 of `pcap_loop' from
> incompatible pointer type
> *** Error code 1
>
> Stop in /usr/ports/net/ssldump/work/ssldump-0.9b3.
> *** Error code 1
>
> Stop in /usr/ports/net/ssldump.
> *** Error code 1
>
> Stop in /usr/ports/net/ssldump.
>
>
> 	I hope this helps.
>
>   
Yet it builds OK on my system
FreeBSD fred.dyn.portseattle.org 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE
#5: Wed Jan  2 08:18:20 PST 2008    
root@fred.dyn.portseattle.org:/usr/obj/usr/src/sys/VMWARE2  i386

Here is the similar section of the compile...
cc -O2 -fno-strict-aliasing -pipe  -O2 -fno-strict-aliasing -pipe  
-DHAVE_LIBM=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=1
-DTIME_WITH_SYS_TIME=1 -DSIZEOF_UNSIGNED_SHORT=2 -DSIZEOF_UNSIGNED_INT=4
-DSIZEOF_UNSIGNED_LONG=4 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DRETSIGTYPE=void
-DHAVE_VPRINTF=1 -DHAVE_STRDUP=1   -c -o pcap-snoop.o
./base/pcap-snoop.c         -DOPENSSL    -I./base/   -I./null/  
-I./ssl/   -Icommon/include/ -I./null/ -I./ssl/ -I/usr/include
./base/pcap-snoop.c: In function `main':
./base/pcap-snoop.c:207: warning: passing arg 2 of `signal' from
incompatible pointer type
./base/pcap-snoop.c:329: warning: passing arg 3 of `pcap_loop' from
incompatible pointer type
cc -O2 -fno-strict-aliasing -pipe  -O2 -fno-strict-aliasing -pipe  
-DHAVE_LIBM=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=1
-DTIME_WITH_SYS_TIME=1 -DSIZEOF_UNSIGNED_SHORT=2 -DSIZEOF_UNSIGNED_INT=4
-DSIZEOF_UNSIGNED_LONG=4 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DRETSIGTYPE=void
-DHAVE_VPRINTF=1 -DHAVE_STRDUP=1   -c -o proto_mod.o
./base/proto_mod.c         -DOPENSSL    -I./base/   -I./null/  
-I./ssl/   -Icommon/include/ -I./null/ -I./ssl/ -I/usr/include

# gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.6 [FreeBSD] 20060305


What version of FreeBSD and gcc do you have?

-- 
Some days it's just not worth chewing through the restraints...
Mark D. Foster, CISSP <mark@foster.cc>  http://mark.foster.cc/





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47A1EDAC.50908>