Re: php-templates in 6.1
Thanks for the pointers. What I've discovered about the compile error for php-templates is that the "bad" code is there as an aid to debugging memory issues. That is, the zend code appears to depend on pre-processor behavior to correctly embed the filename and line of the source code in the code itself, to be stored here: typedef struct _zend_mem_header { #if ZEND_DEBUG long magic; char *filename; uint lineno; int reported; char *orig_filename; uint orig_lineno; # ifdef ZTS THREAD_T thread_id; # endif #endif struct _zend_mem_header *pNext; struct _zend_mem_header *pLast; unsigned int size:31; unsigned int cached:1; } zend_mem_header; I haven't clearly thought this out, but something about this bugs me... I don't know if it's the irony of being tripped up by a debugging aid, or the lack of separation of the code itself from the tools used to debug the code, but I'm definitely irritated by this. -mark P.S. FYI, I'm using "gcc version 3.4.4 [FreeBSD] 20050518" ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: php-templates in 6.1
Vanilla I. Shu wrote: how about switch to textproc/pecl-ctemplate? it's another php tempalte engine base on google ctemplate library, and writen by me :) Or you could try the popular Smarty http://smarty.php.net/ . /usr/ports/www/smarty . ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: php-templates in 6.1
On Tue, Aug 15, 2006 at 04:37:33PM -0700, Mark Kent wrote: > Hello, > I'm trying to build php4 with php-templates on 6.1-RELEASE. > My system, with /usr/ports updated, uses php-4.4.3 and > php-templates-1.7.2.I get a compile error in php-templates > (see below). > I looked at the code and the pre-processor output and the best I can > come up with is "Yeah, looks like a problem", which puts me on par > with the compiler, but doesn't help me move forward. > Any hints on how I fix this? > BTW, I just installed a virgin 6.1 and note that it uses > php-4.4.2 and php_templates-1.7, and it fails in the same way. how about switch to textproc/pecl-ctemplate? it's another php tempalte engine base on google ctemplate library, and writen by me :) ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
php-templates in 6.1
Hello, I'm trying to build php4 with php-templates on 6.1-RELEASE. My system, with /usr/ports updated, uses php-4.4.3 and php-templates-1.7.2.I get a compile error in php-templates (see below). I looked at the code and the pre-processor output and the best I can come up with is "Yeah, looks like a problem", which puts me on par with the compiler, but doesn't help me move forward. Any hints on how I fix this? BTW, I just installed a virgin 6.1 and note that it uses php-4.4.2 and php_templates-1.7, and it fails in the same way. Thanks, -mark ===> Building for php-templates-1.7.2 /bin/sh /usr/ports/www/php-templates/work/templates/libtool --mode=compile gcc -I. -I/usr/ports/www/php-templates/work/templates -DPHP_ATOM_INC -I/usr/ports/www/php-templates/work/templates/include -I/usr/ports/www/php-templates/work/templates/main -I/usr/ports/www/php-templates/work/templates -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c /usr/ports/www/php-templates/work/templates/templates.c -o templates.lo gcc -I. -I/usr/ports/www/php-templates/work/templates -DPHP_ATOM_INC -I/usr/ports/www/php-templates/work/templates/include -I/usr/ports/www/php-templates/work/templates/main -I/usr/ports/www/php-templates/work/templates -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c /usr/ports/www/php-templates/work/templates/templates.c -fPIC -DPIC -o templates.lo /usr/ports/www/php-templates/work/templates/templates.c: In function `php_tmpl_init': /usr/ports/www/php-templates/work/templates/templates.c:370: error: `__zend_filename' undeclared (first use in this function) /usr/ports/www/php-templates/work/templates/templates.c:370: error: (Each undeclared identifier is reported only once /usr/ports/www/php-templates/work/templates/templates.c:370: error: for each function it appears in.) /usr/ports/www/php-templates/work/templates/templates.c:370: error: `__zend_lineno' undeclared (first use in this function) *** Error code 1 Stop in /usr/ports/www/php-templates/work/templates. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"