From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Feb 13 09:40:07 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B206F106564A for ; Mon, 13 Feb 2012 09:40:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6DCBE8FC1C for ; Mon, 13 Feb 2012 09:40:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1D9e7BD098683 for ; Mon, 13 Feb 2012 09:40:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1D9e7I6098682; Mon, 13 Feb 2012 09:40:07 GMT (envelope-from gnats) Resent-Date: Mon, 13 Feb 2012 09:40:07 GMT Resent-Message-Id: <201202130940.q1D9e7I6098682@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, Changming Sun Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 755921065670 for ; Mon, 13 Feb 2012 09:32:55 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 649448FC12 for ; Mon, 13 Feb 2012 09:32:55 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q1D9WtAM067593 for ; Mon, 13 Feb 2012 09:32:55 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q1D9WtVK067587; Mon, 13 Feb 2012 09:32:55 GMT (envelope-from nobody) Message-Id: <201202130932.q1D9WtVK067587@red.freebsd.org> Date: Mon, 13 Feb 2012 09:32:55 GMT From: Changming Sun To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/165089: The patch of devel/glog is a little wrong X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 09:40:07 -0000 >Number: 165089 >Category: ports >Synopsis: The patch of devel/glog is a little wrong >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 Feb 13 09:40:07 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Changming Sun >Release: FreeBSD 9.0 >Organization: tudou.inc. >Environment: FreeBSD test27.localdomain 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: The patch of devel/glog is a little wrong --- src/utilities.cc.orig 2010-06-15 14:28:09.000000000 +0800 +++ src/utilities.cc 2011-04-07 17:00:18.000000000 +0800 @@ -227,8 +227,6 @@ #ifndef __NR_gettid #ifdef OS_MACOSX #define __NR_gettid SYS_gettid -#elif ! defined __i386__ -#error "Must define __NR_gettid for non-x86 platforms" #else #define __NR_gettid 224 #endif The syscall of "224" is SYS_freebsd7_msgctl >How-To-Repeat: portsnap fetch update read /usr/ports/devel/glog/files/extra-patch-src-utilities.cc >Fix: I don't know how to get thread id in FreeBSD. If we don't have such a function, we can just return pid. pid_t GetTID() { return getpid(); } >Release-Note: >Audit-Trail: >Unformatted: