在Windows XP上从源代码构建PHP 5.2.2的问题 [英] Issue with building PHP 5.2.2 from source on Windows XP

查看:48
本文介绍了在Windows XP上从源代码构建PHP 5.2.2的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用pdo_ibm扩展从源代码构建PHP,并且我有一个问题。首先,我使用Visual Studio .NET 2003

我正在通过Visual Studio命令从源代码构建PHP

提示。当我进入nmake步骤时,它会通过所有内容直到

它命中zend_language_scanner.l文件。然后我得到这些错误:


zend_language_scanner.l(24):警告C4005:''yyleng'':宏

重新定义

c:\ work\php-5.2.2\Zend\zend_language_scanner.c(12):参见

之前的defini
$ b $''yyleng' '

zend_language_scanner.l(25):警告C4005:''yytext'':宏

重新定义

c:\ work\php -5.2.2\Zend\zend_language_scanner.c(16):参见

之前的defini
$'$ b $''yytext''

zend_language_scanner.l(26):警告C4005:''yytext_ptr'':宏

重新定义

zend_language_scanner.c(289):参见先前的定义

''yytext_ptr''

zend_language_scanner.l(27):警告C4005:''yyin'':宏

重新定义

c :\ work\php-5.2.2\Zend\zend_language_scanner.c(11):见

之前的defini

tio n''yyin''

zend_language_scanner.l(28):警告C4005:''yyout'':宏

重新定义

c: \ work\php-5.2.2\Zend\zend_language_scanner.c(14):参见

之前的defini
$ b $''yyout''

zend_language_scanner.c(3607):警告C4133:''='':不兼容

类型 - 从''

FILE *''到' 'zend_file_handle *''

zend_language_scanner.c(3610):警告C4133:''='':不兼容

类型 - 来自''

FILE *''to''zend_file_handle *''

zend_language_scanner.c(5309):警告C4133:''='':不兼容

类型 - 来自''

zend_file_handle *'''''FILE *''

zend_language_scanner.c(5429):错误C2065:''tsrm_ls'':未声明

标识符

zend_language_scanner.c(5522):警告C4133:''function'':

不兼容的类型 -

从''zend_file_handle *''到''FILE *''

zend_language_scanner.c(5522):错误C2039: ''_flag'':不是会员

''_ _ _ _ _ _ _ _ _ _ _ _ _ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ .2\Zend\zend_stream.h(40):见声明

''_ zend_fil

e_handle''

zend_language_scanner.c (5522):警告C4133:''功能'':

不兼容的类型 -

从''zend_file_handle *''到''FILE *''

zend_language_scanner.c(5522):错误C2039:''_ flag'':不是会员

''_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >
c:\work\php-5.2.2 \Zend\zend_stream.h(40):见声明

''_ zend_fil

e_handle''

zend_language_scanner.c(5794):警告C4133:''='':不兼容

类型 - 来自''

FILE *'''''zend_file_handle *''

NMAKE:致命错误U1077:''" cl.exe"'':返回代码''0x2''

停止。


如果您有任何建议,我将非常感激。我现在唯一的

选项是从源代码构建它。如果有人知道

使用Visual Studio .NET 2003命令无法完成

提示,请告诉我。据我所知,它可以是使用这种环境构建的,但你永远不会知道。提前致谢

您可以提供任何帮助。


作为参考,我按照此处列出的说明进行操作:
http://us2.php .net / manual / en / install ... s.building.new


我正在使用此命令配置configure.js文件:

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

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...s.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

推荐答案

6月4日上午10点35分,treble54< trebl ... @ gmail.comwrote:
On Jun 4, 10:35 am, treble54 <trebl...@gmail.comwrote:

我需要使用pdo_ibm扩展从源代码构建PHP,并且我对它有问题。
有问题。首先,我使用Visual Studio .NET 2003

我正在通过Visual Studio命令从源代码构建PHP

提示。当我进入nmake步骤时,它会通过所有内容直到

它命中zend_language_scanner.l文件。然后我得到这些错误:


