kokizzu / re2

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

Can not load libre2.so on Mac OS X #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Install re2.
2.Link re2(shared lib) for another program.
3.Run it.

What is the expected output? What do you see instead?
I hope that I succeed in running it.
But I got error:
dyld: Library not loaded: obj/so/libre2.so.0
  Referenced from: /Users/don/src/re2/sample/./a
  Reason: image not found

What version of the product are you using? On what operating system?
-re2 revision f6d25e6f2ce1
-Mac OS X 10.6.8
-i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)

Please provide any additional information below.
I have no problem using static library libre2.a directly.
This problem is shared library only.

Original issue reported on code.google.com by iwadon on 1 Jul 2011 at 5:03

GoogleCodeExporter commented 9 years ago
Maybe -install_name option is lacking when the shared library is created on 
Darwin.
Please check my patch.

Original comment by iwadon on 1 Jul 2011 at 5:25

Attachments:

GoogleCodeExporter commented 9 years ago
I can't reproduce this.

Original comment by rsc@golang.org on 10 Jan 2014 at 2:51