From owner-freebsd-questions Tue Aug 13 20:29:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61FF337B400 for ; Tue, 13 Aug 2002 20:29:12 -0700 (PDT) Received: from sm12.texas.rr.com (sm12.texas.rr.com [24.93.35.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id D464D43E6A for ; Tue, 13 Aug 2002 20:29:11 -0700 (PDT) (envelope-from foxbsd@gristle.to) Received: from oct.gristle.to (cs242759-195.austin.rr.com [24.27.59.195]) by sm12.texas.rr.com (8.12.1/8.12.0.Beta16) with ESMTP id g7E3PxmF001134 for ; Tue, 13 Aug 2002 22:25:59 -0500 Message-Id: <5.0.2.1.0.20020813221615.026fb0f0@pop-server.austin.rr.com> X-Sender: (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Tue, 13 Aug 2002 22:28:11 -0500 To: freebsd-questions@FreeBSD.ORG From: Fox Subject: apache 2.0 and mod_php4 and headless server Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Greetings, I just recently tries to build the mod_php4 port with WITH_APACHE2 defined. It almost worked until it tried to compile sapi_apache.c It then complained about ap_register_output_filter() and ap_register_input_filter(), at line 534, having too few parameters. I grep'd through the apache source and discovered that the php code was missing the third parameter. I also learned that it was usually NULL. So I changed: ap_register_output_filter("PHP", php_output_filter, AP_FTYPE_RESOURCE); ap_register_input_filter("PHP", php_input_filter, AP_FTYPE_RESOURCE); to ap_register_output_filter("PHP", php_output_filter, NULL, AP_FTYPE_RESOURCE); ap_register_input_filter("PHP", php_input_filter, NULL, AP_FTYPE_RESOURCE); in /usr/ports/www/mod_php4/work/php-4.2.2/sapi/apache2filter/sapi_apache.c then it completed compiling and installed successfully (as far as I can tell). My question is, where can I find the declaration of this function, and will setting that parameter to NULL actually work, or just cause me a crash later down the road. And thanks to Ryan, Chris and Martin who answered my headless server question, that information was very helpful. Sincerely, Dudley Fox To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message