Сборка PHP из сырцов

nerezus

Вселенский отказник
Сборка PHP из сырцов

Код:
C:\Downloads\devel\php-5.1.4>cscript /nologo configure.js
Saving configure options to config.nice.bat
Checking for cl.exe ...  <in default path>
Checking for cl.exe ...  <in default path>
Detected MS compiler version 14
Checking for link.exe ...  C:\Program Files\Microsoft Visual Studio 8\VC\bin
Checking for nmake.exe ...  <in default path>
Checking for lib.exe ...  <in default path>
Checking for bison.exe ...  <in default path>
Checking for flex.exe ...  <in default path>
Checking for re2c.exe ...  <not found>
Checking for zip.exe ...  \cygwin\bin
Checking for lemon.exe ...  <not found>
Checking for mc.exe ...  C:\Devel\lcc\bin
Checking for arpa\nameser.h ...  <not found>
Checking for arpa\nameser.h ...  <not found>
ERROR: We really need that arpa\nameser.h file - it is part of the win32build p
ackage
В чем проблема, кто знает? )
Кто собирал?

-~{}~ 10.08.06 11:20:

http://www.php.net/extra/win32build.zip - нашел, вопрос временно закрыт )
 

tony2001

TeaM PHPClub
>C:\Downloads\devel\php-5.1.4>cscript /nologo configure.js
а в чем смысл сборки 5.1.4 под виндой?
 

nerezus

Вселенский отказник
а в чем смысл сборки 5.1.4 под виндой?
ну типа последняя стабильная )

вот не пойму теперь, что оно ругается на
Код:
Checking for arpa\nameser.h ...  <not found>
, т.к. %PATH% содержит C:\Devel\win32build\include
надо к стандартным наверно подложить, сейчас попробую =)

P.S. цель - попозже расскажу ;) Как сделаю )

-~{}~ 10.08.06 12:39:

P.P.S. подложил папку arpa в C:\Program Files\Microsoft Visual Studio 8\VC\include - все равно ругается
Код:
Checking for arpa\nameser.h ...  <not found>
Куда их надо пихать?
 

tony2001

TeaM PHPClub
>ну типа последняя стабильная )
ну типа последняя стабильная уже давно собрана и доступна на php.net.

>P.S. цель - попозже расскажу Как сделаю )
а, тайна..
ну, have fun.
 

svetasmirnova

маленький монстрик
>Так куда все-таки эти хидеры пихать?
В опции configure:
script /nologo configure.js --help твой друг
 

nerezus

Вселенский отказник
Спасибо.

В конце-концов пишет оно мне: Type 'nmake' to build PHP

Код:
C:\Downloads\devel\php-5.1.4>nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

        "" -h win32\ -r Release_TS\ -x Release_TS\ win32\build\wsyslog.mc
"-h" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
NMAKE : fatal error U1077: '"' : return code '0x1'
Stop.

C:\Downloads\devel\php-5.1.4>
 

nerezus

Вселенский отказник
C:\Downloads\devel\php-5.1.4>mc
"mc" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
добавил C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\bin в %PATH%:
Код:
C:\Downloads\devel\php-5.1.4>nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

        "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\bin\mc.exe" -
h win32\ -r Release_TS\ -x Release_TS\ win32\build\wsyslog.mc
MC: Compiling win32\build\wsyslog.mc
cgi_main.c
Zend\zend.h(37) : fatal error C1083: Cannot open include file: 'stdio.h': No su
ch file or directory
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\bin\
cl.exe"' : return code '0x2'
Stop.
Теперь оно стандартных хидеров не видит, как исправить?

-~{}~ 10.08.06 13:41:

Есть же http://pecl.php.net/package/WinBinder
Спс, сейчас гляну, но собрать все же хочется самому...
 

nerezus

