From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Mar 10 22:40:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C52F9AD0 for ; Mon, 10 Mar 2014 22:40:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A12B7A61 for ; Mon, 10 Mar 2014 22:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2AMe0R7060727 for ; Mon, 10 Mar 2014 22:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2AMe03p060726; Mon, 10 Mar 2014 22:40:00 GMT (envelope-from gnats) Resent-Date: Mon, 10 Mar 2014 22:40:00 GMT Resent-Message-Id: <201403102240.s2AMe03p060726@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Daniel Siechniewicz Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0BBB291A for ; Mon, 10 Mar 2014 22:30:08 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D2C8E9AE for ; Mon, 10 Mar 2014 22:30:07 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2AMU6tO090304 for ; Mon, 10 Mar 2014 22:30:06 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2AMU603090299; Mon, 10 Mar 2014 22:30:06 GMT (envelope-from nobody) Message-Id: <201403102230.s2AMU603090299@cgiserv.freebsd.org> Date: Mon, 10 Mar 2014 22:30:06 GMT From: Daniel Siechniewicz To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/187433: net-mgmt/mk-livestatus fix to compile on FreeBSD 10.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Mar 2014 22:40:00 -0000 >Number: 187433 >Category: ports >Synopsis: net-mgmt/mk-livestatus fix to compile on FreeBSD 10.0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 10 22:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Daniel Siechniewicz >Release: 10.0 >Organization: nullDowntime Ltd >Environment: FreeBSD pkg-0001 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: net-mgmt/mk-livestatus wouldn't compile on FreeBSD 10.0 amd64 (compilation for nagios4) with the following error: LogCache.cc:71:5: error: use of undeclared identifier 'pthread_mutex_init' pthread_mutex_init(&_lock, 0); ^ LogCache.cc:87:5: error: use of undeclared identifier 'pthread_mutex_destroy' pthread_mutex_destroy(&_lock); ^ LogCache.cc:92:5: error: use of undeclared identifier 'pthread_mutex_lock' pthread_mutex_lock(&_lock); ^ LogCache.cc:97:5: error: use of undeclared identifier 'pthread_mutex_unlock' pthread_mutex_unlock(&_lock); ^ 1 warning and 4 errors generated. gmake[3]: *** [livestatus_so-LogCache.o] Error 1 gmake[3]: Leaving directory `/wrkdirs/usr/ports/net-mgmt/mk-livestatus/work/mk-livestatus-1.2.4/src' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/wrkdirs/usr/ports/net-mgmt/mk-livestatus/work/mk-livestatus-1.2.4' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `/wrkdirs/usr/ports/net-mgmt/mk-livestatus/work/mk-livestatus-1.2.4' *** Error code 1 Stop. make: stopped in /usr/ports/net-mgmt/mk-livestatus >How-To-Repeat: Attempt to build the port (tested with Nagios 4 option chosen) on FreeBSD 10.0 amd64 >Fix: Please see attached port patch. All it does is include pthread in ./src/LogCache.cc . This causes the port to compile. Also tested successfully on redports: https://redports.org/buildarchive/20140310170910-94842/ https://redports.org/buildarchive/20140310200429-12536/ Patch attached with submission follows: diff -ruN ./net-mgmt/mk-livestatus.orig/files/patch-src__LogCache.cc ./net-mgmt/mk-livestatus/files/patch-src__LogCache.cc --- ./net-mgmt/mk-livestatus.orig/files/patch-src__LogCache.cc 1970-01-01 01:00:00.000000000 +0100 +++ ./net-mgmt/mk-livestatus/files/patch-src__LogCache.cc 2014-03-10 16:30:00.412061899 +0000 @@ -0,0 +1,10 @@ +--- ./src/LogCache.cc.orig 2014-03-10 16:27:13.990923179 +0000 ++++ ./src/LogCache.cc 2014-03-10 16:27:38.607926737 +0000 +@@ -25,6 +25,7 @@ + #include + #include + #include ++#include + #include + #include + #include >Release-Note: >Audit-Trail: >Unformatted: