From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id OAA00757 for ; Mon, 12 Aug 1996 14:23:37 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id AAA00269; Mon, 12 Aug 1996 00:10:59 -0400 (EDT) Resent-Date: Mon, 12 Aug 1996 00:10:59 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199608120404.GAA10280@hzoli.ppp.cs.elte.hu> Subject: Re: DEC Unix 3.2d / 3.0pre6 To: Rob.Hooft@EMBL-Heidelberg.de Date: Mon, 12 Aug 1996 06:04:09 +0200 (MET DST) Cc: zsh-workers@math.gatech.edu In-Reply-To: <199608051712.TAA26583@nu> from "Rob.Hooft@EMBL-Heidelberg.de" at "Aug 5, 96 07:12:55 pm" X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"s-iU_1.0.84.Ixg3o"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1940 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > On DEC Unix 4.0: > > gcc -c -I.. -I. -I. -DHAVE_CONFIG_H -Wall -Wno-implicit -Wmissing-prototypes -O2 -DDEBUG builtin.c > In file included from zsh.h:1362, > from builtin.c:32: > prototypes.h:106: conflicting types for `ioctl' > /nu1/hooft/lib/gcc-lib/alpha-dec-osf4.0/2.7.2.f.1/include/sys/ioctl.h:72: previous declaration of `ioctl' > > So it seems under DU4.0 even gcc doesn't need the ioctl prototype in > prototypes.h. Removing the section at lines 104--110 in prototypes.h > creates a working binary. I'm not sure how to detect this situation, > so I'm in no position to generate a patch. Unfortunately I do not have access to DEC Unix 4.x so I cannot write such a test without some help. The simplest solution would be a test for some predefined macro so that these prototypes are only defined for older DEC Unix versions. The list of predefined macros can be determined using /path-to-gcc-lib/cpp -dM /dev/null > P.S.: is the "-DDEBUG" supposed to be there by default? Yes, because pre6 is still not the final production release (although it is close to it). In zsh-3.0 I'll remove -DDEBUG which will produce a slightly smaller and faster executable. Zoltan