From owner-freebsd-questions@FreeBSD.ORG Sun Nov 14 01:17:01 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 2419316A4CE for ; Sun, 14 Nov 2004 01:17:01 +0000 (GMT) Received: from smtp103.rog.mail.re2.yahoo.com (smtp103.rog.mail.re2.yahoo.com [206.190.36.81]) by mx1.FreeBSD.org (Postfix) with SMTP id A5D2643D2D for ; Sun, 14 Nov 2004 01:17:00 +0000 (GMT) (envelope-from Mike.Jeays@rogers.com) Received: from unknown (HELO ?192.168.2.100?) (mjeays2551@24.114.152.139 with plain) by smtp103.rog.mail.re2.yahoo.com with SMTP; 14 Nov 2004 01:16:59 -0000 From: Mike Jeays To: Giorgos Keramidas In-Reply-To: <1100393585.3012.13.camel@chaucer.jeays.ca> References: <1098141941.1086.19.camel@chaucer> <1098185164.1086.544.camel@chaucer> <20041019123151.GA842@orion.daedalusnetworks.priv> <20041020002242.GA1306@gothmog.gr> <1100353790.3012.4.camel@chaucer.jeays.ca> <20041113174159.GB80208@gothmog.gr> <1100393585.3012.13.camel@chaucer.jeays.ca> Content-Type: text/plain Organization: Message-Id: <1100395018.3012.16.camel@chaucer.jeays.ca> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 13 Nov 2004 20:16:58 -0500 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: Sun, 14 Nov 2004 01:17:01 -0000 On Sat, 2004-11-13 at 19:53, Mike Jeays wrote: > On Sat, 2004-11-13 at 12:41, Giorgos Keramidas wrote: > > On 2004-11-13 08:49, Mike Jeays wrote: > > > On Tue, 2004-10-19 at 20:22, Giorgos Keramidas wrote: > > > > On 2004-10-19 19:15, Mike Jeays wrote: > > > > > On Tue, 2004-10-19 at 08:31, Giorgos Keramidas wrote: > > > > > > On 2004-10-19 07:26, Mike Jeays wrote: > > > > > > > [...] 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. > > > > > > > > > > You can see the source of one of these programs at > > > > > http://members.rogers.com/mike.jeays/lst.c > > > > > > > > Without actually reading the entire source, I tried building this with > > > > an Imakefile that contains exactly the text you sent in your previous > > > > post. It builds fine here, even if I set my CFLAGS to a set of > > > > relatively strict warnings before invoking xmkmf and/or make: > > > > > > > > CFLAGS='-O -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual \ > > > > -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs \ > > > > -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes \ > > > > -Wwrite-strings' > > > > > > > > Are you getting compile-time errors? > > > > If yes, what are they? > > > > Does your environment contain any CFLAGS or CC variables? > > > > > > Sorry for the long delay in replying. Since October 19th, I installed > > > 5.3 on another machine, and tried again. I get exactly the same error > > > from "make". It responds immediately with > > > "make: don't know how to make /usr/include/machine/ansi.h. Stop" > > > > Hmmm, there is no /usr/include/machine/ansi.h header in FreeBSD. Have > > you been trying to run xmkmf on one system and then use the generated > > makefiles on a different system (i.e. generate the Makefiles on Linux > > but build on Solaris or BSD)? > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > No - I reinstalled a "vanilla" 5.3, and deleted the old Makefile and > object file. It seems that xmkmf operating on the Imakefile that I > showed above produces an invalid Makefile, with references to ansi.h and > others. > > You can see the Makefile it produces at > http://members.rogers.com/Makefile. > > Once again, thanks for taking so much trouble. I have a nasty suspicion > it will turn out to be a silly "oops" on my part. > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" Correction http://members.rogers.com/mike.jeays/Makefile