From owner-freebsd-current Fri Jun 21 20:49:45 2002 Delivered-To: freebsd-current@freebsd.org Received: from espresso.q9media.com (espresso.q9media.com [216.254.138.122]) by hub.freebsd.org (Postfix) with ESMTP id A72BD37B405 for ; Fri, 21 Jun 2002 20:49:38 -0700 (PDT) Received: (from mike@localhost) by espresso.q9media.com (8.11.6/8.11.6) id g5M3ktr68873; Fri, 21 Jun 2002 23:46:55 -0400 (EDT) (envelope-from mike) Date: Fri, 21 Jun 2002 23:46:55 -0400 From: Mike Barcroft To: "Chris A. Mattingly" Cc: freebsd-current@freebsd.org Subject: Re: awk woes Message-ID: <20020621234655.C85066@espresso.q9media.com> References: <20020621223834.E67152-100000@crazytrain.camattin.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020621223834.E67152-100000@crazytrain.camattin.com>; from camattin@camattin.com on Fri, Jun 21, 2002 at 10:53:29PM -0400 Organization: The FreeBSD Project Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Chris A. Mattingly writes: > Problem 1: > > When running php's configure, awk core dumps several times. I've yet to > determine exactly where the core dumps are occurring, though. Four of > them occur during the configure; but the configure seems to complete OK. Enable debugging symbols in awk and get a traceback. > Problem 2: > > Compiling main/main.c I get the following errors: > main.c: In function `php_disable_functions': > main.c:157: warning: initialization makes pointer from integer without a > cast > main.c:161: warning: assignment makes pointer from integer without a cast > main.c:164: warning: assignment makes pointer from integer without a cast > > The relevant lines from main.c are: > > 154: static void php_disable_functions(TSRMLS_D) > 155: { > 156: char *func; > 157: char *new_value_dup = strdup(INI_STR("disable_functions")); > xxx: snip comments > 161: func = strtok(new_value_dup, ", "); > 162: while (func) { > 163: zend_disable_function(func, strlen(func) TSRMLS_CC); > 164: func = strtok(NULL, ", "); > 165: } > 166: } These warnings are indicative of a missing header include. Is being included? It's doubtful this is really your problem. Is there any other output from the compiler? > No other OS's seem to complain about this, so why is freebsd? Perhaps compiler diagnostics aren't enabled on those systems. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message