From nobody@FreeBSD.org  Fri Apr 16 08:11:31 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E98FD106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 Apr 2010 08:11:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id D9C918FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 Apr 2010 08:11:31 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o3G8BVVf096847
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 Apr 2010 08:11:31 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o3G8BVr0096846;
	Fri, 16 Apr 2010 08:11:31 GMT
	(envelope-from nobody)
Message-Id: <201004160811.o3G8BVr0096846@www.freebsd.org>
Date: Fri, 16 Apr 2010 08:11:31 GMT
From: Oleg Gawriloff <barzog@telecom.by>
To: freebsd-gnats-submit@FreeBSD.org
Subject: net/trafshow fails to compile
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         145751
>Category:       ports
>Synopsis:       net/trafshow fails to compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 16 08:20:02 UTC 2010
>Closed-Date:    Tue Jun 22 13:45:09 UTC 2010
>Last-Modified:  Tue Jun 22 13:45:09 UTC 2010
>Originator:     Oleg Gawriloff
>Release:        7.2
>Organization:
Atlant Telecom
>Environment:
FreeBSD albatros.telecom.by 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0: Mon Jul 13 13:04:32 EEST 2009     root@albatros.telecom.by:/usr/obj/usr/src/sys/ALBATROS  i386

>Description:
===>  Extracting for trafshow-5.2.3,1
=> MD5 Checksum OK for trafshow-5.2.3.tgz.
=> SHA256 Checksum OK for trafshow-5.2.3.tgz.
===>  Patching for trafshow-5.2.3,1
===>  Applying FreeBSD patches for trafshow-5.2.3,1
===>  Configuring for trafshow-5.2.3,1
checking build system type... i386-portbld-freebsd7.2
checking host system type... i386-portbld-freebsd7.2
checking target system type... i386-portbld-freebsd7.2
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking how to run the C preprocessor... cc -E
checking for egrep... grep -E
checking for AIX... no
checking for pthread_join in LIBS=-pthread with CFLAGS=... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads...
checking for cc_r... cc
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/termios.h usability... yes
checking sys/termios.h presence... yes
checking for sys/termios.h... yes
checking net/if_dl.h usability... yes
checking net/if_dl.h presence... yes
checking for net/if_dl.h... yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking resolv.h usability... no
checking resolv.h presence... yes
configure: WARNING: resolv.h: present but cannot be compiled
configure: WARNING: resolv.h:     check for missing prerequisite headers?
configure: WARNING: resolv.h: see the Autoconf documentation
configure: WARNING: resolv.h:     section "Present But Cannot Be Compiled"
configure: WARNING: resolv.h: proceeding with the preprocessor's result
configure: WARNING: resolv.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for resolv.h... yes
checking for an ANSI C-conforming const... yes
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for u_int64_t... yes
checking for in_addr_t... yes
checking for socklen_t... yes
checking for struct sockaddr_storage... yes
checking for struct ether_addr... no
checking for main in -lresolv... no
checking for main in -linet... no
checking for gethostbyname in -lnsl... no
checking for connect in -lsocket... no
checking for siginterrupt... yes
checking for snprintf... yes
checking for strftime... yes
checking for strcasecmp... yes
checking for pcap_findalldevs in -lpcap... yes
checking for pcap_dump_flush... yes
checking for pcap_get_selectable_fd... yes
checking for tgetent in -ltermcap... yes
checking for curses library... ncurses
checking for has_colors... yes
checking for bkgd... yes
checking for wbkgd... yes
checking for wredrawln... yes
checking for resizeterm... yes
checking for use_default_colors... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
===>  Building for trafshow-5.2.3,1
cc -O2 -fno-strict-aliasing -pipe -march=pentiumpro -Wall -I. -DHAVE_CONFIG_H -c trafshow.c
trafshow.c: In function 'pcap_init':
trafshow.c:343: error: 'BIOCIMMEDIATE' undeclared (first use in this function)
trafshow.c:343: error: (Each undeclared identifier is reported only once
trafshow.c:343: error: for each function it appears in.)
*** Error code 1

