From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199712031511.KAA05967@linux03.amt.tay1.dec.com> Date: Wed, 3 Dec 1997 11:21:32 -0500 (EST) From: tfreeman Subject: Re: Difficulties in compiling by nonprogrammer 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