From: tfreeman <tfreeman@vnet.net>
Subject: Re: Difficulties in compiling by nonprogrammer
Date: Wed, 3 Dec 1997 11:21:32 -0500 (EST) [thread overview]
Message-ID: <f52ab4f4eab190fcb04f159e4af88bb3.axp-list@archive.invalid> (raw)
In-Reply-To: <199712020209.TAA14789@ellpspace.math.ualberta.ca>
My appologies for asking a question, then indulging the girl friend with a
14 hour shopping expedition yesterday. Not a well thought out process on
my part 8-/.
On Mon, 1 Dec 1997, Michal Jaegermann wrote:
> >
> > The first difficulty I think I finessed by getting a copy of
> > Project.tmpl which was required for the xmkmf process.
>
> Hm, Imake.tmpl should be enough and is present. Did you try
> to type 'xmkmf -a' and this failed? Where?
No I did not try 'xmkmf -a', partly because I didn't know about it. Is
this what will create the Project.tmpl file under normal circumstances?
Capturing the stderr from 'xmkmf -a' results in the following mangled msg:
In file included from Imakefile.c:8:
/usr/X11R6/lib/X11/config/Imake.tmpl:1081: Project.tmpl: No such file or directory
imake: Exit code 33.
Stop.
Evidently, Project.tmpl is not created by this command.
>
> > I lifted the file from an
> > intel copy of RH 4.2, after which xmkmf appeared to run correctly.
>
> It may be ok, but you have to be careful. It may define some
> things which make sense on Intel but not on Alpha. Blind copy
> may not bring a desired results.
>
> > Like
> > how to capture the output from the make just to locate the first errors.
>
> The best way to run such things is from within emacs. The reason is
> that if you will get any errors/warnings then C-x ` (i.e. next-error)
> will walk you through all this spots without a need for a manual search.
> A command is "M-x compile" and you can define your own key for that.
>
> Another possibility is to use 'script' command. 'man script' for
> details. You will have to hunt for errors yourself.
>
> Last, but not least, you can redirect an ouutput to a file or a pipe but
> you need to capture both stderr and stdout. As you still likely want
> to see what is going on you should use 'tee', so things are getting a
> bit involved. That is a reason for the first two suggestions.
>
> How to redirect is described in docs for a shell you happen to use.
> 'make 2>&1 >capture' or 'make 2>&1 | less' will work with Bourne
> derived shells (like bash).
Ok, shortly I'll attempt that. If I can capture the correct stuff, I can
trim & post at least 8-) (Assuming nobody objects)
>
> Depending how sources are writte these may be, unfortunately,
> the smallest of your worries.
>
> Michal
>
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next prev parent reply other threads:[~1997-12-03 16:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.SUN.3.95.971201190247.5180A-100000@katie.vnet.net>
1997-12-02 2:09 ` Difficulties in compiling by nonprogrammer Michal Jaegermann
1997-12-03 16:21 ` tfreeman [this message]
[not found] <Pine.SUN.3.95.971203110656.27811B-100000@katie.vnet.net>
1997-12-03 17:13 ` Michal Jaegermann
1997-12-02 0:06 tfreeman
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox