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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to