Multiply defined symbols with --enable-sockets

From: Date: Mon, 02 Mar 2009 21:23:47 +0000
Subject: Multiply defined symbols with --enable-sockets
Groups: php.internals.win 
Request: Send a blank email to internals-win+get-430@lists.php.net to get a copy of this message
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

« previous php.internals.win (#430) next »