Bug #68966 [Opn->Csd]: php7 make file ext/session/mod_mm.lo failed

From: Date: Mon, 02 Feb 2015 06:26:24 +0000
Subject: Bug #68966 [Opn->Csd]: php7 make file ext/session/mod_mm.lo failed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190395@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68966&edit=1 ID: 68966 Updated by: laruence@php.net Reported by: la5c at qq dot com Summary: php7 make file ext/session/mod_mm.lo failed -Status: Open +Status: Closed Type: Bug Package: Compile Failure Operating System: ubuntu14.10 PHP Version: master-Git-2015-02-01 (Git) Block user comment: N Private report: N New Comment: Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=f1981365f5b65c48d37e17473abe8e2caab5204a Log: Fixed #68966 (php7 make file ext/session/mod_mm.lo failed) Previous Comments: ------------------------------------------------------------------------ [2015-02-01 04:30:10] la5c at qq dot com Description: ------------ configure with "--with-mm" An error occurred while run make: /bin/bash /home/liujin834/work/projects/php-src/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/session/ -I/home/liujin834/work/projects/php-src/ext/session/ -DPHP_ATOM_INC -I/home/liujin834/work/projects/php-src/include -I/home/liujin834/work/projects/php-src/main -I/home/liujin834/work/projects/php-src -I/home/liujin834/work/projects/php-src/ext/date/lib -I/home/liujin834/work/projects/php-src/ext/ereg/regex -I/usr/include/libxml2 -I/home/liujin834/work/projects/php-src/ext/mbstring/oniguruma -I/home/liujin834/work/projects/php-src/ext/mbstring/libmbfl -I/home/liujin834/work/projects/php-src/ext/mbstring/libmbfl/mbfl -I/usr/include/postgresql -I/home/liujin834/work/projects/php-src/ext/sqlite3/libsqlite -I/usr/include/pspell -I/usr/include/tidy -I/home/liujin834/work/projects/php-src/ext/zip/lib -I/home/liujin834/work/projects/php-src/TSRM -I/home/liujin834/work/projects/php-src/Zend -I/usr/include -g -O2 -fvisibility=hid! den -c /home/liujin834/work/projects/php-src/ext/session/mod_mm.c -o ext/session/mod_mm.lo /home/liujin834/work/projects/php-src/ext/session/mod_mm.c: In function ‘ps_read_mm’: /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:359:29: warning: passing argument 2 of ‘ps_mm_key_exists’ from incompatible pointer type && ps_mm_key_exists(data, key) == FAILURE) { ^ /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:210:12: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’ static int ps_mm_key_exists(ps_mm *data, const char *key) ^ In file included from /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:32:0: /home/liujin834/work/projects/php-src/ext/session/php_session.h:224:15: error: too many arguments to function ‘ps_globals.mod->s_create_sid’ #define PS(v) (ps_globals.v) ^ /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:365:12: note: in expansion of macro ‘PS’ PS(id) = PS(mod)->s_create_sid((void **)&data, NULL); ^ /home/liujin834/work/projects/php-src/ext/session/php_session.h:224:15: warning: passing argument 2 of ‘ps_sd_lookup’ from incompatible pointer type #define PS(v) (ps_globals.v) ^ /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:376:26: note: in expansion of macro ‘PS’ sd = ps_sd_lookup(data, PS(id), 0); /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:181:15: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’ static ps_sd *ps_sd_lookup(ps_mm *data, const char *key, int rw) ^ /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:378:4: error: ‘vallen’ undeclared (first use in this function) *vallen = sd->datalen; ^ /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:378:4: note: each undeclared identifier is reported only once for each function it appears in /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:381:23: error: incompatible types when assigning to type ‘zend_string’ from type ‘int’ (*val)[sd->datalen] = '\0'; ^ /home/liujin834/work/projects/php-src/ext/session/mod_mm.c: In function ‘ps_write_mm’: /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:397:26: warning: passing argument 2 of ‘ps_sd_lookup’ from incompatible pointer type sd = ps_sd_lookup(data, key, 1); ^ /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:181:15: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’ static ps_sd *ps_sd_lookup(ps_mm *data, const char *key, int rw) ^ /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:399:24: warning: passing argument 2 of ‘ps_sd_new’ from incompatible pointer type sd = ps_sd_new(data, key); ^ /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:115:15: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’ static ps_sd *ps_sd_new(ps_mm *data, const char *key) ^ /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:404:7: error: ‘vallen’ undeclared (first use in this function) if (vallen >= sd->alloclen) { ^ /home/liujin834/work/projects/php-src/ext/session/mod_mm.c: In function ‘ps_delete_mm’: /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:436:26: warning: passing argument 2 of ‘ps_sd_lookup’ from incompatible pointer type sd = ps_sd_lookup(data, key, 0); ^ /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:181:15: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’ static ps_sd *ps_sd_lookup(ps_mm *data, const char *key, int rw) ^ /home/liujin834/work/projects/php-src/ext/session/mod_mm.c: In function ‘ps_create_sid_mm’: /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:486:47: error: ‘newlen’ undeclared (first use in this function) sid = php_session_create_id((void **)&data, newlen); ^ /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:486:9: error: too many arguments to function ‘php_session_create_id’ sid = php_session_create_id((void **)&data, newlen); ^ In file included from /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:32:0: /home/liujin834/work/projects/php-src/ext/session/php_session.h:252:21: note: declared here PHPAPI zend_string *php_session_create_id(PS_CREATE_SID_ARGS); ^ /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:486:7: warning: assignment from incompatible pointer type sid = php_session_create_id((void **)&data, newlen); ^ /home/liujin834/work/projects/php-src/ext/session/mod_mm.c:499:2: warning: return from incompatible pointer type return sid; ^ Makefile:1547: recipe for target 'ext/session/mod_mm.lo' failed make: *** [ext/session/mod_mm.lo] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68966&edit=1

« previous php.bugs (#190395) next »