LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mmcache error (https://www.linuxquestions.org/questions/linux-software-2/mmcache-error-607543/)

nasria 12-18-2007 02:24 AM

mmcache error
 
Hello,

I am using Redhat es4 and I am facing following error while installing mmcache.

Code:

root@station1 turck-mmcache-2.4.6]# make
/bin/sh /mmcache/turck-mmcache-2.4.6/libtool --mode=compile gcc  -I. -I/mmcache/turck-mmcache-2.4.6 -DPHP_ATOM_INC -I/mmcache/turck-mmcache-2.4.6/include -I/mmcache/turck-mmcache-2.4.6/main -I/mmcache/turck-mmcache-2.4.6 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2  -c /mmcache/turck-mmcache-2.4.6/mmcache.c -o mmcache.lo
 gcc -I. -I/mmcache/turck-mmcache-2.4.6 -DPHP_ATOM_INC -I/mmcache/turck-mmcache-2.4.6/include -I/mmcache/turck-mmcache-2.4.6/main -I/mmcache/turck-mmcache-2.4.6 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /mmcache/turck-mmcache-2.4.6/mmcache.c  -fPIC -DPIC -o .libs/mmcache.o
/mmcache/turck-mmcache-2.4.6/mmcache.c:389: error: conflicting types for 'php_get_uname'
/mmcache/turck-mmcache-2.4.6/mmcache.c:389: note: an argument type that has a default promotion can't match an empty parameter name list declaration
/usr/local/include/php/ext/standard/info.h:87: error: previous declaration of 'php_get_uname' was here
/mmcache/turck-mmcache-2.4.6/mmcache.c:389: error: conflicting types for 'php_get_uname'
/mmcache/turck-mmcache-2.4.6/mmcache.c:389: note: an argument type that has a default promotion can't match an empty parameter name list declaration
/usr/local/include/php/ext/standard/info.h:87: error: previous declaration of 'php_get_uname' was here
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `fixup_zval':
/mmcache/turck-mmcache-2.4.6/mmcache.c:705: error: `empty_string' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c:705: error: (Each undeclared identifier is reported only once
/mmcache/turck-mmcache-2.4.6/mmcache.c:705: error: for each function it appears in.)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `calc_string':
/mmcache/turck-mmcache-2.4.6/mmcache.c:1229: error: `align_test' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `calc_zval_ptr':
/mmcache/turck-mmcache-2.4.6/mmcache.c:1253: error: `align_test' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `calc_property_info':
/mmcache/turck-mmcache-2.4.6/mmcache.c:1260: error: `align_test' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `calc_hash_int':
/mmcache/turck-mmcache-2.4.6/mmcache.c:1275: error: `align_test' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `calc_zval':
/mmcache/turck-mmcache-2.4.6/mmcache.c:1293: error: `empty_string' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c:1303: error: `align_test' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `calc_op_array':
/mmcache/turck-mmcache-2.4.6/mmcache.c:1345: error: `align_test' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `calc_class_entry':
/mmcache/turck-mmcache-2.4.6/mmcache.c:1439: error: `align_test' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `calc_size':
/mmcache/turck-mmcache-2.4.6/mmcache.c:1484: error: `align_test' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `store_string':
/mmcache/turck-mmcache-2.4.6/mmcache.c:1521: error: `align_test' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `store_zval_ptr':
/mmcache/turck-mmcache-2.4.6/mmcache.c:1556: error: `align_test' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `store_property_info':
/mmcache/turck-mmcache-2.4.6/mmcache.c:1567: error: `align_test' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `store_hash_int':
/mmcache/turck-mmcache-2.4.6/mmcache.c:1587: error: `align_test' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `store_zval':
/mmcache/turck-mmcache-2.4.6/mmcache.c:1652: error: `empty_string' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c:1665: error: `align_test' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `store_op_array':
/mmcache/turck-mmcache-2.4.6/mmcache.c:1709: error: `align_test' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `store_class_entry':
/mmcache/turck-mmcache-2.4.6/mmcache.c:1849: error: `align_test' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `mmcache_store_int':
/mmcache/turck-mmcache-2.4.6/mmcache.c:1941: error: `align_test' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `restore_zval':
/mmcache/turck-mmcache-2.4.6/mmcache.c:2159: error: `empty_string' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `mmcache_put':
/mmcache/turck-mmcache-2.4.6/mmcache.c:3416: error: `align_test' undeclared (first use in this function)
/mmcache/turck-mmcache-2.4.6/mmcache.c: In function `ps_create_sid_mmcache':
/mmcache/turck-mmcache-2.4.6/mmcache.c:4004: error: `empty_string' undeclared (first use in this function)
make: *** [mmcache.lo] Error 1
[root@station1 turck-mmcache-2.4.6]#

Kindly help me removing this error.

Thanks.

Nasria.

exvor 12-18-2007 06:09 PM

This is probably due to the age of the program your attempting to compile I got this from there source forge page

# Turck MMCache for PHP version 2.4.6 is released 2003-11-04

As you can see the last time this was updated was in 2003 Im betting that it does not compile cleanly on your version of GCC. Back a while ago they changed things in GCC so it was more ansi strict with C programs and some things that were warnings are now errors. I would look around online and see if there is a patch for the program for GCC 4 or whatever fedora is using these days.


All times are GMT -5. The time now is 02:04 PM.