Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2013 11:57:58 -0700 (PDT)
From:      Craig Leres <leres@ee.lbl.gov>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        leres@ee.lbl.gov
Subject:   ports/183279: [PATCH] security/bro: patch newest pkg-fallout/clang problem
Message-ID:  <201310241857.r9OIvw7B053561@fun.ee.lbl.gov>
Resent-Message-ID: <201310241900.r9OJ01j9050361@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         183279
>Category:       ports
>Synopsis:       [PATCH] security/bro: patch newest pkg-fallout/clang problem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 24 19:00:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Craig Leres
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
Lawrence Berkeley National Laboratory
>Environment:
System: FreeBSD fun.ee.lbl.gov 9.1-RELEASE FreeBSD 9.1-RELEASE #11 r26: Wed Sep 11 10:30:14 PDT 2013 leres@fun.ee.lbl.gov:/sys/amd64/compile/LBL amd64


	
>Description:
	It appears the -10 build server has yet another new version
	of clang.

>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

>Fix:
	Include unistd.h (see attached patch).

--- patch.txt begins here ---
--- Makefile.orig	2013-10-19 10:28:31.000000000 -0700
+++ Makefile	2013-10-24 11:50:42.000000000 -0700
@@ -3,7 +3,7 @@
 
 PORTNAME=	bro
 PORTVERSION=	2.1
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	security
 MASTER_SITES=	http://www.bro-ids.org/downloads/release/
 
--- /dev/null	2013-10-24 11:52:05.000000000 -0700
+++ files/patch-src-logging-Manager.cc	2013-10-24 11:50:55.000000000 -0700
@@ -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"
--- patch.txt ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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