zend_language_scanner.l(24):警告C4005:''yyleng'':宏

重新定义

c:\ work\php-5.2.2\Zend\zend_language_scanner.c(12):参见

之前的defini
$ b $''yyleng' '

zend_language_scanner.l(25):警告C4005:''yytext'':宏

重新定义

c:\ work\php -5.2.2\Zend\zend_language_scanner.c(16):参见

之前的defini
$'$ b $''yytext''

zend_language_scanner.l(26):警告C4005:''yytext_ptr'':宏

重新定义

zend_language_scanner.c(289):参见先前的定义

''yytext_ptr''

zend_language_scanner.l(27):警告C4005:''yyin'':宏

重新定义

c :\ work\php-5.2.2\Zend\zend_language_scanner.c(11):见

以前的defini
$'$ b $''yyin''

zend_language_scanner.l(28):警告C4005:''yyout'':宏

重新定义

c:\ work\php-5.2.2\Zend\zend_language_scanner.c(14):参见

之前的defini
$ b $ ''yyout'''b
zend_language_scanner.c(3607):警告C4133:''='':不兼容

类型 - 来自''

FILE *''to''zend_file_handle *''

zend_language_scanner.c(3610):警告C4133:''='':不兼容

类型 - 从''

FILE *''到''zend_file_handle *''

zend_language_scanner.c(5309):警告C4133:''='':不兼容
类型 - 从''

zend_file_handle *''到''FILE *''

zend_language_scanner.c(5429):错误C2065:''tsrm_ls '':未声明

标识符

zend_language_scanner.c(5522):警告C4133:''功能'':

不兼容的类型 -

从''zend_file_handle *''到''FILE *''

zend_language_scanner.c(5522):错误C2039:''_ flag'':不是会员

''_ _ _ _ _ _ _ _ _ $ $ $ $ $
_file_handle''

c:\work\php-5.2.2 \Zend\zend_stream.h(40):见声明

''_ zend_fil

e_handle''

zend_language_scanner.c(5522):警告C4133:''function'':

不兼容的类型 -

从''zend_file_handle *''到''FILE *''

zend_language_scanner.c(5522):错误C2039:''_ flag'':不是会员

''_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_file_handle''

c:\work\php-5.2.2\Zend\zend_stream.h(40):见声明

' '_zend_fil

e_handle''

zend_language_scanner.c(5794):警告C4133:''='' :不兼容

类型 - 从''

FILE *''到''zend_file_handle *''

NMAKE:致命错误U1077:'' " cl.exe"'':返回代码''0x2''

停止。


如果您有任何建议,我将非常感谢。我现在唯一的

选项是从源代码构建它。如果有人知道

使用Visual Studio .NET 2003命令无法完成

提示,请告诉我。据我所知,它可以是使用这种环境构建的,但你永远不会知道。提前感谢

您可以提供的任何帮助。


作为参考,我按照此处列出的说明进行操作: http://us2.php.net/manual/en/install ... hp#install.win ...


我正在使用此命令配置configure.js文件:

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",分享


- treble54
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...hp#install.win...

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



我想我会添加一些关于我所做的事情的信息。我已经能够通过在Visual Studio命令提示符下输入

此命令来超越上面列出的三个错误:

flex。 exe -i -SZend / flex.skl -Pzend -oZend / zend_language_scanner.c Zend /

zend_language_scanner.l


我在makefile中找到了这一行但是它有

I thought I would add some information on what I have done. I have
been able to progress past the three errors listed above by type in
this command at the Visual Studio Command Prompt:
flex.exe -i -SZend/flex.skl -Pzend -oZend/zend_language_scanner.c Zend/
zend_language_scanner.l

I found this line in the makefile but it had


(FLEX)(FLEX = flex.exe)

而不是flex.exe。


我接下来要做的就是将libxml2和iconv添加到\ext

目录中。现在我得到这个作为输出:


php_xmlwriter.c

rc / fo Debug_TS\php5ts_debug.dll.res / d

FILE_DESCRIPTION =" \" PHP脚本我

nterpreter \"" / d FILE_NAME =" \" php5ts_debug.dll \"" / d

PRODUCT_NAME =" \PHP脚本

口译员\"" / IDebug_TS / d MC_INCLUDE =" \" Debug_TS\wsyslog.rc \""

win32 \ build

\ template.rc

php5ts_debug.dll.def:错误LNK2001:未解析的外部符号

_libiconv_versi

on

php5ts_debug.dll.def :错误LNK2001:未解析的外部符号

compressBound

php5ts_debug.dll.def:错误LNK2001:未解析的外部符号

deflateBound

php5ts_debug.dll.def:错误LNK2001:未解析的外部符号

deflatePrime

php5ts_debug.dll.def:错误LNK2001:未解析的外部符号

gzclearerr

php5ts_debug.dll.def:错误LNK2001:未解析的外部符号

gzungetc

php5ts_debug.dll.def:错误LNK2001:未解决外部符号

inflateBack

php5ts_debug.dll.def:错误LNK2001:未解析的外部符号

inflateBackEnd

php5ts_debug。 dll.def:错误LNK2 001:未解析的外部符号

inflateBackInit

_

php5ts_debug.dll.def:错误LNK2001:未解析的外部符号

inflateCopy

php5ts_debug.dll.def:错误LNK2001:未解析的外部符号

zlibCompileFlag

s

Debug_TS \ php5ts_debug.lib:致命错误LNK1120:11未解决

externals

链接:致命错误LNK1141:导出文件构建失败

NMAKE:致命错误U1077:''" C:\Program Files \ MicrosoftMicrosoft Visual

Studio .NET 2003 \

VC7 \ BIN \ cl.exe"' ':返回代码''0x2''

停止。


我以前从未处理过什么外部符号而且我希望

某人可能会提供一些他们可以提供给我的信息。我的

首先想到的是它可能是Makefile的一个问题,因为我是

提醒链接问题我看到未解析的外部符号但是我

我不确定。


再次感谢您提供的任何帮助。请随时发送电子邮件至

tr ****** @ gmail.com 如果你不想在这里发帖。


- treble54

(FLEX) (FLEX = flex.exe)
instead of flex.exe.

The next thing I had to do was add libxml2 and iconv to the \ext
directory. Now I am getting this as output:

php_xmlwriter.c
rc /fo Debug_TS\php5ts_debug.dll.res /d
FILE_DESCRIPTION="\"PHP Script I
nterpreter\"" /d FILE_NAME="\"php5ts_debug.dll\"" /d
PRODUCT_NAME="\"PHP Script
Interpreter\"" /IDebug_TS /d MC_INCLUDE="\"Debug_TS\wsyslog.rc\""
win32\build
\template.rc
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
_libiconv_versi
on
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
compressBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflateBound
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
deflatePrime
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzclearerr
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
gzungetc
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBack
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackEnd
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateBackInit
_
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
inflateCopy
php5ts_debug.dll.def : error LNK2001: unresolved external symbol
zlibCompileFlag
s
Debug_TS\php5ts_debug.lib : fatal error LNK1120: 11 unresolved
externals
LINK : fatal error LNK1141: failure during build of exports file
NMAKE : fatal error U1077: ''"C:\Program Files\Microsoft Visual
Studio .NET 2003\
VC7\BIN\cl.exe"'' : return code ''0x2''
Stop.

I have never dealt with what external symbols before and I was hoping
someone might have some information they could provide me with. My
first thought is that it may be an issue with the Makefile since I am
reminded of linking issues with I see unresolved external symbol but I
am not certain.

Thanks again for any help any of you can provide. Feel free to email
me as well at tr******@gmail.com if you''d rather not post on here.

-- treble54


treble54写道:
treble54 wrote:

6月4日上午10点35分,treble54< trebl ... @ gmail.comwrote:
On Jun 4, 10:35 am, treble54 <trebl...@gmail.comwrote:

>我需要使用pdo_ibm扩展从源代码构建PHP,而且我有问题。首先,我正在使用Visual Studio .NET 2003
我正在通过Visual Studio Command
Prompt从源代码构建PHP。当我进入nmake步骤时,它会通过所有内容直到
它命中zend_language_scanner.l文件。然后我得到了这些错误:

zend_language_scanner.l(24):警告C4005:''yyleng'':宏
重新定义
c:\work\php-5.2 .2\Zend\zend_language_scanner.c(12):参见
之前的确定''yyleng''
zend_language_scanner.l(25):警告C4005:''yytext' ':宏
重新定义
c:\ work\php-5.2.2\Zend\zend_language_scanner.c(16):参见
之前的defini
' 'yytext''
zend_language_scanner.l(26):警告C4005:''yytext_ptr'':宏
重新定义
zend_language_scanner.c(289):见前面的定义
' 'yytext_ptr''
zend_language_scanner.l(27):警告C4005:''yyin'':宏
重新定义
c:\work\php-5.2.2 \ Zend \\ \\ zend_language_scanner.c(11):参见
之前的'yyin'确认
zend_language_scanner.l(28):警告C4005:''yyout '':宏
重新定义
c:\ work\php-5.2.2 \Zend\zend_language_scanner.c(14):参见
之前的defini
''yyout''
zend_language_scanner.c(3607):警告C4133:''='':不兼容
类型 - 从''
FILE *''到''zend_file_handle *''
zend_language_scanner.c(3610):警告C4133:''='':不兼容
类型 - 从''
FILE *''到''zend_file_handle *''
zend_language_scanner .c(5309):警告C4133:''='':不兼容
类型 - 从''
zend_file_handle *''到''FILE *''
zend_language_scanner.c(5429) :错误C2065:''tsrm_ls'':未声明
标识符
zend_language_scanner.c(5522):警告C4133:''function'':
不兼容的类型 -
来自'' zend_file_handle *'''''FILE *''
zend_language_scanner.c(5522):错误C2039:''_ flag'':不是成员 _file_handle''
c:\work\php-5.2.2 \Zend\zend_stream.h(40):见声明
' '_zend_fil
e_handle''
zend_language_scanner.c(5522):警告C4133:''function'':
不兼容的类型 -
从''zend_file_handle *''到''文件*''
zend_language_scanner.c(5522):错误C2039:''_ flag'':不是'____
_file_handle'的成员
c:\\ \\ work\php-5.2.2 \Zend\zend_stream.h(40):见声明
''_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ C4133:''='':不兼容
类型 - 从''
FILE *''到''zend_file_handle *''
NMAKE:致命错误U1077:''" cl.exe" ;'':返回代码''0x2''
停止。

