Bug #70158 [NEW]: Building with static imap fails
| From: | cmb@php.net | Date: | Tue, 28 Jul 2015 13:28:40 +0000 |
| Subject: | Bug #70158 [NEW]: Building with static imap fails | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-194777@lists.php.net to get a copy of this message | ||
From: cmb
Operating system: Windows
PHP version: 7.0Git-2015-07-28 (Git)
Package: IMAP related
Bug Type: Bug
Bug description:Building with static imap fails
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 bug report at https://bugs.php.net/bug.php?id=70158&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70158&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70158&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70158&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70158&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70158&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70158&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70158&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70158&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70158&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70158&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70158&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70158&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70158&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70158&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70158&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70158&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70158&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70158&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70158&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70158&r=mysqlcfg