From owner-freebsd-questions@FreeBSD.ORG Fri Jan 19 17:14:00 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 906B416A401 for ; Fri, 19 Jan 2007 17:14:00 +0000 (UTC) (envelope-from bignose@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.229]) by mx1.freebsd.org (Postfix) with ESMTP id 11BEA13C457 for ; Fri, 19 Jan 2007 17:13:59 +0000 (UTC) (envelope-from bignose@gmail.com) Received: by wr-out-0506.google.com with SMTP id 71so494603wri for ; Fri, 19 Jan 2007 09:13:59 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=HsTGaDbT0IaMl8KAJFqxCKg+4eULtNrgi9NGPbNqjYoexGUyrESiGkedrD4kRqLCxJINEH5p4B/0Wirdzoc4RQWHXJ+cpEAOQDv9IO1XUzIkmLoBYFYLqP282kv/j84TbWihvejpN78Brk2+B1NPBvfqNNGO11DCtXV2Rf8k9NU= Received: by 10.90.25.3 with SMTP id 3mr3048168agy.1169226839125; Fri, 19 Jan 2007 09:13:59 -0800 (PST) Received: by 10.90.70.3 with HTTP; Fri, 19 Jan 2007 09:13:59 -0800 (PST) Message-ID: Date: Fri, 19 Jan 2007 12:13:59 -0500 From: "Jeff MacDonald" To: "FreeBSD Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: php5-session port seems borked X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2007 17:14:00 -0000 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