|
Posted by treble54 on 06/04/07 15:35
I need to build PHP from source with the pdo_ibm extension and I am
having an issue with it. Firstly, I am using Visual Studio .NET 2003
and I am building PHP from source through the Visual Studio Command
Prompt. When I get to the nmake step, it gets through everything until
it hits the zend_language_scanner.l file. Then I get these errors:
zend_language_scanner.l(24) : warning C4005: 'yyleng' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(12) : see
previous defini
tion of 'yyleng'
zend_language_scanner.l(25) : warning C4005: 'yytext' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(16) : see
previous defini
tion of 'yytext'
zend_language_scanner.l(26) : warning C4005: 'yytext_ptr' : macro
redefinition
zend_language_scanner.c(289) : see previous definition of
'yytext_ptr'
zend_language_scanner.l(27) : warning C4005: 'yyin' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(11) : see
previous defini
tion of 'yyin'
zend_language_scanner.l(28) : warning C4005: 'yyout' : macro
redefinition
c:\work\php-5.2.2\Zend\zend_language_scanner.c(14) : see
previous defini
tion of 'yyout'
zend_language_scanner.c(3607) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
zend_language_scanner.c(3610) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
zend_language_scanner.c(5309) : warning C4133: '=' : incompatible
types - from '
zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5429) : error C2065: 'tsrm_ls' : undeclared
identifier
zend_language_scanner.c(5522) : warning C4133: 'function' :
incompatible types -
from 'zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5522) : error C2039: '_flag' : is not a member
of '_zend
_file_handle'
c:\work\php-5.2.2\Zend\zend_stream.h(40) : see declaration of
'_zend_fil
e_handle'
zend_language_scanner.c(5522) : warning C4133: 'function' :
incompatible types -
from 'zend_file_handle *' to 'FILE *'
zend_language_scanner.c(5522) : error C2039: '_flag' : is not a member
of '_zend
_file_handle'
c:\work\php-5.2.2\Zend\zend_stream.h(40) : see declaration of
'_zend_fil
e_handle'
zend_language_scanner.c(5794) : warning C4133: '=' : incompatible
types - from '
FILE *' to 'zend_file_handle *'
NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'
Stop.
If you have any suggestions, I would very much appreciate it. The only
option for me right now is to build it from source. If anyone knows
that it cannot be done using the Visual Studio .NET 2003 Command
Prompt, please let me know. It is my understanding that it can be
built using this environment but you never know. Thanks in advance for
any help you all can provide.
For reference, I am going by the instructions listed here:
http://us2.php.net/manual/en/install.windows.building.php#install.windows.building.new
and I am using this command to configure the configure.js file:
cscript configure.js --with-extra-includes=c:\win32build\include; --
with-extra-libs=c:\win32build\lib; --enable-debug --disable-cgi --
enable-cli --with-pdo-ibm="C:\SQLLIB",shared
-- treble54
[Back to original message]
|