From owner-freebsd-current Fri Jun 21 21:10:18 2002 Delivered-To: freebsd-current@freebsd.org Received: from crazytrain.camattin.com (dsl-64-192-134-253.telocity.com [64.192.134.253]) by hub.freebsd.org (Postfix) with ESMTP id A7C9237B408; Fri, 21 Jun 2002 21:10:01 -0700 (PDT) Received: from crazytrain.camattin.com (localhost [127.0.0.1]) by crazytrain.camattin.com (8.12.4/8.12.4) with ESMTP id g5M4A0NM029108; Sat, 22 Jun 2002 00:10:00 -0400 (EDT) (envelope-from camattin@camattin.com) Received: from localhost (camattin@localhost) by crazytrain.camattin.com (8.12.4/8.12.4/Submit) with ESMTP id g5M49tuN029105; Sat, 22 Jun 2002 00:09:55 -0400 (EDT) X-Authentication-Warning: crazytrain.camattin.com: camattin owned process doing -bs Date: Sat, 22 Jun 2002 00:09:55 -0400 (EDT) From: "Chris A. Mattingly" To: Mike Barcroft Cc: freebsd-current@freebsd.org Subject: Re: awk woes In-Reply-To: <20020621234655.C85066@espresso.q9media.com> Message-ID: <20020621235107.E24172-100000@crazytrain.camattin.com> X-Message-Flag: You really should not be able to see this message. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Fri, 21 Jun 2002, Mike Barcroft wrote: > 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. Will do (after the current build finishes ... see below). > > 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? It did boil down to not being included. And in another file, didn't get included. And in another, didn't get included. > > No other OS's seem to complain about this, so why is freebsd? > > Perhaps compiler diagnostics aren't enabled on those systems. Solaris was just being more cooperative. I thought the issue with the missing include files might have been related to the awk failures and therefore configure not outputting the right stuff. But after the right incantination of configure, it managed to finally build, install, and function properly. -Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message