PHP 4.1.0RC2 Build Into

From: Date: Tue, 13 Nov 2001 11:17:58 +0000
Subject: PHP 4.1.0RC2 Build Into
Groups: php.qa 
Request: Send a blank email to php-qa+get-3837@lists.php.net to get a copy of this message
WIn 2k/MSFT VC6 Build for php4ts, php4apache and php4isapi are fine.. Only one warning that worries me which is the int overflow for ULONG_MAX + 1 in math.c (Zeev I thought you were going to commit a fix for that). I have build the followinge extensions: php_ctype.dll php_db.dll php_dbase.dll php_dbx.dll php_exif.dll php_filepro.dll php_hyperwave.dll php_iisfunc.dll php_mbstring.dll php_msql.dll php_printer.dll php_shmop.dll php_sockets.dll Some interesting extracts from the build log: --------------------Configuration: db - Win32 Release_TS-------------------- ..\..\win32/flock.h(2) : warning C4005: 'ftruncate' : macro redefinition ..\..\ext/standard/flock_compat.h(35) : see previous definition of 'ftruncate' --------------------Configuration: dba - Win32 Release_TS Berkeley DB3-------------------- dba_db3.c F:\php-4.1.0RC2\ext\dba\dba_db3.c(70) : warning C4013: 'db_create' undefined; assuming extern returning int F:\php-4.1.0RC2\ext\dba\dba_db3.c(71) : error C2039: 'open' : is not a member of '__db' E:\W32BUILD\INCLUDE\db.h(397) : see declaration of '__db' F:\php-4.1.0RC2\ext\dba\dba_db3.c(158) : warning C4020: 'function through pointer' : too many actual parameters --------------------Configuration: dbase - Win32 Release_TS-------------------- F:\php-4.1.0RC2\ext\dbase\dbase.c(464) : warning C4018: '<=' : signed/unsigned mismatch --------------------Configuration: gd - Win32 Release_TS GD1-------------------- Compiling... gd.c F:\php-4.1.0RC2\ext\gd\gd_ctx.c(33) : error C2065: 'gdIOCtx' : undeclared identifier F:\php-4.1.0RC2\ext\gd\gd_ctx.c(33) : error C2065: 'ctx' : undeclared identifier F:\php-4.1.0RC2\ext\gd\gd_ctx.c(33) : warning C4552: '*' : operator has no effect; expected operator with side-effect F:\php-4.1.0RC2\ext\gd\gd_ctx.c(65) : warning C4013: 'gdNewFileCtx' undefined; assuming extern returning int F:\php-4.1.0RC2\ext\gd\gd_ctx.c(67) : warning C4047: '=' : 'int ' differs in levels of indirection from 'void *' F:\php-4.1.0RC2\ext\gd\gd_ctx.c(68) : error C2223: left of '->putC' must point to struct/union F:\php-4.1.0RC2\ext\gd\gd_ctx.c(69) : error C2223: left of '->putBuf' must point to struct/union F:\php-4.1.0RC2\ext\gd\gd_ctx.c(70) : error C2223: left of '->free' must point to struct/union F:\php-4.1.0RC2\ext\gd\gd_ctx.c(98) : error C2223: left of '->free' must point to struct/union F:\php-4.1.0RC2\ext\gd\gd.c(101) : error C2143: syntax error : missing ')' before '*' F:\php-4.1.0RC2\ext\gd\gd.c(101) : error C2081: 'gdIOCtx' : name in formal parameter list illegal F:\php-4.1.0RC2\ext\gd\gd.c(101) : error C2143: syntax error : missing '{' before '*' F:\php-4.1.0RC2\ext\gd\gd.c(101) : error C2059: syntax error : 'type' F:\php-4.1.0RC2\ext\gd\gd.c(101) : error C2059: syntax error : ')' F:\php-4.1.0RC2\ext\gd\gd.c(1000) : error C2065: 'io_ctx' : undeclared identifier F:\php-4.1.0RC2\ext\gd\gd.c(1000) : warning C4552: '*' : operator has no effect; expected operator with side-effect F:\php-4.1.0RC2\ext\gd\gd.c(1002) : warning C4013: 'gdNewDynamicCtx' undefined; assuming extern returning int F:\php-4.1.0RC2\ext\gd\gd.c(1043) : error C2065: 'gdImageCreateFromJpegCtx' : undeclared identifier F:\php-4.1.0RC2\ext\gd\gd.c(1043) : warning C4047: 'function' : 'struct gdImageStruct *(__cdecl *)()' differs in levels of indirection from 'int ' F:\php-4.1.0RC2\ext\gd\gd.c(1043) : warning C4024: '_php_image_create_from_string' : different types for formal and actual parameter 3 F:\php-4.1.0RC2\ext\gd\gd.c(1052) : error C2065: 'gdImageCreateFromPngCtx' : undeclared identifier F:\php-4.1.0RC2\ext\gd\gd.c(1052) : warning C4047: 'function' : 'struct gdImageStruct *(__cdecl *)()' differs in levels of indirection from 'int ' F:\php-4.1.0RC2\ext\gd\gd.c(1052) : warning C4024: '_php_image_create_from_string' : different types for formal and actual parameter 3 F:\php-4.1.0RC2\ext\gd\gd.c(1070) : error C2065: 'gdImageCreateFromWBMPCtx' : undeclared identifier F:\php-4.1.0RC2\ext\gd\gd.c(1070) : warning C4047: 'function' : 'struct gdImageStruct *(__cdecl *)()' differs in levels of indirection from 'int ' F:\php-4.1.0RC2\ext\gd\gd.c(1070) : warning C4024: '_php_image_create_from_string' : different types for formal and actual parameter 3 F:\php-4.1.0RC2\ext\gd\gd.c(1151) : warning C4552: '*' : operator has no effect; expected operator with side-effect F:\php-4.1.0RC2\ext\gd\gd.c(1152) : error C2275: 'size_t' : illegal use of this type as an expression E:\Program Files\VS6\VC98\INCLUDE\stdio.h(70) : see declaration of 'size_t' F:\php-4.1.0RC2\ext\gd\gd.c(1152) : error C2146: syntax error : missing ';' before identifier 'buff_size' F:\php-4.1.0RC2\ext\gd\gd.c(1152) : error C2065: 'buff_size' : undeclared identifier F:\php-4.1.0RC2\ext\gd\gd.c(1153) : error C2143: syntax error : missing ';' before 'type' F:\php-4.1.0RC2\ext\gd\gd.c(1155) : error C2065: 'buff_em' : undeclared identifier F:\php-4.1.0RC2\ext\gd\gd.c(1155) : warning C4047: 'function' : 'char ** ' differs in levels of indirection from 'int *' F:\php-4.1.0RC2\ext\gd\gd.c(1155) : warning C4024: 'php_fread_all' : different types for formal and actual parameter 1 F:\php-4.1.0RC2\ext\gd\gd.c(1162) : error C2065: 'buff' : undeclared identifier F:\php-4.1.0RC2\ext\gd\gd.c(1162) : warning C4047: '=' : 'int ' differs in levels of indirection from 'void *' F:\php-4.1.0RC2\ext\gd\gd.c(1163) : warning C4022: 'memcpy' : pointer mismatch for actual parameter 1 F:\php-4.1.0RC2\ext\gd\gd.c(1163) : warning C4022: 'memcpy' : pointer mismatch for actual parameter 2 F:\php-4.1.0RC2\ext\gd\gd.c(1164) : warning C4022: '_efree' : pointer mismatch for actual parameter 1 F:\php-4.1.0RC2\ext\gd\gd.c(1176) : error C2223: left of '->free' must point to struct/union F:\php-4.1.0RC2\ext\gd\gd.c(1216) : error C2065: 'gdImageCreateFromJpeg' : undeclared identifier F:\php-4.1.0RC2\ext\gd\gd.c(1216) : warning C4047: 'function' : 'struct gdImageStruct *(__cdecl *)()' differs in levels of indirection from 'int ' F:\php-4.1.0RC2\ext\gd\gd.c(1216) : warning C4024: '_php_image_create_from' : different types for formal and actual parameter 8 F:\php-4.1.0RC2\ext\gd\gd.c(1216) : warning C4047: 'function' : 'struct gdImageStruct *(__cdecl *)()' differs in levels of indirection from 'int ' F:\php-4.1.0RC2\ext\gd\gd.c(1216) : warning C4024: '_php_image_create_from' : different types for formal and actual parameter 9 F:\php-4.1.0RC2\ext\gd\gd.c(1229) : error C2065: 'gdImageCreateFromPng' : undeclared identifier F:\php-4.1.0RC2\ext\gd\gd.c(1229) : warning C4047: 'function' : 'struct gdImageStruct *(__cdecl *)()' differs in levels of indirection from 'int ' F:\php-4.1.0RC2\ext\gd\gd.c(1229) : warning C4024: '_php_image_create_from' : different types for formal and actual parameter 8 F:\php-4.1.0RC2\ext\gd\gd.c(1229) : warning C4047: 'function' : 'struct gdImageStruct *(__cdecl *)()' differs in levels of indirection from 'int ' F:\php-4.1.0RC2\ext\gd\gd.c(1229) : warning C4024: '_php_image_create_from' : different types for formal and actual parameter 9 F:\php-4.1.0RC2\ext\gd\gd.c(1272) : error C2065: 'gdImageCreateFromWBMP' : undeclared identifier F:\php-4.1.0RC2\ext\gd\gd.c(1272) : warning C4047: 'function' : 'struct gdImageStruct *(__cdecl *)()' differs in levels of indirection from 'int ' F:\php-4.1.0RC2\ext\gd\gd.c(1272) : warning C4024: '_php_image_create_from' : different types for formal and actual parameter 8 F:\php-4.1.0RC2\ext\gd\gd.c(1272) : warning C4047: 'function' : 'struct gdImageStruct *(__cdecl *)()' differs in levels of indirection from 'int ' F:\php-4.1.0RC2\ext\gd\gd.c(1272) : warning C4024: '_php_image_create_from' : different types for formal and actual parameter 9 F:\php-4.1.0RC2\ext\gd\gd.c(1284) : error C2065: 'gdImageCreateFromGdCtx' : undeclared identifier F:\php-4.1.0RC2\ext\gd\gd.c(1284) : warning C4047: 'function' : 'struct gdImageStruct *(__cdecl *)()' differs in levels of indirection from 'int ' F:\php-4.1.0RC2\ext\gd\gd.c(1284) : warning C4024: '_php_image_create_from' : different types for formal and actual parameter 9 F:\php-4.1.0RC2\ext\gd\gd.c(1447) : error C2065: 'gdImagePngCtx' : undeclared identifier F:\php-4.1.0RC2\ext\gd\gd.c(1447) : warning C4047: 'function' : 'void (__cdecl *)()' differs in levels of indirection from 'int ' F:\php-4.1.0RC2\ext\gd\gd.c(1447) : warning C4024: '_php_image_output_ctx' : different types for formal and actual parameter 8 F:\php-4.1.0RC2\ext\gd\gd.c(1464) : error C2065: 'gdImageJpegCtx' : undeclared identifier F:\php-4.1.0RC2\ext\gd\gd.c(1464) : warning C4047: 'function' : 'void (__cdecl *)()' differs in levels of indirection from 'int ' F:\php-4.1.0RC2\ext\gd\gd.c(1464) : warning C4024: '_php_image_output_ctx' : different types for formal and actual parameter 8 F:\php-4.1.0RC2\ext\gd\gd.c(1481) : error C2065: 'gdImageWBMPCtx' : undeclared identifier F:\php-4.1.0RC2\ext\gd\gd.c(1481) : warning C4047: 'function' : 'void (__cdecl *)()' differs in levels of indirection from 'int ' F:\php-4.1.0RC2\ext\gd\gd.c(1481) : warning C4024: '_php_image_output_ctx' : different types for formal and actual parameter 8 F:\php-4.1.0RC2\ext\gd\gd.c(1568) : warning C4013: 'gdImagePaletteCopy' undefined; assuming extern returning int F:\php-4.1.0RC2\ext\gd\gd.c(1707) : warning C4013: 'gdImageColorResolve' undefined; assuming extern returning int F:\php-4.1.0RC2\ext\gd\gd.c(2489) : warning C4013: 'gdImageCopyMerge' undefined; assuming extern returning int F:\php-4.1.0RC2\ext\gd\gd.c(2531) : warning C4013: 'gdImageCopyMergeGray' undefined; assuming extern returning int F:\php-4.1.0RC2\ext\gd\gd.c(3322) : error C2065: '_php_image_bw_convert' : undeclared identifier F:\php-4.1.0RC2\ext\gd\gd.c(3322) : warning C4047: 'function' : 'void (__cdecl *)()' differs in levels of indirection from 'int ' F:\php-4.1.0RC2\ext\gd\gd.c(3322) : warning C4024: '_php_image_output' : different types for formal and actual parameter 8 F:\php-4.1.0RC2\ext\gd\gd.c(3369) : error C2143: syntax error : missing ')' before '*' F:\php-4.1.0RC2\ext\gd\gd.c(3369) : error C2081: 'gdIOCtx' : name in formal parameter list illegal F:\php-4.1.0RC2\ext\gd\gd.c(3369) : error C2143: syntax error : missing '{' before '*' F:\php-4.1.0RC2\ext\gd\gd.c(3369) : error C2059: syntax error : 'type' F:\php-4.1.0RC2\ext\gd\gd.c(3369) : error C2059: syntax error : ')' F:\php-4.1.0RC2\ext\gd\gd.c(3499) : error C2063: 'gdImageCreateFromJpeg' : not a function F:\php-4.1.0RC2\ext\gd\gd.c(3510) : error C2063: 'gdImageCreateFromPng' : not a function F:\php-4.1.0RC2\ext\gd\gd.c(3537) : warning C4244: '=' : conversion from 'float ' to 'int ', possible loss of data F:\php-4.1.0RC2\ext\gd\gd.c(3538) : warning C4244: '=' : conversion from 'float ' to 'int ', possible loss of data F:\php-4.1.0RC2\ext\gd\gd.c(3550) : warning C4244: '=' : conversion from 'float ' to 'int ', possible loss of data F:\php-4.1.0RC2\ext\gd\gd.c(3551) : warning C4244: '=' : conversion from 'float ' to 'int ', possible loss of data F:\php-4.1.0RC2\ext\gd\gd.c(3601) : warning C4013: 'gdImageWBMP' undefined; assuming extern returning int gdcache.c gdt1.c gdttf.c F:\php-4.1.0RC2\ext\gd\gdttf.c(629) : warning C4013: 'gdImageColorResolve' undefined; assuming extern returning int F:\php-4.1.0RC2\ext\gd\gdttf.c(391) : warning C4761: integral size mismatch in argument; conversion supplied F:\php-4.1.0RC2\ext\gd\gdttf.c(395) : warning C4761: integral size mismatch in argument; conversion supplied F:\php-4.1.0RC2\ext\gd\gdttf.c(399) : warning C4761: integral size mismatch in argument; conversion supplied F:\php-4.1.0RC2\ext\gd\gdttf.c(403) : warning C4761: integral size mismatch in argument; conversion supplied F:\php-4.1.0RC2\ext\gd\gdttf.c(478) : warning C4761: integral size mismatch in argument; conversion supplied F:\php-4.1.0RC2\ext\gd\gdttf.c(480) : warning C4761: integral size mismatch in argument; conversion supplied F:\php-4.1.0RC2\ext\gd\gdttf.c(482) : warning C4761: integral size mismatch in argument; conversion supplied F:\php-4.1.0RC2\ext\gd\gdttf.c(484) : warning C4761: integral size mismatch in argument; conversion supplied Error executing cl.exe. php_gd.dll - 37 error(s), 58 warning(s) ===================== Looks to me like my gd headers are screwed... can anyone else build this on win32 :) ===================== --------------------Configuration: hyperwave - Win32 Release_TS-------------------- Compiling... hg_comm.c F:\php-4.1.0RC2\ext\hyperwave\hg_comm.c(655) : warning C4047: '=' : 'char *' differs in levels of indirection from 'char (*)[200]' hw.c F:\php-4.1.0RC2\ext\hyperwave\hg_comm.c(1172) : warning C4761: integral size mismatch in argument; conversion supplied F:\php-4.1.0RC2\ext\hyperwave\hg_comm.c(3622) : warning C4700: local variable 'parentIDs' used without having been initialized F:\php-4.1.0RC2\ext\hyperwave\hg_comm.c(3906) : warning C4700: local variable 'ptr' used without having been initialized F:\php-4.1.0RC2\ext\hyperwave\hw.c(2870) : warning C4101: 'type' : unreferenced local variable F:\php-4.1.0RC2\ext\hyperwave\hw.c(2870) : warning C4101: 'len' : unreferenced local variable F:\php-4.1.0RC2\ext\hyperwave\hw.c(4375) : warning C4101: 'anchorstr' : unreferenced local variable Linking... Creating library Release_TS/php_hyperwave.lib and object Release_TS/php_hyperwave.exp php_hyperwave.dll - 0 error(s), 7 warning(s) --------------------Configuration: iisfunc - Win32 Release_TS-------------------- Compiling... iisfunc.cpp F:\php-4.1.0RC2\ext\iisfunc\setup.h(25) : warning C4005: 'HAVE_IISFUNC' : macro redefinition unknown(0) : see previous definition of 'HAVE_IISFUNC' Generating Code... Compiling... setup.c F:\php-4.1.0RC2\ext\iisfunc\setup.h(25) : warning C4005: 'HAVE_IISFUNC' : macro redefinition unknown(0) : see previous definition of 'HAVE_IISFUNC' ====================== I dont think that #define HAVE_IISFUNC should really be there.. Frank?? ====================== --------------------Configuration: mbstring - Win32 Release_TS-------------------- Compiling... mbfilter.c F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(136) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[3]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(236) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[2]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(247) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[2]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(321) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[2]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(350) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[4]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(379) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[3]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(408) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[2]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(437) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[2]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(466) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[2]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(477) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[2]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(506) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[5]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(517) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[3]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(528) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[2]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(539) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[4]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(568) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[2]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(579) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[3]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(590) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[3]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(601) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[3]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(612) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[3]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(623) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[3]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(634) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[3]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(645) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[3]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(656) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[3]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(667) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[3]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(678) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[3]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(689) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[2]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(700) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[3]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(711) : warning C4048: different array subscripts : 'const char *(*)[]' and 'const char *(*)[2]' F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(6401) : warning C4018: '==' : signed/unsigned mismatch F:\php-4.1.0RC2\ext\mbstring\mbfilter.c(6770) : warning C4018: '>=' : signed/unsigned mismatch mbfilter_ja.c mbstring.c Linking... Creating library Release_TS/php_mbstring.lib and object Release_TS/php_mbstring.exp php_mbstring.dll - 0 error(s), 30 warning(s) --------------------Configuration: mssql - Win32 Release_TS-------------------- Compiling... php_mssql.c E:\Program Files\VS6\VC98\INCLUDE\sqlfront.h(312) : error C2373: 'LPCBYTE' : redefinition; different type modifiers E:\Program Files\Microsoft SDK\include\winscard.h(43) : see declaration of 'LPCBYTE' Error executing cl.exe. php_mssql.dll - 1 error(s), 0 warning(s) --------------------Configuration: sockets - Win32 Release_TS-------------------- Compiling... php_sockets_win.c F:\php-4.1.0RC2\ext\sockets\php_sockets_win.h(43) : warning C4005: 'CMSG_DATA' : macro redefinition E:\Program Files\Microsoft SDK\include\wincrypt.h(4848) : see previous definition of 'CMSG_DATA' sockets.c F:\php-4.1.0RC2\ext\sockets\php_sockets_win.h(43) : warning C4005: 'CMSG_DATA' : macro redefinition E:\Program Files\Microsoft SDK\include\wincrypt.h(4848) : see previous definition of 'CMSG_DATA' Linking... Creating library Release_TS/php_sockets.lib and object Release_TS/php_sockets.exp php_sockets.dll - 0 error(s), 2 warning(s) ================================================ I have tested any of the extensions yet, Ill try and sort out my missing libaries and headers and build the rest of the extensions, as soon as that is done then Ill test a bit more. Cheers, - James

« previous php.qa (#3837) next »