Menu

#10 doesn't compile with GCC 4.1.0

open
Maxx
5
2006-04-06
2006-04-06
No

I use GCC 4.1.0 to compile php-templates
and receive error

templates# make
/bin/sh /root/php.test/templates/libtool --mode=compile
gcc -I. -I/root/php.test/templates -DPHP_ATOM_INC
-I/root/php.test/templates/include
-I/root/php.test/templates/main
-I/root/php.test/templates -I/usr/local/php/include/php
-I/usr/local/php/include/php/main
-I/usr/local/php/include/php/TSRM
-I/usr/local/php/include/php/Zend
-I/usr/local/php/include/php/ext -DHAVE_CONFIG_H -g
-O2 -c /root/php.test/templates/tmpl_lib.c -o tmpl_lib.lo
gcc -I. -I/root/php.test/templates -DPHP_ATOM_INC
-I/root/php.test/templates/include
-I/root/php.test/templates/main
-I/root/php.test/templates -I/usr/local/php/include/php
-I/usr/local/php/include/php/main
-I/usr/local/php/include/php/TSRM
-I/usr/local/php/include/php/Zend
-I/usr/local/php/include/php/ext -DHAVE_CONFIG_H -g -O2
-c /root/php.test/templates/tmpl_lib.c -fPIC -DPIC -o
.libs/tmpl_lib.o
/root/php.test/templates/tmpl_lib.c: In function
'php_tmpl_pre_parse':
/root/php.test/templates/tmpl_lib.c:217: error: invalid
lvalue in assignment
/root/php.test/templates/tmpl_lib.c: In function
'php_tmpl_set':
/root/php.test/templates/tmpl_lib.c:446: warning:
comparison of distinct pointer types lacks a cast
/root/php.test/templates/tmpl_lib.c:447: warning:
comparison of distinct pointer types lacks a cast
/root/php.test/templates/tmpl_lib.c: In function
'php_tmpl_parse':
/root/php.test/templates/tmpl_lib.c:700: error: invalid
lvalue in assignment
/root/php.test/templates/tmpl_lib.c: In function
'php_tmpl_load_structure':
/root/php.test/templates/tmpl_lib.c:880: error: invalid
lvalue in assignment
make: *** [tmpl_lib.lo] Error 1

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.