作者 主題: php_templates 在linux 下 無法編譯  (閱讀 2958 次)

0 會員 與 1 訪客 正在閱讀本文。

bill16

  • 可愛的小學生
  • *
  • 文章數: 21
    • 檢視個人資料
php_templates 在linux 下 無法編譯
« 於: 2005-10-09 01:13 »
代碼: [選擇]
官方網站:http://sourceforge.net/projects/php-templates  
 編譯 php_templates 所需要的步驟如下:  
   
 external extension: /* you should have PHP installed */  
   
         tar -zxf templates.tar.gz  
        cd temlpates  
        phpize  
        ./configure --enable-templates=shared  
         make  
   
         cd modules  
         ls -la templates.so  
   
 但我到make 這一步時就出
[code]
/bin/sh /usr/src/redhat/SOURCES/php-5.0.4/ext/templates/libtool --mode=compile gcc  -I. -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates -DPHP_ATOM_INC -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/include -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/main -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend  -DHAVE_CONFIG_H  -g -O2   -c /usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c -o templates.lo
mkdir .libs
 gcc -I. -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates -DPHP_ATOM_INC -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/include -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/main -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -DHAVE_CONFIG_H -g -O2 -c /usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c  -fPIC -DPIC -o .libs/templates.o
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c: In function 'zif_tmpl_set_global':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:492: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c: In function 'zif_tmpl_parse':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:539: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:549: warning: pointer targets in initialization differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c: In function 'zif_tmpl_iterate':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:574: warning: pointer targets in initialization differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c: In function 'zif_tmpl_context':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:625: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c: In function 'zif_tmpl_type_of':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:659: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c: In function 'zif_tmpl_get':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:690: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:694: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c: In function 'zif_tmpl_unset':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:801: warning: pointer targets in initialization differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:814: warning: pointer targets in initialization differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:816: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/templates.c:821: warning: pointer targets in passing argument 2 of 'zend_hash_del_key_or_index' differ in signedness
/bin/sh /usr/src/redhat/SOURCES/php-5.0.4/ext/templates/libtool --mode=compile gcc  -I. -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates -DPHP_ATOM_INC -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/include -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/main -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend  -DHAVE_CONFIG_H  -g -O2   -c /usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c -o tmpl_lib.lo
 gcc -I. -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates -DPHP_ATOM_INC -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/include -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/main -I/usr/src/redhat/SOURCES/php-5.0.4/ext/templates -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -DHAVE_CONFIG_H -g -O2 -c /usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c  -fPIC -DPIC -o .libs/tmpl_lib.o
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_line_num':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:45: warning: pointer targets in assignment differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_pre_parse_config':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:89: warning: pointer targets in passing argument 3 of 'search_qs' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:89: warning: pointer targets in assignment differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_pre_parse':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:217: error: invalid lvalue in assignment
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:243: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:251: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:251: warning: pointer targets in passing argument 2 of 'add_assoc_stringl_ex' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:265: warning: pointer targets in assignment differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:278: warning: pointer targets in initialization differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:280: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:282: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:282: warning: pointer targets in passing argument 2 of 'add_assoc_stringl_ex' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:303: warning: pointer targets in assignment differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:310: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:311: warning: pointer targets in passing argument 2 of 'php_tmpl_line_num' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:320: warning: pointer targets in initialization differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:321: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:321: warning: pointer targets in passing argument 2 of 'add_assoc_stringl_ex' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:349: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:362: warning: pointer targets in passing argument 2 of 'php_tmpl_line_num' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_set':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:435: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:446: warning: pointer targets in assignment differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:446: warning: comparison of distinct pointer types lacks a cast
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:447: warning: comparison of distinct pointer types lacks a cast
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:448: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:458: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:461: warning: pointer targets in passing argument 2 of 'zend_hash_del_key_or_index' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:466: warning: pointer targets in passing argument 2 of '_zend_hash_add_or_update' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_get_iteration':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:491: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:505: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:505: warning: pointer targets in assignment differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:523: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:529: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:535: warning: pointer targets in passing argument 2 of '_zend_hash_add_or_update' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:538: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:574: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:588: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_parse':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:691: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:700: error: invalid lvalue in assignment
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:702: warning: pointer targets in passing argument 1 of 'php_sprintf' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_parse_check_memory':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:767: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_set_array':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:821: warning: pointer targets in initialization differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c: In function 'php_tmpl_load_structure':
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:880: error: invalid lvalue in assignment
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:891: warning: pointer targets in passing argument 2 of '_zend_hash_add_or_update' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:894: warning: pointer targets in passing argument 2 of 'php_tmpl_load_path' differ in signedness
/usr/src/redhat/SOURCES/php-5.0.4/ext/templates/tmpl_lib.c:901: warning: pointer targets in initialization differ in signedness
make: *** [tmpl_lib.lo] Error 1


Darkhero

  • 酷!學園 學長們
  • 俺是博士!
  • *****
  • 文章數: 3728
  • 性別: 男
    • 檢視個人資料
    • ㄚ凱隨手紀
php_templates 在linux 下 無法編譯
« 回覆 #1 於: 2005-10-09 15:48 »
你用的是 php5 ,而我剛剛去 php-template 網站上看,最新釋出的版本已經是 2003 年釋出的.
我懷疑它可能無法在 php5 下面正常編譯執行喔~....

要不要考慮改用別的呢?....
希望我們的討論是為了把問題解決,而不是爭論誰對誰錯.
『灌水才是重點,發文只是順便』
『我寧可讓不會釣魚的工程師餓死,也不想讓會餓死的工程師去攪沉公司....』
Blog: http://blog.darkhero.net/
秘密基地: http://www.darkhero.net/comic/
目前服務的網站: http://www.libook.com.tw/

bill16

  • 可愛的小學生
  • *
  • 文章數: 21
    • 檢視個人資料
php_templates 在linux 下 無法編譯
« 回覆 #2 於: 2005-10-09 16:40 »
謝謝你的回答!
以windows 上 php 5.0 以上的 版本,是有人編譯出來 dll 的 extension檔,所以我想是可以編譯的,只是不知問題在那裡。
請各位大大賜教,謝謝!

Darkhero

  • 酷!學園 學長們
  • 俺是博士!
  • *****
  • 文章數: 3728
  • 性別: 男
    • 檢視個人資料
    • ㄚ凱隨手紀
php_templates 在linux 下 無法編譯
« 回覆 #3 於: 2005-10-10 17:12 »
降子喔...
那你有知道那個人編譯出來的有沒有經過修正?....

另外...也有可能是編譯過程中環境不同導致的..像是 gcc or 其他環境因數...
希望我們的討論是為了把問題解決,而不是爭論誰對誰錯.
『灌水才是重點,發文只是順便』
『我寧可讓不會釣魚的工程師餓死,也不想讓會餓死的工程師去攪沉公司....』
Blog: http://blog.darkhero.net/
秘密基地: http://www.darkhero.net/comic/
目前服務的網站: http://www.libook.com.tw/