zeusdeux / re2

Automatically exported from code.google.com/p/re2
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

re2 20130802 build fail on OS X 10.9 #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.  patch util/util.h line46,47 to

#include <unordered_set>
using std::unordered_set;

2. make install prefix=/usr/local/Cellar/re2/20130802

Outputs:

clang: warning: argument unused during compilation: '-pthread'
Undefined symbols for architecture x86_64:
  "operator<<(std::ostream&, re2::StringPiece const&)", referenced from:
     -exported_symbol[s_list] command line option
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [obj/so/libre2.so] Error 1

What is the expected output? What do you see instead?

Without errors and build success.

What version of the product are you using? On what operating system?

Xcode 5, OS X 10.9

Additional information:

https://github.com/mxcl/homebrew/issues/23518

Original issue reported on code.google.com by cnroot...@gmail.com on 24 Oct 2013 at 6:20

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Remove the untangling of re2::StringPiece and it builds fine:

$ diff -u libre2.symbols.darwin*
--- libre2.symbols.darwin   2013-11-28 14:54:06.000000000 -0500
+++ libre2.symbols.darwin~  1979-11-30 00:00:00.000000000 -0500
@@ -6,6 +6,6 @@
 __ZN3re211StringPiece*
 __ZNK3re211StringPiece*
 # operator<<(std::ostream&, re2::StringPiece const&)
-### __ZlsRSoRKN3re211StringPieceE
+__ZlsRSoRKN3re211StringPieceE
 # re2::FilteredRE2*
 __ZN3re211FilteredRE2*
$
$ time make test

Running debug binary tests.
...
ALL TESTS PASSED.

Running static binary tests.
...
ALL TESTS PASSED.

Running dynamic binary tests.
...
ALL TESTS PASSED.

real    0m6.419s
user    0m6.258s
sys 0m0.132s
$ 

Original comment by michah.l...@gmail.com on 28 Nov 2013 at 8:01

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 975db9909185.

Original comment by rsc@swtch.com on 10 Jan 2014 at 1:49