From owner-freebsd-ports Wed May 17 0: 2:52 2000 Delivered-To: freebsd-ports@freebsd.org Received: from master.telia.net (master.telia.net [194.237.170.70]) by hub.freebsd.org (Postfix) with ESMTP id 1DD0637B54A for ; Wed, 17 May 2000 00:02:45 -0700 (PDT) (envelope-from khaled@w-arts.com) Received: from localhost (elite@localhost) by master.telia.net (8.9.3/8.9.1) with ESMTP id JAA29404 for ; Wed, 17 May 2000 09:02:42 +0200 (CEST) (envelope-from khaled@w-arts.com) X-Authentication-Warning: master.telia.net: elite owned process doing -bs Date: Wed, 17 May 2000 09:02:42 +0200 (CEST) From: Khaled Daham X-Sender: elite@master.telia.net To: freebsd-ports@freebsd.org Subject: Apache13-php4 port Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello! compiling apache+php4 with the snmp module gives the following error snmp.c: In function `php_if_snmp_set_quick_print': snmp.c:366: syntax error before `int' snmp.c:367: `set_val' undeclared (first use in this function) snmp.c:367: (Each undeclared identifier is reported only once snmp.c:367: for each function it appears in.) This is what I do to correct the problem .. ( The problem is more a PHP problem than a freebsd/ports problem , this error occur on Solaris aswell ) --- work/php/ext/snmp/snmp.c Sun Mar 26 17:43:24 2000 +++ b Wed May 17 09:43:30 2000 @@ -358,12 +358,13 @@ /* {{{ proto void snmp_set_quick_print(int quick_print) Return all objects including their respective object id withing the specified one */ PHP_FUNCTION(snmp_set_quick_print) { + int set_val; zval **a1; if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &a1) == FAILURE) { WRONG_PARAM_COUNT; } convert_to_long_ex(a1); - int set_val = (*a1)->value.lval; + set_val = (*a1)->value.lval; snmp_set_quick_print(set_val); } /* }}} */ /Khaled Daham, w.arts Mail: khaled@w-arts.com Cell: +46-70-6785492 Cell: +966-54491462 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message