Multiply defined symbols with --enable-sockets

[email protected] ("David M. Patterson")
Newsgroups php.internals.win
Organization DPLH Enterprises
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.