Bug 183279

Summary: [PATCH] security/bro: patch newest pkg-fallout/clang problem
Product: Ports & Packages Reporter: Craig Leres <leres>
Component: Individual Port(s)Assignee: Thomas Abthorpe <tabthorpe>
Status: Closed FIXED    
Severity: Affects Only Me CC: leres
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch.txt none

Description Craig Leres freebsd_committer freebsd_triage 2013-10-24 20:00:01 UTC
	It appears the -10 build server has yet another new version
	of clang.

Fix: Include unistd.h (see attached patch).
How-To-Repeat: 	http://beefy2.isc.freebsd.org/bulk/10amd64-default/2013-10-24_03h27m40s/logs/bro-2.1_3.log

	/wrkdirs/usr/ports/security/bro/work/bro-2.1/src/logging/Manager.cc:1246:3: error: use of undeclared identifier 'usleep'
			usleep(1000);
			^
	1 warning and 1 error generated.
	*** Error code 1
Comment 1 Thomas Abthorpe freebsd_committer freebsd_triage 2013-10-24 20:19:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->tabthorpe

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-10-25 16:03:04 UTC
Author: tabthorpe
Date: Fri Oct 25 15:02:57 2013
New Revision: 331593
URL: http://svnweb.freebsd.org/changeset/ports/331593

Log:
  - Fix build with clang
  
  PR:		ports/183279
  Submitted by:	Craig Leres <leres@ee.lbl.gov> (maintainer)

Added:
  head/security/bro/files/patch-src-logging-Manager.cc   (contents, props changed)

Added: head/security/bro/files/patch-src-logging-Manager.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/bro/files/patch-src-logging-Manager.cc	Fri Oct 25 15:02:57 2013	(r331593)
@@ -0,0 +1,10 @@
+--- src/logging/Manager.cc.orig	2013-10-24 11:44:30.000000000 -0700
++++ src/logging/Manager.cc	2013-10-24 11:45:09.000000000 -0700
+@@ -1,6 +1,7 @@
+ // See the file "COPYING" in the main distribution directory for copyright.
+ 
+ #include <algorithm>
++#include <unistd.h>				/* pick up usleep() prototype */
+ 
+ #include "../Event.h"
+ #include "../EventHandler.h"
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Thomas Abthorpe freebsd_committer freebsd_triage 2013-10-25 16:03:34 UTC
State Changed
From-To: open->closed

Committed. Thanks!