Re: [PHP-GTK-DEV] Compiling PHP-GTK with PHP-5.3.1

[email protected] (Elizabeth M Smith) Sat, 16 Jan 2010 10:26:00 -0500
Newsgroups php.gtk.dev
Message-ID <[email protected]>
Thomas Worm wrote:
> Hello,
>
>
> I tried to compile PHP-GTK 2.0.1 with PHP 5.3.1.
> The first errors I was able to fix. The patch file with my fixes you 
> find as an attachment to this mail.
> But now I get following error and I don't know why. VC9 doesn't find 
> the SG-definition, but SAPI.h is included in php_gtk+.c. So what's 
> going wrong there?
>
>
> ###
>
> C:\php-sdk\php53\vc9\x86\php-gtk_build>nmake
>
> Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
> cl : Command line warning D9035 : option 'GX' has been deprecated and 
> will be removed in a future release
> cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
> php_gtk+.c
> c:\php-sdk\php53\vc9\x86\php-5.3.1\zend\zend_execute.h(231) : warning 
> C4018: '>' : signed/unsigned mismatch
> ext\gtk+\php_gtk+.c(82) : warning C4013: 'SG' undefined; assuming 
> extern returning int
> ext\gtk+\php_gtk+.c(82) : error C2065: 'request_info' : undeclared 
> identifier
> ext\gtk+\php_gtk+.c(82) : error C2224: left of '.path_translated' must 
> have struct/union type
> ext\gtk+\php_gtk+.c(83) : error C2065: 'request_info' : undeclared 
> identifier
> ext\gtk+\php_gtk+.c(83) : error C2224: left of '.path_translated' must 
> have struct/union type
> ext\gtk+\php_gtk+.c(83) : error C2198: 'g_strdup' : too few arguments 
> for call
> ext\gtk+\php_gtk+.c(179) : error C2065: 'gtk_ce' : undeclared identifier
> ext\gtk+\php_gtk+.c(179) : warning C4047: 'function' : 
> 'zend_class_entry *' differs in levels of indirection from 'int'
> ext\gtk+\php_gtk+.c(179) : warning C4024: 
> 'phpg_register_string_constant' : different types for formal and 
> actual parameter 1
> ext\gtk+\php_gtk+.c(196) : error C2065: 'gdk_ce' : undeclared identifier
> ext\gtk+\php_gtk+.c(196) : warning C4047: 'function' : 
> 'zend_class_entry *' differs in levels of indirection from 'int'
> ext\gtk+\php_gtk+.c(196) : warning C4024: 
> 'phpg_register_string_constant' : different types for formal and 
> actual parameter 1
> ext\gtk+\php_gtk+.c(197) : error C2065: 'gdk_ce' : undeclared identifier
> ext\gtk+\php_gtk+.c(197) : warning C4047: 'function' : 
> 'zend_class_entry *' differs in levels of indirection from 'int'
> ext\gtk+\php_gtk+.c(197) : warning C4024: 
> 'phpg_register_string_constant' : different types for formal and 
> actual parameter 1
> ext\gtk+\php_gtk+.c(198) : error C2065: 'gdk_ce' : undeclared identifier
> ext\gtk+\php_gtk+.c(198) : warning C4047: 'function' : 
> 'zend_class_entry *' differs in levels of indirection from 'int'
> ext\gtk+\php_gtk+.c(198) : warning C4024: 
> 'phpg_register_string_constant' : different types for formal and 
> actual parameter 1
> ext\gtk+\php_gtk+.c(199) : error C2065: 'gdk_ce' : undeclared identifier
> ext\gtk+\php_gtk+.c(199) : warning C4047: 'function' : 
> 'zend_class_entry *' differs in levels of indirection from 'int'
> ext\gtk+\php_gtk+.c(199) : warning C4024: 
> 'phpg_register_string_constant' : different types for formal and 
> actual parameter 1
> ext\gtk+\php_gtk+.c(200) : error C2065: 'gdk_ce' : undeclared identifier
> ext\gtk+\php_gtk+.c(200) : warning C4047: 'function' : 
> 'zend_class_entry *' differs in levels of indirection from 'int'
> ext\gtk+\php_gtk+.c(200) : warning C4024: 
> 'phpg_register_string_constant' : different types for formal and 
> actual parameter 1
> ext\gtk+\php_gtk+.c(201) : error C2065: 'gdk_ce' : undeclared identifier
> ext\gtk+\php_gtk+.c(201) : warning C4047: 'function' : 
> 'zend_class_entry *' differs in levels of indirection from 'int'
> ext\gtk+\php_gtk+.c(201) : warning C4024: 
> 'phpg_register_string_constant' : different types for formal and 
> actual parameter 1
> ext\gtk+\php_gtk+.c(202) : error C2065: 'gdk_ce' : undeclared identifier
> ext\gtk+\php_gtk+.c(202) : warning C4047: 'function' : 
> 'zend_class_entry *' differs in levels of indirection from 'int'
> ext\gtk+\php_gtk+.c(202) : warning C4024: 
> 'phpg_register_string_constant' : different types for formal and 
> actual parameter 1
> ext\gtk+\php_gtk+.c(203) : error C2065: 'gdk_ce' : undeclared identifier
> ext\gtk+\php_gtk+.c(203) : warning C4047: 'function' : 
> 'zend_class_entry *' differs in levels of indirection from 'int'
> ext\gtk+\php_gtk+.c(203) : warning C4024: 
> 'phpg_register_string_constant' : different types for formal and 
> actual parameter 1
> ext\gtk+\php_gtk+.c(204) : error C2065: 'gdk_ce' : undeclared identifier
> ext\gtk+\php_gtk+.c(204) : warning C4047: 'function' : 
> 'zend_class_entry *' differs in levels of indirection from 'int'
> ext\gtk+\php_gtk+.c(204) : warning C4024: 
> 'phpg_register_string_constant' : different types for formal and 
> actual parameter 1
> ext\gtk+\php_gtk+.c(205) : error C2065: 'gdk_ce' : undeclared identifier
> ext\gtk+\php_gtk+.c(205) : warning C4047: 'function' : 
> 'zend_class_entry *' differs in levels of indirection from 'int'
> ext\gtk+\php_gtk+.c(205) : warning C4024: 
> 'phpg_register_string_constant' : different types for formal and 
> actual parameter 1
> ext\gtk+\php_gtk+.c(206) : error C2065: 'gdk_ce' : undeclared identifier
> ext\gtk+\php_gtk+.c(206) : warning C4047: 'function' : 
> 'zend_class_entry *' differs in levels of indirection from 'int'
> ext\gtk+\php_gtk+.c(206) : warning C4024: 
> 'phpg_register_string_constant' : different types for formal and 
> actual parameter 1
> ext\gtk+\php_gtk+.c(207) : error C2065: 'gdk_ce' : undeclared identifier
> ext\gtk+\php_gtk+.c(207) : warning C4047: 'function' : 
> 'zend_class_entry *' differs in levels of indirection from 'int'
> ext\gtk+\php_gtk+.c(207) : warning C4024: 
> 'phpg_register_string_constant' : different types for formal and 
> actual parameter 1
> ext\gtk+\php_gtk+.c(208) : error C2065: 'gdk_ce' : undeclared identifier
> ext\gtk+\php_gtk+.c(208) : warning C4047: 'function' : 
> 'zend_class_entry *' differs in levels of indirection from 'int'
> ext\gtk+\php_gtk+.c(208) : warning C4024: 
> 'phpg_register_string_constant' : different types for formal and 
> actual parameter 1
> ext\gtk+\php_gtk+.c(209) : error C2065: 'gdk_ce' : undeclared identifier
> ext\gtk+\php_gtk+.c(209) : warning C4047: 'function' : 
> 'zend_class_entry *' differs in levels of indirection from 'int'
> ext\gtk+\php_gtk+.c(209) : warning C4024: 
> 'phpg_register_string_constant' : different types for formal and 
> actual parameter 1
> ext\gtk+\php_gtk+.c(210) : error C2065: 'gdk_ce' : undeclared identifier
> ext\gtk+\php_gtk+.c(210) : warning C4047: 'function' : 
> 'zend_class_entry *' differs in levels of indirection from 'int'
> ext\gtk+\php_gtk+.c(210) : warning C4024: 
> 'phpg_register_string_constant' : different types for formal and 
> actual parameter 1
> ext\gtk+\php_gtk+.c(211) : error C2065: 'gdk_ce' : undeclared identifier
> ext\gtk+\php_gtk+.c(211) : warning C4047: 'function' : 
> 'zend_class_entry *' differs in levels of indirection from 'int'
> ext\gtk+\php_gtk+.c(211) : warning C4024: 
> 'phpg_register_string_constant' : different types for formal and 
> actual parameter 1
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 
> 9.0\VC\Bin
> \cl.EXE"' : return code '0x2'
> Stop.
>
> C:\php-sdk\php53\vc9\x86\php-gtk_build>
>
> ###
>
> Do you have a hint what I can do?
>
>
> Thanks and best regards,
> Thomas
>
>
>
> --
>
> Mit freundlichen Grüßen,
> Thomas Worm
>
> ******************************
>
> Thomas Worm
> Handel & Dienstleistung
> Postfach 2207
> D-90009 Nürnberg
>
> Hausanschrift:
> Hintere Cramergasse 3
> D-90478 Nürnberg
>
> ******************************
>
> Telefon: +49 1803 030505000
> Telefax: +49 1803 030505050
>
> Allgemeiner Kontakt:
> [email protected] <mailto:[email protected]>
>
> Buchhaltung:
> [email protected] <mailto:[email protected]>
>
> ******************************
>
> Geschäftsführer: Thomas Worm
> [email protected] <mailto:[email protected]>
>
> Kontoverbindung:
> Inhaber: Thomas Worm H. u. D.
> Kontonummer: 38 56 38
> Bankleitzahl: 760 606 18
> Kreditinstitut: Volksbank-Raiffeisenbank Nürnberg eG
>
> Steuernummer: 240-290-21429
> USt-ID: DE250745940
> ISBN-Verlagsnummer: 3-86749
>
> ******************************
you need the SVN version of PHP-GTK to use PHP 5.3, 2.0.1 will not 
compile against 5.3

Thanks,

Elizabeth