Skip site navigation (1)Skip section navigation (2)
Date:      15 Nov 2004 19:22:31 -0500
From:      Mike Jeays <Mike.Jeays@rogers.com>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Xmkmf/make problem
Message-ID:  <1100564551.8499.3.camel@chaucer.jeays.ca>
In-Reply-To: <20041113174159.GB80208@gothmog.gr>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 2004-11-13 at 12:41, Giorgos Keramidas wrote:
> On 2004-11-13 08:49, Mike Jeays <Mike.Jeays@rogers.com> wrote:
> > On Tue, 2004-10-19 at 20:22, Giorgos Keramidas wrote:
> > > On 2004-10-19 19:15, Mike Jeays <Mike.Jeays@rogers.com> wrote:
> > > > On Tue, 2004-10-19 at 08:31, Giorgos Keramidas wrote:
> > > > > On 2004-10-19 07:26, Mike Jeays <Mike.Jeays@rogers.com> 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)?
> 

Success, finally.  I read up a little more on xmkmf, and tried the
commands:

xmkmf -a
make

and it compiled successfully.  So I am not sure why it went wrong
before, but the problem is now solved.

Thanks again for your time and help, Giorgos.



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