Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15688 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81983 invoked by uid 1010); 30 Mar 2005 16:23:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 81968 invoked from network); 30 Mar 2005 16:23:41 -0000 Received: from unknown (HELO gmail.com) (127.0.0.1) by localhost with SMTP; 30 Mar 2005 16:23:41 -0000 X-Host-Fingerprint: 64.233.170.198 rproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.170.198:13739] helo=rproxy.gmail.com) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 9F/36-22409-D82DA424 for ; Wed, 30 Mar 2005 11:23:41 -0500 Received: by rproxy.gmail.com with SMTP id i8so152779rne for ; Wed, 30 Mar 2005 08:23:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=XjqpjTeg9XilFT+fxB2ZTNNOzfZOl3Stg0qGNsgJqd5UAVLGATzq2gHUhaDF3/W160bnrY5esC/dvT3kreghKibC5UneQLXhZu28ZYb/q95MQkVOjJiPY9zQGKlsIIYIJ512FQ9dV9l1HGff5ZtFJRqRrv8eczr91T30Jjr/Qc4= Received: by 10.38.150.45 with SMTP id x45mr504937rnd; Wed, 30 Mar 2005 08:23:37 -0800 (PST) Received: by 10.38.65.30 with HTTP; Wed, 30 Mar 2005 08:23:37 -0800 (PST) Message-ID: Date: Wed, 30 Mar 2005 11:23:37 -0500 Reply-To: Dan Scott To: internals@lists.php.net In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <424A4F09.6040603@picorp.com> Subject: Re: [PHP-DEV] php5 win build From: denials@gmail.com (Dan Scott) On Wed, 30 Mar 2005 08:36:28 -0500, Dan Scott wrote: > Try grabbing the latest CVS version of PHP or the latest 5.0.x > snapshots from http://snaps.php.net/ -- there were a number of patches > since 5.0.3 that helped me get further on my attempt to compile on > Windows using the Microsoft Visual C++ Toolkit 2003 (for C compiler) + > Platform SDK for Windows (for most of the required header files) + > Microsoft .NET SDK (for nmake). > > However, my build is now dying because it can't find winres.h :( > > Dan > Okay, so I copied the Microsoft Platform SDK for Windows XP SP2\include\WinResrc.h to winres.h and that got the compile all the way to the linking point. But now it dies (so close!) with: Creating library Release_TS\php5ts.lib and object Release_TS\php5ts.exp resolv.lib(inet_addr.obj) : error LNK2019: unresolved external symbol __pctype referenced in function _inet_aton resolv.lib(inet_addr.obj) : error LNK2019: unresolved external symbol ___mb_cur_max referenced in function _inet_aton Release_TS\php5ts.dll : fatal error LNK1120: 2 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\ Vc7\bin\link.exe"' : return code '0x460' Reading http://www.zend.com/manual/install.windows.building.php suggests that to fix this problem I need to rebuild resolv.lib -- but using the bindlib.dsp file requires msdev, which requires a full MS Visual Studio environment. That's a showstopper for those of us trying to do this with just the free-beer tools available from Microsoft. However, it is apparently possible to export a DSP file as a Makefile from MS Visual Studio. If someone with a full MS Visual Studio environment would be willing to make that exported makefile available, I think it might help close this final loop and would be a worthwhile addition to the bindlib_w32.zip archive. Dan