Re: Using dlopen/dlsym

2016-12-26 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 27 December 2016 at 00:05:39 UTC, Andrei Alexandrescu wrote: I'm building with no flags using dmd. Do dmd -v for verbose output and see what linker flags it is doing. Perhaps you have a configuration difference that is causing it not to export the symbol (`fun` isn't marked `expo

Re: DMD travis-ci problems with new GDC toolchains

2016-12-26 Thread Martin Nowak via Digitalmars-d
On Sunday, 25 December 2016 at 19:25:40 UTC, Johannes Pfau wrote: This is not place to post bug reports. It was only by chance that I read it. Better file a Bugzilla Ticket, and notify the author of related tools/scripts. Since noone can monitor everything surrounding D, mailing the author w

Re: D-Apt DMD

2016-12-26 Thread rikki cattermole via Digitalmars-d
On 27/12/2016 6:05 AM, Russel Winder via Digitalmars-d wrote: I find the DMD from D-Apt is still broken wrt -fPIC and the ability to compile any D code. Not a problem per se since LDC and GDC work fine. However I do miss rdmd. For future reference, source here[0]. Easy enough to compile + add

Simple library initialization

2016-12-26 Thread Andrei Alexandrescu via Digitalmars-d
Walter and I investigated a bit the way C module initialization/termination works. https://issues.dlang.org/show_bug.cgi?id=17035 is the result. This preapproved enhancement would make life easier for folks who want to write libraries that don't depend on druntime. Andrei

Re: Using dlopen/dlsym

2016-12-26 Thread Andrei Alexandrescu via Digitalmars-d
On 12/26/2016 07:35 PM, Nicholas Wilson wrote: On Tuesday, 27 December 2016 at 00:05:39 UTC, Andrei Alexandrescu wrote: Consider this code: === import core.sys.posix.dlfcn; extern(C) void fun() {} void main() { fun(); void *hndl = dlopen(null, RTLD_LAZY); if (!hndl) assert(0

Re: Using dlopen/dlsym

2016-12-26 Thread Benjiro via Digitalmars-d
On Tuesday, 27 December 2016 at 00:05:39 UTC, Andrei Alexandrescu wrote: Consider this code: === import core.sys.posix.dlfcn; extern(C) void fun() {} void main() { fun(); void *hndl = dlopen(null, RTLD_LAZY); if (!hndl) assert(0); auto p = dlsym(hndl, "fun".ptr); if (

Re: Using dlopen/dlsym

2016-12-26 Thread Nicholas Wilson via Digitalmars-d
On Tuesday, 27 December 2016 at 00:05:39 UTC, Andrei Alexandrescu wrote: Consider this code: === import core.sys.posix.dlfcn; extern(C) void fun() {} void main() { fun(); void *hndl = dlopen(null, RTLD_LAZY); if (!hndl) assert(0); auto p = dlsym(hndl, "fun".ptr); Does a

Using dlopen/dlsym

2016-12-26 Thread Andrei Alexandrescu via Digitalmars-d
Consider this code: === import core.sys.posix.dlfcn; extern(C) void fun() {} void main() { fun(); void *hndl = dlopen(null, RTLD_LAZY); if (!hndl) assert(0); auto p = dlsym(hndl, "fun".ptr); if (!p) { import core.stdc.stdio; printf("%s\n", dlerror()

Re: DMD travis-ci problems with new GDC toolchains

2016-12-26 Thread Jacob Carlborg via Digitalmars-d
On 2016-12-25 20:25, Johannes Pfau wrote: There's also a related issue with libatomic: In order to support 128bit operations in core.atomic GDC has to link libatomic. libatomic is not available on ubuntu 12.04... An alternative could be to use Docker to run a later version of Ubuntu, if libat

Re: D future ...

2016-12-26 Thread WebFreak001 via Digitalmars-d
On Monday, 26 December 2016 at 19:37:34 UTC, David Gileadi wrote: On 12/24/16 5:11 PM, WebFreak001 wrote: On Thursday, 22 December 2016 at 04:47:06 UTC, Chris Wright wrote: CTFE ( Stefan is dealing with that ), Documentation, better Editor support... I think code-d could potentially be extend

Re: D future ...

2016-12-26 Thread David Gileadi via Digitalmars-d
On 12/24/16 5:11 PM, WebFreak001 wrote: On Thursday, 22 December 2016 at 04:47:06 UTC, Chris Wright wrote: CTFE ( Stefan is dealing with that ), Documentation, better Editor support... I think code-d could potentially be extended to install its dependencies, which would improve the situation t

Re: D-Apt DMD

2016-12-26 Thread Seb via Digitalmars-d
On Monday, 26 December 2016 at 17:05:13 UTC, Russel Winder wrote: I find the DMD from D-Apt is still broken wrt -fPIC and the ability to compile any D code. Not a problem per se since LDC and GDC work fine. However I do miss rdmd. 1) You can use rdmd with any compiler - use `--compiler` 2) I

D-Apt DMD

2016-12-26 Thread Russel Winder via Digitalmars-d
I find the DMD from D-Apt is still broken wrt -fPIC and the ability to compile any D code. Not a problem per se since LDC and GDC work fine. However I do miss rdmd. -- Russel. = Dr Russel Winder t: +44 20 7585 2200