|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2007-03-28 13:49 UTC] samuel at debian-ce dot org
 Description:
------------
Trying to install memcache pecl module in a Ubuntu Edgy Eft box i get the error on ./configure
checking for session includes... configur: error: Cannot find php_session.h
Checking at the configure script, on line 4109:
  if test "$PHP_MEMCACHE_SESSION" != "no"; then
        { echo "$as_me:$LINENO: checking for session includes" >&5
echo $ECHO_N "checking for session includes... $ECHO_C" >&6; }
    if test -f $abs_srcdir/include/php/ext/session/php_session.h; then
      session_inc_path=$abs_srcdir/include/php
    elif test -f $abs_srcdir/ext/session/php_session.h; then
      session_inc_path=$abs_srcdir
    elif test -f $prefix/include/php/ext/session/php_session.h; then
      session_inc_path=$prefix/include/php
    else
      session_inc_path=""
    fi
But in Ubuntu the package php4-dev install it includes on /usr/include/php4/ext/session
all tests check in include/php, to build this module i have to create a sym link /usr/include/php to /usr/include/php4
Thanks.
Reproduce code:
---------------
./configure when php4 devel files aren?t in /usr/include/php
Expected result:
----------------
./configure finish without error.
Actual result:
--------------
checking for the location of ZLIB... no
checking for the location of zlib... /usr
checking for session includes... configure: error: Cannot find php_session.h
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 15:00:01 2025 UTC | 
After some more digging i found out that the current config9.m4 already sort-of looks in the include dirs returned by php-config, only the problem is, the current approach only works for php5. Memcache's config9.m4 uses the $phpincludedir m4 var which, afaik, is not available in php4 phpize (compare phpize.m4 between php5 and php4 and see what i mean) One bit hackish way to fix it would be to add a check for: ${prefix}/include/php/ext/session/php_session.h