This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: BUILDING PHP4.2.2 on Windows using supplied .DSW, MS VS C++ 6.0, and Cygwin Headers?


On Thu, 29 Aug 2002 21:55:19 -0700, mike
<twitchkat-cygwin@peer2peerporn.com> 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...?

<snip>

>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@ntlworld.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]