Bug #68966 [NEW]: php7 make file ext/session/mod_mm.lo failed
| From: | la5c at qq dot com | Date: | Sun, 01 Feb 2015 04:30:13 +0000 |
| Subject: | Bug #68966 [NEW]: php7 make file ext/session/mod_mm.lo failed | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-190377@lists.php.net to get a copy of this message | ||
From: la5c at qq dot com
Operating system: ubuntu14.10
PHP version: master-Git-2015-02-01 (Git)
Package: Compile Failure
Bug Type: Bug
Bug description:php7 make file ext/session/mod_mm.lo failed
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
--
Edit bug report at https://bugs.php.net/bug.php?id=68966&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68966&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68966&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68966&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68966&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68966&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68966&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68966&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68966&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68966&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68966&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68966&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68966&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68966&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68966&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68966&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68966&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68966&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68966&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68966&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68966&r=mysqlcfg