Bug #81639 [Asn->Wfx]: GD does not allow to import exported symbols on Windows

From: Date: Fri, 19 Nov 2021 16:00:26 +0000
Subject: Bug #81639 [Asn->Wfx]: GD does not allow to import exported symbols on Windows
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237872@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81639&edit=1 ID: 81639 Updated by: cmb@php.net Reported by: cmb@php.net Summary: GD does not allow to import exported symbols on Windows -Status: Assigned +Status: Wont fix Type: Bug Package: GD related Operating System: Windows PHP Version: 7.4Git-2021-11-19 (Git) Assigned To: cmb Block user comment: N Private report: N New Comment: Argh! That has already been done for PHP-8.0[1], and given the unfortunate naming of php_gd2.dll we can't use ADD_EXTENSION_DEP() anyway for PHP 7, so I'm closing this as WONTFIX. [1] <https://github.com/php/php-src/commit/340e2ead7719266bd54ec16f1740d5b862cf11f8> Previous Comments: ------------------------------------------------------------------------ [2021-11-19 15:11:12] cmb@php.net Description: ------------ External extension (e.g. PECL/ps) may want to link to GD, but that is not possible on Windows, because the PHP_GD_API symbols are not declared as __declspec(import) when building these extensions, resulting in LNK2019 errors[1]. This is particularly surprising, since there is even a respective comment in the GD sources, claiming that phpi_get_le_gd() is needed for cpdf[2]. [1] <https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk2019?view=msvc-170> [2] <https://github.com/php/php-src/blob/php-7.4.26/ext/gd/gd.c#L1414> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81639&edit=1

« previous php.bugs (#237872) next »