Вселенский отказник
добавил еще 2 папки.
Теперь так:
Код:
fopen_wrappers.c
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include\ws2tcpip.h(59
3) : warning C4142: benign redefinition of type
internal_functions.c
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include\ws2tcpip.h(59
3) : warning C4142: benign redefinition of type
c:\downloads\devel\php-5.1.4\ext\dom\xml_common.h(42) : error C2061: syntax err
or : identifier 'php_libxml_ref_obj'
c:\downloads\devel\php-5.1.4\ext\dom\xml_common.h(45) : error C2059: syntax err
or : '}'
c:\downloads\devel\php-5.1.4\ext\dom\xml_common.h(61) : error C2143: syntax err
or : missing '{' before '*'
c:\downloads\devel\php-5.1.4\ext\dom\xml_common.h(62) : error C2143: syntax err
or : missing ')' before '*'
c:\downloads\devel\php-5.1.4\ext\dom\xml_common.h(62) : error C2081: 'dom_objec
t' : name in formal parameter list illegal
c:\downloads\devel\php-5.1.4\ext\dom\xml_common.h(62) : error C2143: syntax err
or : missing '{' before '*'
c:\downloads\devel\php-5.1.4\ext\dom\xml_common.h(62) : error C2059: syntax err
or : 'type'
c:\downloads\devel\php-5.1.4\ext\dom\xml_common.h(62) : error C2059: syntax err
or : ')'
c:\downloads\devel\php-5.1.4\ext\dom\xml_common.h(63) : error C2143: syntax err
or : missing ')' before '*'
c:\downloads\devel\php-5.1.4\ext\dom\xml_common.h(63) : error C2143: syntax err
or : missing '{' before '*'
c:\downloads\devel\php-5.1.4\ext\dom\xml_common.h(63) : error C2059: syntax err
or : ')'
.\ext\dom/php_dom.h(70) : error C2061: syntax error : identifier 'dom_object'
.\ext\dom/php_dom.h(76) : error C2059: syntax error : '}'
.\ext\dom/php_dom.h(85) : error C2143: syntax error : missing '{' before '*'
.\ext\dom/php_dom.h(86) : error C2143: syntax error : missing ')' before '*'
.\ext\dom/php_dom.h(86) : error C2143: syntax error : missing '{' before '*'
.\ext\dom/php_dom.h(86) : error C2059: syntax error : ')'
.\ext\dom/php_dom.h(92) : error C2143: syntax error : missing ')' before '*'
.\ext\dom/php_dom.h(92) : error C2143: syntax error : missing '{' before '*'
.\ext\dom/php_dom.h(92) : error C2059: syntax error : ')'
.\ext\dom/php_dom.h(108) : error C2143: syntax error : missing ')' before '*'
.\ext\dom/php_dom.h(108) : error C2143: syntax error : missing '{' before '*'
.\ext\dom/php_dom.h(108) : error C2059: syntax error : 'type'
.\ext\dom/php_dom.h(108) : error C2059: syntax error : ')'
.\ext\xml/php_xml.h(49) : error C2061: syntax error : identifier 'XML_Char'
.\ext\xml/php_xml.h(50) : error C2059: syntax error : '}'
.\ext\xml/php_xml.h(55) : error C2061: syntax error : identifier 'XML_Parser'
.\ext\xml/php_xml.h(56) : error C2143: syntax error : missing '{' before '*'
.\ext\xml/php_xml.h(95) : error C2143: syntax error : missing '{' before '*'
.\ext\xml/php_xml.h(96) : error C2059: syntax error : '}'
.\ext\xml/php_xml.h(100) : error C2061: syntax error : identifier 'XML_Char'
.\ext\xml/php_xml.h(103) : error C2059: syntax error : '}'
.\ext\xml/php_xml.h(143) : error C2143: syntax error : missing ')' before '*'
.\ext\xml/php_xml.h(143) : error C2143: syntax error : missing '{' before '*'
.\ext\xml/php_xml.h(143) : error C2059: syntax error : ','
.\ext\xml/php_xml.h(143) : error C2059: syntax error : ')'
.\ext\simplexml/php_simplexml.h(65) : error C2061: syntax error : identifier 'p
hp_libxml_node_ptr'
.\ext\simplexml/php_simplexml.h(66) : error C2143: syntax error : missing '{' b
efore '*'
.\ext\simplexml/php_simplexml.h(77) : error C2059: syntax error : '}'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\bin\
cl.exe"' : return code '0x2'
Stop.
Как бороться с этим?
 

svetasmirnova

