Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 May 2000 09:02:42 +0200 (CEST)
From:      Khaled Daham <khaled@w-arts.com>
To:        freebsd-ports@freebsd.org
Subject:   Apache13-php4 port
Message-ID:  <Pine.BSF.4.21.0005170842230.28811-100000@master.telia.net>

next in thread | raw e-mail | index | archive | help
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




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