ports/182221: Fix build: chinese/sunpinyin
Zhihao Yuan
zy at miator.net
Thu Sep 19 05:00:01 UTC 2013
>Number: 182221
>Category: ports
>Synopsis: Fix build: chinese/sunpinyin
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu Sep 19 05:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list