Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jun 2002 23:46:55 -0400
From:      Mike Barcroft <mike@freebsd.org>
To:        "Chris A. Mattingly" <camattin@camattin.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: awk woes
Message-ID:  <20020621234655.C85066@espresso.q9media.com>
In-Reply-To: <20020621223834.E67152-100000@crazytrain.camattin.com>; from camattin@camattin.com on Fri, Jun 21, 2002 at 10:53:29PM -0400
References:  <20020621223834.E67152-100000@crazytrain.camattin.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Chris A. Mattingly <camattin@camattin.com> 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
<string.h> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020621234655.C85066>