RE: [INTERNALS-WIN] Multiply defined symbols with --enable-sockets

From: Date: Mon, 02 Mar 2009 21:31:53 +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-432@lists.php.net to get a copy of this message
Pierre, I believe that it is. Here is my path (broken up for readability): C:\Program Files\Microsoft SDK\Bin; C:\Program Files\Microsoft SDK\Bin\WinNT; C:\Program Files\Microsoft Visual Studio\Common\msdev98\BIN; C:\Program Files\Microsoft Visual Studio\VC98\BIN; C:\Program Files\Microsoft Visual Studio\Common\TOOLS\WINNT; C:\Program Files\Microsoft Visual Studio\Common/TOOLS; C:\Perl\site\bin; C:\Perl\bin; C:\WINDOWS\system32; C:\WINDOWS;C:\WINDOWS\System32\Wbem; c:\Program Files\Microsoft SQL Server\90\Tools\binn\; C:\PhpDev\php_build\bin; C:\PhpDev\php_build; Am I incorrect or, is something else in the wrong order? Thanks, Dave > -----Original Message----- > From: Pierre Joye [mailto:pierre.php@gmail.com] > Sent: Monday, March 02, 2009 1:25 PM > To: David M. Patterson > Cc: internals-win@lists.php.net > Subject: Re: [INTERNALS-WIN] Multiply defined symbols with --enable- > sockets > > 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 > > -- > Windows Internals Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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