Bug #68966 [Opn->Csd]: php7 make file ext/session/mod_mm.lo failed
| From: | laruence@php.net | 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