[Issue 11478] New: shared library on osx: worked in 2.062, fails in 2.063.2, still fails in 2.064
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 9 00:16:08 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11478
Summary: shared library on osx: worked in 2.062, fails in
2.063.2, still fails in 2.064
Product: D
Version: D2
Platform: All
OS/Version: Mac OS X
Status: NEW
Severity: regression
Priority: P2
Component: druntime
AssignedTo: nobody at puremagic.com
ReportedBy: thelastmammoth at gmail.com
--- Comment #0 from thelastmammoth at gmail.com 2013-11-09 00:16:01 PST ---
----
module foo;
import std.stdio;
extern(C) void foo1(){ printf("ok\n");}
----
module main2;
pragma(lib,"foo");
extern(C) void foo1();
void main(){foo1;}
----
dmd -oflibfoo.dylib -shared foo.d;
dmd -L-L. main.d
./main
--output:
2.062:
OK
2.063(and 2.063.2):
sh: line 3: 92704 Segmentation fault: 11 ./main (cf Issue 10440)
2.064
Shared libraries are not yet supported on OSX. //pull
sh: line 3: 92736 Segmentation fault: 11 ./main
Issue 10440 was closed as 'RESOLVED FIXED' but I don't see how it addresses the
problem. I understand shared libs were not officially completely supported in
2.062 however I *was* able to build usable apps built around D plugins (with
Runtime.initialize etc), notably a REPL based on shared libs. Since upgrading
from 2.062, I can't use those.
Please revert old behavior even if behavior is partial.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list