Received: by taz.hyperreal.com (8.8.4/V2.0) id IAA06552; Mon, 3 Feb 1997 08:14:01 -0800 (PST) Received: from sierra.zyzzyva.com by taz.hyperreal.com (8.8.4/V2.0) with ESMTP id IAA06537; Mon, 3 Feb 1997 08:13:56 -0800 (PST) Received: from sierra (localhost [127.0.0.1]) by sierra.zyzzyva.com (8.8.4/8.8.2) with ESMTP id KAA09901 for ; Mon, 3 Feb 1997 10:13:14 -0600 (CST) Message-Id: <199702031613.KAA09901@sierra.zyzzyva.com> To: new-httpd@hyperreal.com Subject: Re: [BUG] (!) mod_rewrite.c DOES NOT compile! In-reply-to: coar's message of Mon, 03 Feb 1997 08:16:59 -0500. <97020308165941@decus.org> X-uri: http://www.zyzzyva.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 03 Feb 1997 10:13:14 -0600 From: Randy Terbush Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com I saw no warnings with -Wall on FreeBSD. > I just tried to compile from the latest repository snapshot, and > mod_rewrite.c 3.0.0 gets errors. (One of them is *still* the _const > maco business.) > > This is with "OSF1 Lucy.DECUS.Org V3.2 47 alpha", builtin cc (i.e., > not gcc). > > Did the repository get tarred up while the commit was in progress? > Am I the only one seeing this? I've seen a couple of +1s go by on > this.. With mod_rewrite out of the configuration, everything else > compiles all right (I'm trying with everything except mod_log_agent, > mod_log_referer, mod_auth_db, mod_auth_dbm, mod_auth_msql, mod_dld, > and the proxy). > > Hmm.. did a new mod_rewrite.h not get committed along with the .c > file? > > #ken :-(} > > cc -c -O2 -DOSF1 -DSTATUS mod_rewrite.c > /usr/lib/cmplrs/cc/cfe: Warning: ./mod_rewrite.h:109: Macro _const redefined. > /usr/lib/cmplrs/cc/cfe: Error: mod_rewrite.c, line 632: > 'forced_responsecode' undefined, reoccurrences will not be reported > new->forced_responsecode = 302; > -------^ > /usr/lib/cmplrs/cc/cfe: Error: mod_rewrite.c, line 632: member of > structure or union required > new->forced_responsecode = 302; > ---------^ > /usr/lib/cmplrs/cc/cfe: Error: mod_rewrite.c, line 633: 'env' undefined, > reoccurrences will not be reported > new->env[0] = 0L; > -------^ > /usr/lib/cmplrs/cc/cfe: Error: mod_rewrite.c, line 633: member of > structure or union required > new->env[0] = 0L; > ---------^ > /usr/lib/cmplrs/cc/cfe: Error: mod_rewrite.c, line 720: > 'forced_responsecode' undefined, reoccurrences will not be reported > cfg->forced_responsecode = status; > ---------------^ > /usr/lib/cmplrs/cc/cfe: Error: mod_rewrite.c, line 720: member of > structure or union required > cfg->forced_responsecode = status; > -----------------^ > /usr/lib/cmplrs/cc/cfe: Error: mod_rewrite.c, line 741: 'env' undefined, > reoccurrences will not be reported > for (i = 0; (cfg->env[i] != 0L) && (i < MAX_ENV_FLAGS); i++) > ------------------------^ > /usr/lib/cmplrs/cc/cfe: Error: mod_rewrite.c, line 741: member of > structure or union required > for (i = 0; (cfg->env[i] != 0L) && (i < MAX_ENV_FLAGS); i++) > --------------------------^ > /usr/lib/cmplrs/cc/cfe: Error: mod_rewrite.c, line 743: 'MAX_ENV_FLAGS' > undefined, reoccurrences will not be reported > if (i < MAX_ENV_FLAGS) { > ----------------^ > /usr/lib/cmplrs/cc/cfe: Error: mod_rewrite.c, line 744: member of > structure or union required > cfg->env[i] = pstrdup(p, val); > -----------------^ > /usr/lib/cmplrs/cc/cfe: Error: mod_rewrite.c, line 745: member of > structure or union required > cfg->env[i+1] = 0L; > -----------------^ > /usr/lib/cmplrs/cc/cfe: Error: mod_rewrite.c, line 772: 'RULEFLAG_GONE' > undefined, reoccurrences will not be reported > cfg->flags |= RULEFLAG_GONE; > ----------------------^ > *** Exit 1 > Stop.