Article View: uk.comp.os.linux
Article #427Re: MOSIX - Problems compiling utilities
From: Tim Haynes
Date: Thu, 11 May 2000 00:00
Date: Thu, 11 May 2000 00:00
39 lines
2748 bytes
2748 bytes
root@haniel.demon.co.uk (Hubertus A. Haniel) writes: > Error compiling mon: > cc -I/m/include -I/usr/include -O -c mon.c -o mon.o > mon.c: In function `main': > mon.c:215: `sig_t' undeclared (first use this function) [snip lots of the same] > make: *** [mon.o] Error 1 > > Error compiling tune: > cc -I/usr/include -O -c tune.c -o tune.o > tune.c:171: macro `howmany' used with just one arg > tune.c:354: macro `howmany' used with just one arg > tune.c:355: macro `howmany' used with just one arg > tune.c:1067: macro `howmany' used with just one arg > make: *** [tune.o] Error 1 > > Has anybody got any solutions on how to fix this? It's a wee while since I last did any Mosix stuff - but I do remember that the code was horrendous to look at, much less debug (`man indent` is your friend!!) - so I can't remember a specific fix for the above. What you need to do is dig around in the /usr/include directory for something that defines sig_t (like, to pick a COMPLETELY RANDOM example, signal.h ;-) and make sure that the mon.c file is #including that at the start. You'll have to do something a bit more imaginative with the tune.c thing - like dig out the '#define howmany' bit, see what the two or more arguments are it expects, and see if you can either fix the definition or the calls to it on lines 171, 354, etc. ~Tim -- | Geek Code: GCS dpu s-:+ a-- C++++ UBLUAVHSC++++ P+++ L++ E--- W+++(--) N++ | w--- O- M-- V-- PS PGP++ t--- X+(-) b D+ G e++(*) h++(*) r--- y- | The sun is melting over the hills, | http://piglet.is.dreaming.org/ | All our roads are waiting / To be revealed | piglet@glutinous.custard.org
Technical Details
Message-ID:
<87ya5gu767.fsf@straw.pigsty.org.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<c34ff8.sr9.ln@haniel.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fac57,65266e22a9da99f5
X-Google-Attributes: gidfac57,public
X-Google-Thread: 10d8ad,65266e22a9da99f5
X-Google-Attributes: gid10d8ad,public
From: piglet@glutinous.custard.org (Tim Haynes)
Subject: Re: MOSIX - Problems compiling utilities
Date: 2000/05/11
Message-ID: <87ya5gu767.fsf@straw.pigsty.org.uk>
X-Deja-AN: 622281477
References: <c34ff8.sr9.ln@haniel.demon.co.uk>
X-Original-NNTP-Posting-Host: rhubarb.custard.org
X-Complaints-To: abuse@insnet.net
X-Trace: starburst.uk.insnet.net 958079451 16311 193.243.233.4 (11 May 2000 21:10:51 GMT)
X-Face: #VSW`$W9VSODCMa|VI.*1#90p<]FLnir4eWO`ghu'4b:gu68ck)`W<%[7ICq;z:)zfCNK{" _EUd/*pI~zb6cF-Gwd|).]EDMyx9!"_a)oyL6+<+F5u!N8%fBkn'}Ahx84(qUmtPr[/~:<8X+ZA%fU }n\aBfWy/pD04j0e6,%[yB(ZUE0Sd\9D<SNb!*QRRB#wZBiz(83OQUt}$J5H4~m)_QTUXTBDKa/
Organization: What's Organization?
X-Caffeine: Penguin mints!
Reply-To: "Tim Haynes" <piglet@glutinous.custard.org>
NNTP-Posting-Date: 11 May 2000 21:10:51 GMT
Newsgroups: uk.comp.os.linux,demon.tech.unix