如果您有任何建议,我将非常感激。我现在唯一的选择是从源代码构建它。如果有人知道使用Visual Studio .NET 2003命令提示无法完成,请告诉我。我的理解是它可以使用这种环境构建,但你永远不会知道。提前感谢您提供的所有帮助。

作为参考,我按照此处列出的说明进行操作: http://us2.php.net/manual/en/install...hp#install.win ...

我正在使用此命令配置configure.js文件:
cscript configure.js --with-extra-includes = c:\ win32build \包括; -
with-extra-libs = c:\ win32build \lib; --enable-debug --disable-cgi -
enable-cli --with-pdo-ibm =" C:\ SQLLIB",shared

- treble54
>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...hp#install.win...

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



我以为我会添加一些关于我所做的事情的信息。我已经能够通过在Visual Studio命令提示符下输入

此命令来超越上面列出的三个错误:

flex。 exe -i -SZend / flex.skl -Pzend -oZend / zend_language_scanner.c Zend /

zend_language_scanner.l


我在makefile中找到了这一行但是它有


I thought I would add some information on what I have done. I have
been able to progress past the three errors listed above by type in
this command at the Visual Studio Command Prompt:
flex.exe -i -SZend/flex.skl -Pzend -oZend/zend_language_scanner.c Zend/
zend_language_scanner.l

I found this line in the makefile but it had


这篇关于在Windows XP上从源代码构建PHP 5.2.2的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