• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/thrift/thrift-04-failed-to-build-on-OSX-10.9-GM.patch
Romain NaourRomain Naour committed cc5b999cf6919 Feb 2014
Raw file
Source viewDiff to previous
 
1
THRIFT-2229 thrift failed to build on OSX 10.9 GM
2
​
3
---
4
 compiler/cpp/src/thrifty.yy |  4 ++--
5
 tutorial/cpp/CppClient.cpp  |  6 +++---
6
 tutorial/cpp/CppServer.cpp  | 16 ++++++++--------
7
 3 files changed, 13 insertions(+), 13 deletions(-)
8
 mode change 100644 => 100755 compiler/cpp/src/thrifty.yy
9
​
10
diff --git a/compiler/cpp/src/thrifty.yy b/compiler/cpp/src/thrifty.yy
11
old mode 100644
12
new mode 100755
13
index b543552..8814332
14
--- a/compiler/cpp/src/thrifty.yy
15
+++ b/compiler/cpp/src/thrifty.yy
16
@@ -675,7 +675,7 @@ ConstValue:
17
       $$ = new t_const_value();
18
       $$->set_integer($1);
19
       if (!g_allow_64bit_consts && ($1 < INT32_MIN || $1 > INT32_MAX)) {
20
-        pwarning(1, "64-bit constant \"%"PRIi64"\" may not work in all languages.\n", $1);
21
+        pwarning(1, "64-bit constant \"%" PRIi64"\" may not work in all languages.\n", $1);
22
       }
23
     }
24
 | tok_dub_constant
25
@@ -987,7 +987,7 @@ FieldIdentifier:
26
              * warn if the user-specified negative value isn't what
27
              * thrift would have auto-assigned.
28
              */
29
-            pwarning(1, "Nonpositive field key (%"PRIi64") differs from what would be "
30
+            pwarning(1, "Nonpositive field key (%" PRIi64") differs from what would be "
31
                      "auto-assigned by thrift (%d).\n", $1, y_field_val);
32
           }
33
           /*
34
diff --git a/tutorial/cpp/CppClient.cpp b/tutorial/cpp/CppClient.cpp
35
index ba71caa..b91df2e 100644
36
--- a/tutorial/cpp/CppClient.cpp
37
+++ b/tutorial/cpp/CppClient.cpp
38
@@ -38,9 +38,9 @@ using namespace shared;
39
 using namespace boost;
40
 
41
 int main(int argc, char** argv) {
42
-  shared_ptr<TTransport> socket(new TSocket("localhost", 9090));
43
-  shared_ptr<TTransport> transport(new TBufferedTransport(socket));
44
-  shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport));
45
+  boost::shared_ptr<TTransport> socket(new TSocket("localhost", 9090));
46
+  boost::shared_ptr<TTransport> transport(new TBufferedTransport(socket));
47
+  boost::shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport));
48
   CalculatorClient client(protocol);
49
 
50
   try {
51
diff --git a/tutorial/cpp/CppServer.cpp b/tutorial/cpp/CppServer.cpp
52
index d0dbad9..f19258c 100644
53
--- a/tutorial/cpp/CppServer.cpp
54
+++ b/tutorial/cpp/CppServer.cpp
55
@@ -113,11 +113,11 @@ protected:
56
 
57
 int main(int argc, char **argv) {
58
 
59
-  shared_ptr<TProtocolFactory> protocolFactory(new TBinaryProtocolFactory());
60
-  shared_ptr<CalculatorHandler> handler(new CalculatorHandler());
61
-  shared_ptr<TProcessor> processor(new CalculatorProcessor(handler));
62
-  shared_ptr<TServerTransport> serverTransport(new TServerSocket(9090));
63
-  shared_ptr<TTransportFactory> transportFactory(new TBufferedTransportFactory());
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.