# imap on windows

- Thread: https://externals.io/message/28043
- Original archive: https://news-web.php.net/php.internals/28043
- Started by Frank M. Kromann on 2007-02-15T20:59:36+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #28043 — Frank M. Kromann — 2007-02-15T20:59:36+00:00

URL: https://externals.io/message/28043#28043

Hi Stanislav,

IIRC, you need to modify the Makefile.w2k in c-client. Change the Link
flag /MT to /MD, rebuild imap and rebuild php_imap.dll

- Frank

> Hi!
> 
> Does anybody know how to build IMAP module successfully on WIndows? I 
> try to build it and I get this:
> 
> cclient.lib(os_w2k.obj) : error LNK2005: _flock already defined in 
> flock_compat.obj
> cclient.lib(os_w2k.obj) : error LNK2005: _openlog already defined in 
> wsyslog.obj
> cclient.lib(os_w2k.obj) : error LNK2005: _syslog already defined in 
> wsyslog.obj
> 
> So obviously we have symbol clash between cclient library and PHP. Does

> anybody know the good way to fix it?
> -- 
> Stanislav Malyshev, Zend Products Engineer
> stas@zend.com  http://www.zend.com/

---

## #28044 — Stanislav Malyshev — 2007-02-15T21:02:50+00:00

URL: https://externals.io/message/28043#28044 · In reply to: #28043

> IIRC, you need to modify the Makefile.w2k in c-client. Change the Link
> flag /MT to /MD, rebuild imap and rebuild php_imap.dll

I took cclient.lib from win32build.zip library package from php.net. So 
I guess this package has to be fixed? I don't know who built it though...

-- 
Stanislav Malyshev, Zend Products Engineer
stas@zend.com  http://www.zend.com/
