Bug #70158 [Asn->Opn]: Building with static imap fails
| From: | cmb@php.net | Date: | Tue, 28 Jul 2015 19:18:23 +0000 |
| Subject: | Bug #70158 [Asn->Opn]: Building with static imap fails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-194786@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70158&edit=1
ID: 70158
Updated by: cmb@php.net
Reported by: cmb@php.net
Summary: Building with static imap fails
-Status: Assigned
+Status: Open
Type: Bug
Package: IMAP related
Operating System: Windows
PHP Version: 7.0Git-2015-07-28 (Git)
-Assigned To: cmb
+Assigned To:
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2015-07-28 13:28:39] cmb@php.net
Description:
------------
On Windows trying to build with the imap extension statically
linked fails. This happens with the latest deps[1], but most
likely also with self compiled c-client libs.
The cause is that openlog(), syslog() and flock() are defined by
imap's[2] as well as PHP's[3] Unix compat layer for Windows.
[1] <http://windows.php.net/downloads/php-sdk/>
[2] <https://github.com/winlibs/imap/blob/master/src/osdep/nt/yunchan.c>
[3] <https://github.com/php/php-src/tree/php-7.0.0beta2/win32>
Test script:
---------------
configure --disable-all --enable-cli --with-imap
nmake
Expected result:
----------------
no errors
Actual result:
--------------
cclient_a.lib(os_w2k.obj) : error LNK2005: flock already defined in flock_compat.obj
cclient_a.lib(os_w2k.obj) : error LNK2005: openlog already defined in wsyslog.obj
cclient_a.lib(os_w2k.obj) : error LNK2005: syslog already defined in wsyslog.obj
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70158&edit=1