🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: uk.comp.os.linux
4 messages
4 total messages Started by Hubertus A. Haniel Thu, 11 May 2000 00:00
MOSIX - Problems compiling utilities
#426
Author: Hubertus A. Haniel
Date: Thu, 11 May 2000 00:00
50 lines
2614 bytes
Hi,
I am wondering if somebody can help me out here.
I am running Slackware 3.1 but over the years upgraded 
to the required levels to run the 2.2.x kernels. 
Recently I have added Mosix and it seems to be working
on a three node cluster. The only troubles I have is compiling
two utilities, tune and mon.

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)
mon.c:215: (Each undeclared identifier is reported only once
mon.c:215: for each function it appears in.)
mon.c:215: parse error before `onint'
mon.c:216: parse error before `onint'
mon.c: In function `ch_alarm':
mon.c:826: `sig_t' undeclared (first use this function)
mon.c:826: parse error before `ch_alarm'
mon.c: In function `readc_half_second':
mon.c:849: `sig_t' undeclared (first use this function)
mon.c:849: parse error before `ch_alarm'
mon.c: At top level:
mon.c:1027: parse error before `onio'
mon.c: In function `onio':
mon.c:1029: `sig_t' undeclared (first use this function)
mon.c:1029: parse error before `onio'
mon.c: In function `sleep_or_input':
mon.c:1039: `sig_t' undeclared (first use this function)
mon.c:1039: parse error before `onio'
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?

TIA
Hubba
-- 
------------------------------------------------------------------------
  Hubertus Alexander Haniel      ,,,     http://www.haniel.demon.co.uk
      Shorne, Kent, UK          (o o)           ICQ UIN: 1470384
---------------------------oOOo--(_)--oOOo------------------------------
Re: MOSIX - Problems compiling utilities
#427
Author: Tim Haynes
Date: Thu, 11 May 2000 00:00
39 lines
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
Re: MOSIX - Problems compiling utilities
#428
Author: Mike Craik
Date: Fri, 12 May 2000 00:00
19 lines
1409 bytes
"Hubertus A. Haniel" wrote:
> 
> Hi,
> I am wondering if somebody can help me out here.
> I am running Slackware 3.1 but over the years upgraded
> to the required levels to run the 2.2.x kernels.
> Recently I have added Mosix and it seems to be working
> on a three node cluster. The only troubles I have is compiling
> two utilities, tune and mon.
>
> Has anybody got any solutions on how to fix this?

Did you link /usr/src/linux/include/mos to /usr/include/mos ?

Mike.
-- 
Conway's Law:
In every organization there will always be one person who knows what is
going on.
Re: MOSIX - Problems compiling utilities
#429
Author: Hubertus A. Haniel
Date: Fri, 12 May 2000 00:00
19 lines
1538 bytes
In demon.tech.unix Mike Craik <micraik@penguinpowered.com> wrote:
: "Hubertus A. Haniel" wrote:
:> 
:> Hi,
:> I am wondering if somebody can help me out here.
:> I am running Slackware 3.1 but over the years upgraded
:> to the required levels to run the 2.2.x kernels.
:> Recently I have added Mosix and it seems to be working
:> on a three node cluster. The only troubles I have is compiling
:> two utilities, tune and mon.
:>
:> Has anybody got any solutions on how to fix this?

: Did you link /usr/src/linux/include/mos to /usr/include/mos ?

Yes I did that, have to have another dig around include but I am not
really much of a C programmer - it is been a while since I have done that.

Hubba
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads