[Issue 20690] Static LibCurl

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 21 08:11:34 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20690

Richard Cattermole <alphaglosined at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alphaglosined at gmail.com

--- Comment #1 from Richard Cattermole <alphaglosined at gmail.com> ---
The dynamic loading facilities such as dlsym and GetProcAddress can be used to
look for symbols in the host executable image.

As per: https://github.com/dlang/phobos/blob/d5dc0115/std/net/curl.d#L4206

It is configured to do this by default, allowing for static linking into the
executable.

My guess is that the symbol its looking for has an underscore prepended to its
name which is not uncommon. This would cause the issues that you are seeing.

The simplest way to confirm, is to compile curl without the leading underscore
or to i.e. objdump its symbol table.

--


More information about the Digitalmars-d-bugs mailing list