Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jan 2007 12:13:59 -0500
From:      "Jeff MacDonald" <bignose@gmail.com>
To:        "FreeBSD Questions" <freebsd-questions@freebsd.org>
Subject:   php5-session port seems borked
Message-ID:  <f17daf040701190913k429b28f4n1e78c936ff2da354@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I was getting the error

Fatal error: Call to undefined function session_name() in

So, I thought i'd try recompiling session support for php, here is a
transcript of how that went :)

secure1# make
===>  Building for php5-session-5.2.0
/bin/sh /usr/ports/www/php5-session/work/php-5.2.0/ext/session/libtool
--mode=compile cc  -I.
-I/usr/ports/www/php5-session/work/php-5.2.0/ext/session
-DPHP_ATOM_INC -I/usr/ports/www/php5-session/work/php-5.2.0/ext/session/include
-I/usr/ports/www/php5-session/work/php-5.2.0/ext/session/main
-I/usr/ports/www/php5-session/work/php-5.2.0/ext/session
-I/usr/local/include/php -I/usr/local/include/php/main
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend
-I/usr/local/include/php/ext  -DHAVE_CONFIG_H  -O -pipe
-mcpu=pentiumpro   -c
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c -o
session.lo
 cc -I. -I/usr/ports/www/php5-session/work/php-5.2.0/ext/session
-DPHP_ATOM_INC -I/usr/ports/www/php5-session/work/php-5.2.0/ext/session/include
-I/usr/ports/www/php5-session/work/php-5.2.0/ext/session/main
-I/usr/ports/www/php5-session/work/php-5.2.0/ext/session
-I/usr/local/include/php -I/usr/local/include/php/main
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend
-I/usr/local/include/php/ext -DHAVE_CONFIG_H -O -pipe -mcpu=pentiumpro
-c /usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c
-fPIC -DPIC -o .libs/session.o
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:85:
warning: parameter names (without types) in function declaration
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c: In
function `OnUpdateSaveDir':
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:156:
warning: assignment makes pointer from integer without a cast
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c: At top level:
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:285:
error: `ps' undeclared here (not in a function)
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:285:
error: initializer element is not constant
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:285:
error: (near initialization for
`session_module_entry.post_deactivate_func')
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:286:
error: `ps' undeclared here (not in a function)
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:286:
error: initializer element is not constant
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:286:
error: (near initialization for `session_module_entry.globals_id')
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:289:
warning: excess elements in struct initializer
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:289:
warning: (near initialization for `session_module_entry')
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:289:
warning: excess elements in struct initializer
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:289:
warning: (near initialization for `session_module_entry')
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:290:
warning: excess elements in struct initializer
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:290:
warning: (near initialization for `session_module_entry')
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c: In
function `PHP_GINIT_FUNCTION':
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:1892:
error: invalid type argument of `->'
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:1893:
error: invalid type argument of `->'
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:1894:
error: invalid type argument of `->'
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:1895:
error: invalid type argument of `->'
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:1896:
error: invalid type argument of `->'
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:1897:
error: invalid type argument of `->'
/usr/ports/www/php5-session/work/php-5.2.0/ext/session/session.c:1898:
error: invalid type argument of `->'
*** Error code 1

Stop in /usr/ports/www/php5-session/work/php-5.2.0/ext/session.
*** Error code 1

Stop in /usr/ports/www/php5-session.

Let me know if I need to provide more information on this.

Jeff.

-- 
Unless otherwise indicated, anything I write is either garnered from
experience or pulled out of my ass, depending on situational needs..

Jeff MacDonald



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f17daf040701190913k429b28f4n1e78c936ff2da354>