Bug 183279 - [PATCH] security/bro: patch newest pkg-fallout/clang problem
Summary: [PATCH] security/bro: patch newest pkg-fallout/clang problem
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Thomas Abthorpe
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-24 20:00 UTC by Craig Leres
Modified: 2013-10-25 16:10 UTC (History)
1 user (show)

See Also:


Attachments
patch.txt (780 bytes, text/plain)
2013-10-24 20:00 UTC, Craig Leres
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Leres freebsd_committer 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 2013-10-24 20:19:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->tabthorpe

I'll take it.
Comment 2 dfilter freebsd_committer 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 2013-10-25 16:03:34 UTC
State Changed
From-To: open->closed

Committed. Thanks!