php-windows Digest 4 Jan 2009 12:34:12 -0000 Issue 3553

Topics (messages 29117 through 29119):

Re: Compiling error on WinXP
        29117 by: Elizabeth M Smith
        29118 by: Marco Schuster

Dear friend happy new year 2009
        29119 by: John Jairo Vega Angulo

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Marco Schuster wrote:
Hi all,

I currently try to compile php 5.2.8 on Windows XP Home SP3 (32bit)
with VS2008 Pro, as described in
<http://www.php.net/manual/en/install.windows.building.php>.
Compiling runs successful and the php.exe works with cscript /nologo
configure.js --disable-all --enable-cli --enable-object-out-dir=..
--disable-ipv6
But, as soon as I add --enable-sockets, I get the following error at
linking stage:
Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation.  All rights reserved.

flock_compat.obj : error LNK2005: _inet_aton already defined in
php_sockets_win.obj
   Creating library ..\Release_TS\php5ts.lib and object ..\Release_TS\php5ts.exp
..\Release_TS\php5ts.dll : fatal error LNK1169: one or more multiply
defined symbols found
NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio
9.0\VC\BIN\cl.exe"' : return code '0x2'
Stop.

What causes this error and how can I fix it?

Thanks,
Marco

PS: Can I build a static exe which contains everything needed except a php.ini?

The manual is sadly out of date - here are some corrections

You no longer need to rename the winres.h for PHP 5.3 or 6.0 (fixed in CVS)

The links for the windows build tools and libraries are incorrect. Windows build tools can be found at
http://pecl2.php.net/downloads/php-windows-builds/php-libs/binary-tools.zip

You do NOT need to build bindlib - instead get the headers and prebuilt resolv.lib files from
http://pecl2.php.net/downloads/php-windows-builds/php-libs
there are also other builds available on the site for up to date required libraries

For more up to date instructions please see http://wiki.php.net/internals/windows for more information on how to build properly on windows

P.S. no you can't build a single .exe unless you manipulate the generated makefile by hand before building - something you need to be well versed in MSVC compiler foo to do ;)
--- End Message ---
--- Begin Message ---
On Sun, Dec 28, 2008 at 2:44 AM, Elizabeth M Smith
<auroraeosr...@gmail.com> wrote:
> The manual is sadly out of date - here are some corrections
Together with Pierre from #php-dev-windows on Freenode I managed to
compile 5.3 :)
I put the steps we used in this blog entry:
http://blog.harddisk.is-a-geek.org/index.php/dev/php/php-on-windows/
It's German, but Google Translate generates enough understandable
English so that someone with edit access can update the manual.

> P.S. no you can't build a single .exe unless you manipulate the generated
> makefile by hand before building - something you need to be well versed in
> MSVC compiler foo to do ;)
Ah, okay - thought it'd be as easy as with a lot of other programs in
Linux...but one can't expect good features in MS products ;)

Thanks,
Marco

--- End Message ---
--- Begin Message ---
Dear friend happy new year 2009

        We are a reliable wholesaler ,we sell electrical product .such as
laptops, televisions,mobile phones,playstations,cameras ,Etc.All items come
with 12month international warranty . If you are interested in something
,please feel free to contact
 us  ,our company can offer you the best price , we hope to estabulish a
well business relationship with you !
 *Web:* *http://www.21st-trader.com/*
*MSN/Mmail:trader2...@hotmail.com*

--- End Message ---

Reply via email to