php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68966 php7 make file ext/session/mod_mm.lo failed
Submitted: 2015-02-01 04:30 UTC Modified: -
From: la5c at qq dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: master-Git-2015-02-01 (Git) OS: ubuntu14.10
Private report: No CVE-ID: None
 [2015-02-01 04:30 UTC] 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=hidden  -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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-02-02 06:26 UTC] laruence@php.net
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)
 [2015-02-02 06:26 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2016-07-20 11:39 UTC] davey@php.net
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)
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Dec 07 10:03:34 2021 UTC