Stop in /var/tmp/usr/ports/net/trafshow/work/trafshow-5.2.3.
*** Error code 1

Stop in /usr/ports/net/trafshow.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20100416-13093-wp99pl-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=trafshow-3.1_6,1 UPGRADE_PORT_VER=3.1_6,1 make

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Apr 16 12:07:07 UTC 2010 
Responsible-Changed-Why:  
ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=145751 
State-Changed-From-To: open->feedback 
State-Changed-By: pav 
State-Changed-When: Fri May 14 11:47:17 UTC 2010 
State-Changed-Why:  
Cannot reproduce on 7.2-RELEASE system -- maybe nonstandard make.conf flags, 
world compilation options, or another include file called bpf.h somewhere under 
/usr/local ? 


Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Fri May 14 11:47:17 UTC 2010 
Responsible-Changed-Why:  
Cannot reproduce on 7.2-RELEASE system -- maybe nonstandard make.conf flags, 
world compilation options, or another include file called bpf.h somewhere under 
/usr/local ? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=145751 

From: Oleg Gawriloff <barzog@telecom.by>
To: bug-followup@FreeBSD.org, barzog@telecom.by
Cc:  
Subject: Re: ports/145751: net/trafshow fails to compile
Date: Fri, 14 May 2010 15:02:19 +0300

 /etc/make.conf:
 CPUTYPE=i686
 
 NO_FORTRAN=     true    # do not build g77 and related libraries
 NO_I4B=         true    # do not build isdn4bsd package
 NO_LPR=         true    # do not build lpr and related programs
 NO_MAILWRAPPER= true    # do not build the mailwrapper(8) MTA selector
 NO_X=           true    # do not compile in XWindows support (e.g. doscmd)
 NO_GAMES=       true    # do not build games (games/ subdir)
 NOUUCP=         true    # do not build uucp related programs
 NO_PROFILE=     true    # Avoid compiling profiled libraries
 
 COMPAT4X=       yes
 MAKE_KERBEROS4= no
 MAKE_KERBEROS5= no
 
 SUP_UPDATE=     yes
 SUP=            /usr/local/bin/cvsup
 SUPFLAGS=       -g -L 2
 SUPFILE=        /usr/local/etc/cvsup/src-all
 PORTSSUPFILE=   /usr/local/etc/cvsup/ports-all
 
 KERNCONF=       ALBATROS
 
 SENDMAIL_MC=/etc/mail/albatros.mc
 SENDMAIL_SUBMIT_MC=/etc/mail/submit.mc
 .if ${.CURDIR:N*/ports/mail/sendmail} == ""
 SENDMAIL_WITHOUT_IPV6=yes
 SENDMAIL_WITH_PICKY_HELO_CHECK=yes
 .endif
 
 
 WITHOUT_X11=yes
 
 .if ${.CURDIR:N*/ports/comms/mgetty+sendfax} == ""
 WITH_FIDO=yes
 .endif
 WRKDIRPREFIX=/var/tmp
 PORTS_INDEX=/var/tmp/INDEX
 
 LIBPCAP_OVERWRITE_BASE=yes
 TCPDUMP_OVERWRITE_BASE=yes
 .if ${.CURDIR} == ${PORTSDIR}/net-mgmt/net-snmp
 WITH_MFD_REWRITES="YES"
 .endif
 # added by use.perl 2009-08-03 20:45:33
 PERL_VERSION=5.8.9
 
 LOADER_TFTP_SUPPORT=yes
 
 
 barzog@albatros:~>locate bpf.h
 /mnt/freebsd-thin/usr/include/net/bpf.h
 /mnt/freebsd-thin/usr/include/netgraph/ng_bpf.h
 /mnt/freebsd-thin/usr/include/pcap-bpf.h
 /mnt/freebsd-thin/usr/obj/amd64/mnt/usr/src/sys/DRWEB1/opt_bpf.h
 /mnt/freebsd-thin/usr/obj/mnt/usr/src/tmp/usr/include/net/bpf.h
 /mnt/freebsd-thin/usr/obj/mnt/usr/src/tmp/usr/include/netgraph/ng_bpf.h
 /mnt/freebsd-thin/usr/obj/mnt/usr/src/tmp/usr/include/pcap-bpf.h
 /usr/include/net/bpf.h
 /usr/include/netgraph/ng_bpf.h
 /usr/include/pcap/bpf.h
 /usr/include/pcap-bpf.h
 /usr/obj/usr/src/sys/ALBATROS/modules/usr/src/sys/modules/ce/opt_bpf.h
 /usr/obj/usr/src/sys/ALBATROS/modules/usr/src/sys/modules/ipfilter/opt_bpf.h
 /usr/obj/usr/src/sys/ALBATROS/modules/usr/src/sys/modules/lmc/opt_bpf.h
 /usr/obj/usr/src/sys/ALBATROS/modules/usr/src/sys/modules/netgraph/bpf/opt_bpf.h
 /usr/obj/usr/src/sys/ALBATROS/modules/usr/src/sys/modules/pf/opt_bpf.h
 /usr/obj/usr/src/sys/ALBATROS/modules/usr/src/sys/modules/pflog/opt_bpf.h
 /usr/obj/usr/src/sys/ALBATROS/opt_bpf.h
 /usr/obj/usr/src/sys/NFSBOOT/modules/usr/src/sys/modules/ce/opt_bpf.h
 /usr/obj/usr/src/sys/NFSBOOT/modules/usr/src/sys/modules/ipfilter/opt_bpf.h
 /usr/obj/usr/src/sys/NFSBOOT/modules/usr/src/sys/modules/lmc/opt_bpf.h
 /usr/obj/usr/src/sys/NFSBOOT/modules/usr/src/sys/modules/netgraph/bpf/opt_bpf.h
 /usr/obj/usr/src/sys/NFSBOOT/modules/usr/src/sys/modules/pf/opt_bpf.h
 /usr/obj/usr/src/sys/NFSBOOT/modules/usr/src/sys/modules/pflog/opt_bpf.h
 /usr/obj/usr/src/sys/NFSBOOT/opt_bpf.h
 /usr/obj/usr/src/tmp/usr/include/net/bpf.h
 /usr/obj/usr/src/tmp/usr/include/netgraph/ng_bpf.h
 /usr/obj/usr/src/tmp/usr/include/pcap-bpf.h
 /usr/src/contrib/ipfilter/pcap-bpf.h
 /usr/src/contrib/libpcap/pcap-bpf.h
 /usr/src/sys/net/bpf.h
 /usr/src/sys/netgraph/ng_bpf.h
 /var/falcon_extract/usr/include/pcap/bpf.h
 /var/falcon_extract/usr/include/pcap-bpf.h
 
 Nothing suspicious.
 
 -- 
 Signed, Oleg Gawriloff.
 

From: Pav Lucistnik <pav@FreeBSD.org>
To: Oleg Gawriloff <barzog@telecom.by>, bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/145751: net/trafshow fails to compile
Date: Fri, 14 May 2010 14:14:22 +0200

 Oleg Gawriloff pe v p 14. 05. 2010 v 12:10 +0000:
 >  LIBPCAP_OVERWRITE_BASE=yes
 >  TCPDUMP_OVERWRITE_BASE=yes
 
 Guess you're on your own with these.
  
 -- 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 Why does the Earth have colors?
 
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Tue Jun 22 13:44:30 UTC 2010 
State-Changed-Why:  
Unsupported local environment 

http://www.freebsd.org/cgi/query-pr.cgi?pr=145751 
>Unformatted:
