http://d.puremagic.com/issues/show_bug.cgi?id=11342
Summary: shared libs don't play well with etc.c.zlib
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: druntime
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Artem Tarasov <[email protected]> 2013-10-24 12:16:18
PDT ---
If I compile a file importing etc.c.zlib into a shared library as
rdmd --build-only -shared -fPIC -lphobos2 testsharedlib.d,
I get this when trying to load the library:
Fatal Error while loading
'/home/lomereiter/dmd2/linux/lib64/libphobos2.so.0.64':
The module 'etc.c.zlib' is already defined in './testsharedlib'.
---
testsharedlib.d:
import etc.c.zlib;
void main() {}
---
loading from Python:
import ctypes
lib = ctypes.CDLL('./testsharedlib')
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------