From lichray@gmail.com  Thu Sep 19 04:55:22 2013
Return-Path: <lichray@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 8DDD4365
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Sep 2013 04:55:22 +0000 (UTC)
	(envelope-from lichray@gmail.com)
Received: from mail-yh0-x235.google.com (mail-yh0-x235.google.com [IPv6:2607:f8b0:4002:c01::235])
	(using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 55C9B2080
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Sep 2013 04:55:22 +0000 (UTC)
Received: by mail-yh0-f53.google.com with SMTP id b20so3870298yha.40
        for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Sep 2013 21:55:21 -0700 (PDT)
Received: from localhost (97-81-109-54.dhcp.athn.ga.charter.com. [97.81.109.54])
        by mx.google.com with ESMTPSA id c44sm8359523yho.20.1969.12.31.16.00.00
        (version=TLSv1 cipher=RC4-SHA bits=128/128);
        Wed, 18 Sep 2013 21:55:20 -0700 (PDT)
Message-Id: <523a83b8.44caec0a.07b1.ffffb6bb@mx.google.com>
Date: Wed, 18 Sep 2013 21:55:20 -0700 (PDT)
From: Zhihao Yuan <zy@miator.net>
Sender: Zhihao Yuan <lichray@gmail.com>
Reply-To: Zhihao Yuan <lichray@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Fix build: chinese/sunpinyin
X-Send-Pr-Version: 3.114
X-GNATS-Notify: lichray@gmail.com

>Number:         182221
>Category:       ports
>Synopsis:       Fix build: chinese/sunpinyin
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    sunpoet
>State:          feedback
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 19 05:00:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Fri Sep 20 16:00:48 UTC 2013
>Originator:     Zhihao Yuan
>Release:        FreeBSD 8.4-PRERELEASE amd64
>Organization:
Rackspace Inc.
>Environment:
System: FreeBSD elitebook.hp 8.4-PRERELEASE FreeBSD 8.4-PRERELEASE #10 r249704: Sat May 18 17:45:06 EDT 2013 lichray@elitebook.hp:/usr/obj/usr/src/sys/HOUKAGO amd64


	
>Description:
	
	stdlib.h often needs to be explicitly included with libc++.
>How-To-Repeat:
	
>Fix:
	Add the patch under files/

	

--- patch-stdlib begins here ---
--- src/ime-core/ic_history.cpp.orig	2013-09-19 00:20:23.000000000 -0400
+++ src/ime-core/ic_history.cpp	2013-09-19 00:20:34.000000000 -0400
@@ -42,6 +42,7 @@
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdint.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <cassert>
 #include <arpa/inet.h>
--- src/lexicon/pytrie_gen.cpp.orig	2013-09-19 00:18:39.000000000 -0400
+++ src/lexicon/pytrie_gen.cpp	2013-09-19 00:18:51.000000000 -0400
@@ -11,6 +11,7 @@
 #endif
 
 #include <algorithm>
+#include <stdlib.h>
 
 #include "pytrie_gen.h"
 #include "pinyin_data.h"
--- src/slm/slmprune/slmprune.cpp.orig	2012-05-13 23:55:19.000000000 -0400
+++ src/slm/slmprune/slmprune.cpp	2013-09-19 00:34:42.000000000 -0400
@@ -44,6 +44,7 @@
 #endif
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <math.h>
 
 #include "../sim_slm.h"
--- src/slm/ids2ngram/ids2ngram.cpp.orig	2012-05-13 23:55:19.000000000 -0400
+++ src/slm/ids2ngram/ids2ngram.cpp	2013-09-19 00:36:06.000000000 -0400
@@ -48,6 +48,7 @@
 #endif
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <map>
 #include <vector>
 #include <algorithm>
--- src/slm/ids2ngram/idngram_merge.cpp.orig	2012-05-13 23:55:19.000000000 -0400
+++ src/slm/ids2ngram/idngram_merge.cpp	2013-09-19 00:36:48.000000000 -0400
@@ -48,6 +48,7 @@
 #endif
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <vector>
 #include <algorithm>
 
--- patch-stdlib ends here ---


>Release-Note:
>Audit-Trail:
Class-Changed-From-To: maintainer-update->change-request 
Class-Changed-By: edwin 
Class-Changed-When: Thu Sep 19 05:00:08 UTC 2013 
Class-Changed-Why:  
Fix category (submitter is not maintainer) (via the GNATS Auto Assign 
Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182221 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu Sep 19 05:00:10 UTC 2013 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182221 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: lichray@gmail.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/182221: Fix build: chinese/sunpinyin
Date: Thu, 19 Sep 2013 05:00:09 UT

 Maintainer of chinese/sunpinyin,
 
 Please note that PR ports/182221 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/182221
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Zhihao Yuan <zy@miator.net>
To: bug-followup@FreeBSD.org, lichray@gmail.com
Cc:  
Subject: Re: ports/182221: Fix build: chinese/sunpinyin
Date: Thu, 19 Sep 2013 01:27:19 -0400

 Approved... myself...
 
 -- 
 Zhihao Yuan, ID lichray
 The best way to predict the future is to invent it.
 ___________________________________________________
 4BSD -- http://4bsd.biz/

From: Zhihao Yuan <zy@miator.net>
To: bug-followup@FreeBSD.org, lichray@gmail.com
Cc:  
Subject: Re: ports/182221: Fix build: chinese/sunpinyin
Date: Thu, 19 Sep 2013 01:27:19 -0400

 Approved... myself...
 
 -- 
 Zhihao Yuan, ID lichray
 The best way to predict the future is to invent it.
 ___________________________________________________
 4BSD -- http://4bsd.biz/
Responsible-Changed-From-To: freebsd-ports-bugs->sunpoet 
Responsible-Changed-By: sunpoet 
Responsible-Changed-When: Fri Sep 20 16:00:48 UTC 2013 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182221 
>Unformatted:
