Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: swamp-dog AT ntlworld DOT com (Guy Harrison) To: Subject: Re: BUILDING PHP4.2.2 on Windows using supplied .DSW, MS VS C++ 6.0, and Cygwin Headers? Date: Fri, 30 Aug 2002 15:55:11 GMT Message-ID: <3d719271.900991377@smtp.ntlworld.com> References: <1030683319 DOT 3d6efab7e8ff7 AT peer2peerporn DOT com> In-Reply-To: <1030683319.3d6efab7e8ff7@peer2peerporn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g7UFuwL19094 On Thu, 29 Aug 2002 21:55:19 -0700, mike wrote: > > >Hi, I've been trying to compile PHP on Windows for days. > >I have had zero success and would appreciate some help/advice from anyone who >has done it, or from anyone familiar with building Visual C++ projects that >make use of cygwin headers...? >Thanks for any help/suggestions you can provide -- including alternate >assistance location(s). I'm not about to get into VC. However, if it helps these are the options I last used to configure php-4-2.1 for a cygwin php... --with-apxs=/usr/sbin/apxs --enable-cli --enable-ftp ...and I guess you can dispense with the apxs one (not sure it went entirely to plan anyway). You'll end up with a (cygwin1.dll dependant) php.exe - after which you may or may not care to figure in "-mno-cygwin" and try for a mingw. Seems I fiddled a little. Don't apply unless required - some looks "good", some looks "hacky"... *** php-4.2.1/ext/xml/expat/expat.h.ORIGINAL Wed Jul 24 23:39:11 2002 --- php-4.2.1/ext/xml/expat/expat.h Thu Jul 25 00:09:39 2002 *************** *** 10,16 **** #include "php_compat.h" #ifndef XMLPARSEAPI ! # if defined(__declspec) && !defined(__BEOS__) # define XMLPARSEAPI(type) __declspec(dllimport) type __cdecl # else # define XMLPARSEAPI(type) type --- 10,16 ---- #include "php_compat.h" #ifndef XMLPARSEAPI ! # if defined(__declspec) && !defined(__BEOS__) && !defined(__CYGWIN__) # define XMLPARSEAPI(type) __declspec(dllimport) type __cdecl # else # define XMLPARSEAPI(type) type *** php-4.2.1/Zend/zend_ini_scanner.c.ORIGINAL Thu Jul 25 02:07:31 2002 --- php-4.2.1/Zend/zend_ini_scanner.c Thu Jul 25 07:00:47 2002 *************** *** 965,971 **** YY_RULE_SETUP { #if DEBUG ! php_error(E_NOTICE,"Unexpected character on line %d: '%s' (ASCII %d)\n", yylineno, yytext, yytext[0]); #endif } YY_BREAK --- 965,971 ---- YY_RULE_SETUP { #if DEBUG ! zend_error(E_NOTICE,"Unexpected character on line %d: '%s' (ASCII %d)\n", yylineno, yytext, yytext[0]); #endif } YY_BREAK -- swamp-dog AT ntlworld DOT com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/