Re: [INTERNALS-WIN] Multiply defined symbols with --enable-sockets
| From: | Pierre Joye | Date: | Mon, 02 Mar 2009 21:25:27 +0000 |
| Subject: | Re: [INTERNALS-WIN] Multiply defined symbols with --enable-sockets | ||
| References: | 1 | Groups: | php.internals.win |
| Request: | Send a blank email to internals-win+get-431@lists.php.net to get a copy of this message | ||
hi,
Be sure to have the platform SDK first in your include path, before
the VC include directory.
Cheers,
On Mon, Mar 2, 2009 at 10:23 PM, David M. Patterson
<dpatterson@dplhenterprises.com> wrote:
> I'm trying to build PHP 5.2.9 (26 February 2009 release).
>
> The build fails with multiply defined globals when I enable the sockets
> extension.
>
> I'm using this configure line:
> cscript /nologo configure.js "--enable-debug" "--enable-apache2-2handler"
> "--with-gd" "--without-t1lib" "--enable-soap"
> "--enable-pdo"
> "--with-mysql=libmysql" "--with-mysqli" "--with-pdo-mysql"
> "--with-openssl"
> "--enable-sockets"
>
> This is the result:
> flock_compat.obj : error LNK2005: _inet_aton already defined in
> php_sockets_win.obj
> flock_compat.obj : warning LNK4006: _inet_aton already defined in
> php_sockets_win.obj; second definition ignored
> Creating library Debug_TS\php5ts_debug.lib and object
> Debug_TS\php5ts_debug.exp
> LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs;
> use /NODEFAULTLIB:library
> LINK : warning LNK4049: locally defined symbol "_php_dom_create_object"
> imported
> Debug_TS\php5ts_debug.dll : fatal error LNK1169: one or more multiply
> defined symbols found
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
> Studio\VC98\BIN\cl.exe"' : return code '0x2'
> Stop.
>
> It is my understanding that the LNK4098 and LNK4049 are usual and just
> noise.
>
> I was having this problem last week with PHP 5.2.8 and it was recommended
> that I get the latest CVS. Since 5.2.9 has been released, I decided to just
> move up to it.
>
> This is something of a show-stopper at the moment.
> Assistance clearing it up would be appreciated.
>
> Thanks in advance,
> Dave
>
>
--
Pierre
http://blog.thepimp.net | http://www.libgd.org