PHP7.0的编译记录(失败)

2016-07-12 10:22:49来源:oschina作者:dingdayu人点击

C:/ProgramFiles(x86)/MicrosoftVisualStudio11.0/VC>cdc:/php
c:/php>bin/phpsdk_setvars.bat
c:/php>REMphpsdk.bat
c:/php>cdc:/php/phpdev/vc15/x64/php-7.0.0RC4-src
c:/php/phpdev/vc15/x64/php-7.0.0RC4-src>buildconf
Rebuildingconfigure.js
Nowrun'configure--help'
c:/php/phpdev/vc15/x64/php-7.0.0RC4-src>configure--help
OptionsthatenableextensionsandSAPIwillaccept'yes'or'no'asa
parameter.Theyalsoaccept'shared'asasynonymfor'yes'andrequesta
sharedbuildofthatmodule.Notallmodulescanbebuiltassharedmodules;
configurewilldisplay[shared]afterthemodulenameifcanbebuiltthat
way.
--enable-snapshot-buildBuildasnapshot;turnsoneverythingit
canandignoresbuilderrors
--enable-one-shotOptimizeforfastbuild-bestforrelease
andsnapshotbuilders,notsohotfor
edit-and-rebuildhacking
--with-toolsetToolsettouseforthecompilation,give:
vs,clang,icc.Theonlyrecommendedand
supportedtoolsetforproductionuseis
VisualStudio.Useothersatyourown
risk.
--with-cygwinPathtocygwinutilitiesonyoursystem
--enable-object-out-dirAlternatelocationforbinaryobjects
duringbuild
--enable-debugCompilewithdebuggingsymbols
--enable-debug-packReleasebinarieswithexternaldebug
symbols(--enable-debugmustnotbe
specified)
--enable-pgiGeneratePGOinstrumentedbinaries
--with-pgoCompileoptimizedbinariesusingtraining
datafromfolder
--disable-ztsThreadsafety
--with-prefixwherePHPwillbeinstalled
--with-mpTellVisualStudiouseupto
[n,auto,disable]processesforcompilation
--with-php-buildPathtowhereyouextractedthe
developmentlibraries
(http://wiki.php.net/internals/windows/libs).
Assumesthatitisasiblingofthis
sourcedir(../deps)ifnotspecified
--with-extra-includesExtraincludepathtousewhenbuilding
everything
--with-extra-libsExtralibrarypathtousewhenlinking
everything
--disable-ipv6DisableIPv6support(defaultisturnit
onifavailable)
--enable-fd-setsizeSetmaximumnumberofsocketsfor
select(2)
--with-snapshot-templatePathtosnapshotbuildertemplatedir
--disable-security-flagsDisablethecompilersecurityflags
--with-analyzerEnablestaticanalyzer.PassvsforVisual
Studio,pvsforPVS-Studio
--without-uncritical-warn-chokeDisablesomeuncriticalwarnings
--with-codegen-archArchitectureforcodegeneration:ia32,
sse,sse2,avx,avx2
--with-all-sharedForceallthenonobligatoryextensionsto
beshared
--enable-apache2handlerBuildApache2.xhandler
--enable-apache2-2handlerBuildApache2.2.xhandler
--enable-apache2-4handlerBuildApache2.4.xhandler
--disable-cgiBuildCGIversionofPHP
--disable-cliBuildCLIversionofPHP
--enable-crt-debugEnableCRTmemorydumpsfordebuggingsent
toSTDERR
--enable-cli-win32Buildconsole-lessCLIversionofPHP
--enable-embedEmbeddedSAPIlibrary
--enable-phpdbgBuildphpdbg
--enable-phpdbgsBuildphpdbgshared
--disable-phpdbg-webhelperBuildphpdbgwebhelper
--disable-bcmathbcstyleprecisionmathfunctions
--with-bz2BZip2
--disable-calendarcalendarconversionsupport
--disable-com-dotnetCOMand.Netsupport
--disable-ctypectype
--with-curlcURLsupport
--with-dbaDBAsupport
--with-enchantEnchantSupport
--enable-fileinfofileinfosupport
--disable-filterFilterSupport
--disable-ftpftpsupport
--without-gdBundledGDsupport
--without-libwebpwebpsupport
--with-gettextgettextsupport
--with-gmpIncludeGNUMPsupport.
--disable-hashenablehashsupport
--with-mhashmhashsupport
--without-iconviconvsupport
--with-imapIMAPSupport
--with-interbaseInterBasesupport
--enable-intlEnableinternationalizationsupport
--disable-jsonJavaScriptObjectSerializationsupport
--with-ldapLDAPsupport
--with-libmbfluseexternallibmbfl
--enable-mbstringmultibytestringfunctions
--enable-mbregexmultibyteregexsupport
--disable-mbregex-backtrackcheckmultibyteregexbacktrack
--with-mcryptmcryptsupport
--without-mysqlndMysqlNativeClientDriver
--with-oci8OCI8support
--with-oci8-11gOCI8supportusingOracle11gInstant
Client
--with-oci8-12cOCI8supportusingOracleDatabase12c
InstantClient
--enable-odbcODBCsupport
--with-odbcverForcesupportforthepassedODBCversion.
Ahexnumberisexpected,default0x0300.
Usethespecialvalueof0topreventan
explicitODBCVERtobedefined.
--disable-opcachewhethertoenableZendOPcachesupport
--disable-opcache-filewhethertoenablefilebasedcaching
--with-opensslOpenSSLsupport
--with-pgsqlPostgreSQLsupport
--with-pspellpspell/aspell(whateverit'scalledthis
month)support
--disable-sessionsessionsupport
--enable-shmopshmopsupport
--with-snmpSNMPsupport
--enable-socketsSOCKETSsupport
--with-sqlite3SQLite3support
--with-config-file-scan-dirDirtocheckforadditionalphpinifiles
--enable-sysvshmSysVSharedMemorysupport
--with-tidyTIDYsupport
--disable-tokenizertokenizersupport
--disable-zipZIPsupport
--disable-zlibZLIBsupport
--without-libxmlLibXMLsupport
--without-domDOMsupport
--enable-exifexif
--with-mysqliMySQLisupport
--enable-pdoEnablePHPDataObjectssupport
--with-pdo-dblibfreetdsdblib(Sybase,MS-SQL)supportfor
PDO
--with-pdo-mssqlNativeMS-SQLsupportforPDO
--with-pdo-firebirdFirebirdsupportforPDO
--with-pdo-mysqlMySQLsupportforPDO
--with-pdo-ociOracleOCIsupportforPDO
--with-pdo-odbcODBCsupportforPDO
--with-pdo-pgsqlPostgreSQLsupportforPDO
--with-pdo-sqliteforpdo_sqlitesupport
--with-pdo-sqlite-externalforpdo_sqlitesupportfromanexternal
dll
--disable-phardisablepharsupport
--enable-phar-native-sslenablepharwithnativeOpenSSLsupport
--without-simplexmlSimpleXMLsupport
--enable-soapSOAPsupport
--without-xmlXMLsupport
--without-wddxWDDXsupport
--disable-xmlreaderXMLReadersupport
--with-xmlrpcXMLRPC-EPIsupport
--disable-xmlwriterXMLWritersupport
--with-xslxslsupport
--enable-rediswhethertoenableredissupport
--disable-redis-sessionwhethertoenablesessions
--enable-redis-igbinarywhethertoenableigbinaryserializer
support
c:/php/phpdev/vc15/x64/php-7.0.0RC4-src>configure--disable-all--enable-cli--enable-session--enable-redis=shared--enable-redis-session--enable-redis-igbinary
Savingconfigureoptionstoconfig.nice.bat
Checkingforcl.exe...
DetectedcompilerMSVC11(VisualC++2012)
Detected64-bitcompiler
Checkingforlink.exe...C:/ProgramFiles(x86)/MicrosoftVisualStudio11.0/VC/BIN/x86_amd64
Checkingfornmake.exe...
Checkingforlib.exe...
Checkingforbison.exe...
Checkingforre2c.exe...
Detectedre2cversion0.13.5
Checkingforzip.exe...
Checkingforlemon.exe...
Checkingformc.exe...C:/ProgramFiles(x86)/WindowsKits/8.0/bin/x86
Checkingformt.exe...C:/ProgramFiles(x86)/WindowsKits/8.0/bin/x86
Enablingmultiprocessbuild
Builddir:C:/php/phpdev/vc15/x64/php-7.0.0RC4-src/x64/Release_TS
PHPCore:php7ts.dllandphp7ts.lib
Checkingforwspiapi.h...
Checkingforwspiapi.h...
EnablingSAPIsapi/cli
Enablingextensionext/date
Enablingextensionext/pcre
Enablingextensionext/reflection
Enablingextensionext/session
Enablingextensionext/spl
Checkingfortimelib_config.h...ext/date/lib
Enablingextensionext/standard
Checkingforigbinary.h...
Checkingforigbinary.h...
WARNING:redisigbinarysupportnotenabled
Enablingextensionpecl/redis[shared]
Creatingbuilddirs...
Generatingfiles...
GeneratingMakefile
Generatingmain/internal_functions.c
Generatingmain/config.w32.h
Generatingphpize
Done.Enabledextensions:
-----------------------
|Extension|Mode|
-----------------------
|date|static|
|pcre|static|
|redis|shared|
|reflection|static|
|session|static|
|spl|static|
|standard|static|
-----------------------EnabledSAPI:
-------------
|SapiName|
-------------
|cli|
-----------------------------------------------------------
|||
----------------------------------------------
|Buildtype|Release|
|ThreadSafety|Yes|
|Compiler|MSVC11(VisualC++2012)|
|Architecture|x64|
|Optimization|PGOdisabled|
|Staticanalyzer|disabled|
----------------------------------------------Type'nmake'tobuildPHP
c:/php/phpdev/vc15/x64/php-7.0.0RC4-src>nmakephp_redis.dll
Microsoft(R)程序维护实用工具11.00.60610.1版
版权所有(C)MicrosoftCorporation。保留所有权利。
"cl.exe"/DPHP_SESSION=1/DHAVE_IGBINARY_H=0/DCOMPILE_DL_REDIS/DREDIS_EXPORTS=1/nologo/I./Imain/IZend/ITSRM/Iext/D_WINDOWS/DZEND_WIN32=1/DPHP_WIN32=1/DWIN32/D_MBCS/W3/FD/wd4996/MP/LD/MD/W3/Ox/DNDebug/DNDEBUG/DZEND_WIN32_FORCE_INLINE/GF/DZEND_DEBUG=0/DZTS=1/I"C:/php/phpdev/vc15/x64/deps/include"/DFD_SETSIZE=256/FoC:/php/phpdev/vc15/x64/php-7.0.0RC4-src/x64/Release_TS/pecl/redis//FpC:/php/phpdev/vc15/x64/php-7.0.0RC4-src/x64/Release_TS/pecl/redis//FRC:/php/phpdev/vc15/x64/php-7.0.0RC4-src/x64/Release_TS/pecl/redis//FdC:/php/phpdev/vc15/x64/php-7.0.0RC4-src/x64/Release_TS/pecl/redis//cpecl/redis/cluster_library.cpecl/redis/library.cpecl/redis/redis.cpecl/redis/redis_array.cpecl/redis/redis_array_impl.cpecl/redis/redis_cluster.cpecl/redis/redis_commands.cpecl/redis/redis_session.c
cluster_library.c
library.c
redis.c
redis_array.c
redis_array_impl.c
redis_cluster.c
redis_commands.c
redis_session.c
pecl/redis/redis_array_impl.c:warningC4819:该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为Unicode格式以防止数据丢失
c:/php/phpdev/vc15/x64/php-7.0.0rc4-src/zend/zend_config.w32.h(38):fatalerrorC1083:无法打开包括文件:“winsock2.h”:Nosuchfileordirectory(pecl/redis/redis_commands.c)
c:/php/phpdev/vc15/x64/php-7.0.0rc4-src/zend/zend_config.w32.h(38):fatalerrorC1083:无法打开包括文件:“winsock2.h”:Nosuchfileordirectory(pecl/redis/redis.c)
c:/php/phpdev/vc15/x64/php-7.0.0rc4-src/zend/zend_config.w32.h(38):fatalerrorC1083:无法打开包括文件:“winsock2.h”:Nosuchfileordirectory(pecl/redis/redis_session.c)
c:/php/phpdev/vc15/x64/php-7.0.0rc4-src/zend/zend_config.w32.h(38):fatalerrorC1083:无法打开包括文件:“winsock2.h”:Nosuchfileordirectory(pecl/redis/redis_array.c)
c:/php/phpdev/vc15/x64/php-7.0.0rc4-src/zend/zend_config.w32.h(38):fatalerrorC1083:无法打开包括文件:“winsock2.h”:Nosuchfileordirectory(pecl/redis/redis_cluster.c)
c:/php/phpdev/vc15/x64/php-7.0.0rc4-src/zend/zend_config.w32.h(38):fatalerrorC1083:无法打开包括文件:“winsock2.h”:Nosuchfileordirectory(pecl/redis/library.c)
c:/php/phpdev/vc15/x64/php-7.0.0rc4-src/zend/zend_config.w32.h(38):fatalerrorC1083:无法打开包括文件:“winsock2.h”:Nosuchfileordirectory(pecl/redis/cluster_library.c)
c:/php/phpdev/vc15/x64/php-7.0.0rc4-src/zend/zend_config.w32.h(38):fatalerrorC1083:无法打开包括文件:“winsock2.h”:Nosuchfileordirectory(pecl/redis/redis_array_impl.c)
NMAKE:fatalerrorU1077:“"C:/ProgramFiles(x86)/MicrosoftVisualStudio11.0/VC/BIN/x86_amd64/cl.exe"”:返回代码“0x2”
Stop.
c:/php/phpdev/vc15/x64/php-7.0.0RC4-src>

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台