маленький монстрик
Ты минимальный dll собираешь или что? Отключай всё, что можно. Или качай либы соответствующие, если XML нужен.
 

nerezus

Вселенский отказник
Так, отключил этот модуль... Ну и вообще все отключил )

Выдает такое:
Код:
C:\Downloads\devel\php-5.1.4>nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

        rc /fo Release_TS\php5ts.dll.res /d FILE_DESCRIPTION="\"PHP Script Inte
rpreter\""  /d FILE_NAME="\"php5ts.dll\"" /d PRODUCT_NAME="\"PHP Script Interpr
eter\""  /IRelease_TS /d MC_INCLUDE="\"Release_TS\wsyslog.rc\""  win32\build\te
mplate.rc
win32\build\template.rc(8) : fatal error RC1015: cannot open include file 'winr
es.h'.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\bin\
rc.EXE"' : return code '0x1'
Stop.

C:\Downloads\devel\php-5.1.4>
хотя:
cscript /nologo configure.js "--enable-prefix=C:\Downloads\devel\php-5.1.4\!!!" "--with-extra-includes=C:\Devel\win32build\include;C:\Program Files\Microsoft Visual Studio 8\VC\include;C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include;C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include" "--disable-ipv6" "--disable-odbc" "--disable-zlib" "--without-gd" "--without-t1lib" "--without-iconv" "--disable-session" "--enable-sockets" "--disable-calendar" "--disable-bcmath" "--disable-tokenizer" "--disable-com-dotnet" "--without-libxml" "--without-dom" "--without-xml" "--without-wddx" "--disable-xmlreader" "--disable-xmlwriter"
 

nerezus

Вселенский отказник
А nmake clean делал?
какие хитрости )
однако опять:
Код:
ext\standard\uuencode.c(74) : warning C4244: 'function' : conversion from 'doub
le' to 'size_t', possible loss of data
ext\standard\uuencode.c(131) : warning C4244: 'function' : conversion from 'dou
ble' to 'size_t', possible loss of data
var.c
ext\standard\var.c(550) : warning C4146: unary minus operator applied to unsign
ed type, result still unsigned
ext\standard\var.c(663) : warning C4146: unary minus operator applied to unsign
ed type, result still unsigned
ext\standard\var.c(668) : warning C4146: unary minus operator applied to unsign
ed type, result still unsigned
ext\standard\var.c(720) : warning C4146: unary minus operator applied to unsign
ed type, result still unsigned
ext\standard\var.c(725) : warning C4146: unary minus operator applied to unsign
ed type, result still unsigned
var_unserializer.c
versioning.c
        rc /fo Release_TS\php5ts.dll.res /d FILE_DESCRIPTION="\"PHP Script Inte
rpreter\""  /d FILE_NAME="\"php5ts.dll\"" /d PRODUCT_NAME="\"PHP Script Interpr
eter\""  /IRelease_TS /d MC_INCLUDE="\"Release_TS\wsyslog.rc\""  win32\build\te
mplate.rc
win32\build\template.rc(8) : fatal error RC1015: cannot open include file 'winr
es.h'.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\bin\
rc.EXE"' : return code '0x1'
Stop.

C:\Downloads\devel\php-5.1.4>
 

Paxan

Новичёк
nerezus
кстати не советую собирать 8-кой. я кое-как собрал, но по итогу всегда получал при запуске c runtime error. перекомпилил 6-кой - всё заработало.
 

nerezus

Вселенский отказник
Paxan
попробую найти 6ку...

Кстати, я удивлен, но 6ой и компилят разработчики... (Microsoft Visual C++ 6.0)
проверил с помощью PE+ (кстати, напарник написал ее)
 

tony2001

TeaM PHPClub
>Кстати, я удивлен
чему тут удивляться - это же виндовс.
хочешь собирать более новым компилятором - поставляй вместе с продуктом MSVCRxx.DLL
весело.
 

nerezus

Вселенский отказник
Просто странно, что этот опенсурс проект нельзя скомпилить опенсурс-коимпилером gcc(MinGW), а надо приобретать коммерческую версию VS6(которую причем не продают уже вроде)...

Вопрос: кто-нибудь ставил VS6 на Win2003?
"Аппаратная ошибка NTVDM."
 
Сверху