From owner-freebsd-questions@FreeBSD.ORG Tue Oct 19 23:15:20 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A62F916A4CE for ; Tue, 19 Oct 2004 23:15:20 +0000 (GMT) Received: from smtp100.rog.mail.re2.yahoo.com (smtp100.rog.mail.re2.yahoo.com [206.190.36.78]) by mx1.FreeBSD.org (Postfix) with SMTP id 2229443D1D for ; Tue, 19 Oct 2004 23:15:20 +0000 (GMT) (envelope-from Mike.Jeays@rogers.com) Received: from unknown (HELO ?192.168.2.100?) (mjeays2551@24.114.152.2 with plain) by smtp100.rog.mail.re2.yahoo.com with SMTP; 19 Oct 2004 23:15:17 -0000 From: Mike Jeays To: Giorgos Keramidas In-Reply-To: <20041019123151.GA842@orion.daedalusnetworks.priv> References: <1098141941.1086.19.camel@chaucer> <1098185164.1086.544.camel@chaucer> <20041019123151.GA842@orion.daedalusnetworks.priv> Content-Type: text/plain Organization: Message-Id: <1098227715.1086.551.camel@chaucer> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 19 Oct 2004 19:15:15 -0400 Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Xmkmf/make problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2004 23:15:20 -0000 On Tue, 2004-10-19 at 08:31, Giorgos Keramidas wrote: > On 2004-10-19 07:26, Mike Jeays wrote: > > On Mon, 2004-10-18 at 19:39, Giorgos Keramidas wrote: > > > On 2004-10-18 19:25, Mike Jeays wrote: > > > > I have several Xlib programs that compiled successfully on earlier > > > > versions of FreeBSD (4.1 and before), using xmkmf and make. With 5.1, I > > > > get an error message: > > > > > > > > "make: don't know how to make /usr/include/machine/ansi.h. Stop" > > > > > > > > It looks as though this header file, and several others, have been moved > > > > to other directories. > > > > > > > > Is there a simple fix to a configuration file somewhere, or is the > > > > problem fixed in 5.3-BETA? > > > > > > AFAIK, the best option is to fix the broken programs. Depending on what > > > it is exactly that these programs needed to pull in from ansi.h you can > > > use one or more of: > > > > > > #include > > > #include > > > #include > > > > > > To give a more definitive reply, we'd have to look at the source or at > > > least at the error messages you get by removing (or simply commenting > > > out) the inclusion of the ansi.h header. > > > > The header files in one of these programs are as follows: > > > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > > > I added the last two after your suggestion; they don't make any > > difference. I don't have any clue why this long-standing program, which > > was developed on Solaris and ported to Linux and FreeBSD, has suddenly > > started to give me problems. The Imakefile is as follows, and gives no > > clue about what might be missing. > > > > SYS_LIBRARIES= -lXmu -lXaw -lXt -lX11 -lm -lXi > > SRCS = lst.c > > OBJS = lst.o > > > > ComplexProgramTarget (lst) > > Can I see a minimal program that exhibits the problem? By only looking > at the included headers I can't know what's wrong with the source. > > - Giorgos > You can see the source of one of these programs at http://members.rogers.com/mike.jeays/lst.c It is not minimal, but it is all in one file, and it does compile correctly under FreeBSD 4.1 on another machine, simply by issuing xmkmf against the Imake file above, followed by "make". If this is too complex for you to bother with, please let me know, and I will make a minimal version. I very much appreciate your offer of help - thanks.