[868] in arla-drinkers

home help back first fref pref prev next nref lref last post

Re: arla on NeXTSTEP3.3/Intel

daemon@ATHENA.MIT.EDU (Helmut Heller)
Tue Jun 8 09:05:16 1999

From owner-arla-drinkers@stacken.kth.se Tue Jun 08 13:05:15 1999
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 1896 invoked from network); 8 Jun 1999 13:05:13 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
  by bloom-picayune.mit.edu with SMTP; 8 Jun 1999 13:05:14 -0000
Received: (from majordom@localhost)
	by sundance.stacken.kth.se (8.8.8/8.8.8) id OAA12242
	for arla-drinkers-list; Tue, 8 Jun 1999 14:58:22 +0200 (MET DST)
Received: from mailrelay2.lrz-muenchen.de (mailrelay2.lrz-muenchen.de [129.187.254.102])
	by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id OAA12235;
	Tue, 8 Jun 1999 14:58:13 +0200 (MET DST)
Received: from next.lrz-muenchen.de by mailrelay2.lrz-muenchen.de; Tue, 8 Jun 1999 14:58:10 +0200
Received: by next.lrz-muenchen.de (NX5.67e/NX3.0S)
	id AA15222; Tue, 8 Jun 99 14:58:07 +0200
Message-Id: <9906081258.AA15222@next.lrz-muenchen.de>
Mime-Version: 1.0 (NeXT Mail 3.3 v118.2)
Content-Type: text/enriched; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Image-Url: http://www.lrz.de/~heller/hheller.tiff
X-Face: #K8+M!=vK|\bQ[&P:z)d$Q:i(@36P1!7if~nI%OB\9I>;p5Vs<_YkU;].K(chZJ,k8X96t
	]!d?;H/|Jc:Hr-hhbBow![@FkT0xNOVXK|TO%Jg@Xz<z|uVs,@UjxkuWF"W&fK[SUZI'xL
	zS+rYcYYg\vFh_r^d!.;O!-cOu0Cd
In-Reply-To: <5lk8u9ww0m.fsf@assaris.sics.se>
X-Nextstep-Mailer: Mail 3.3 (Enhance 2.2p1)
Received: by NeXT.Mailer (1.118.2)
From: Helmut Heller <Helmut.Heller@lrz-muenchen.de>
Date: Tue,  8 Jun 1999 14:58:04 +0200
To: assar@stacken.kth.se
Subject: Re: arla on NeXTSTEP3.3/Intel
Cc: Helmut.Heller@lrz-muenchen.de, arla-drinkers@stacken.kth.se, lxs@mit.edu
Reply-To: Helmut.Heller@lrz-muenchen.de
References: <9904160954.AA01752@next.lrz-muenchen.de>  
	<5lyaiyd42p.fsf@assaris.sics.se> 
	<9905110852.AA17019@next.lrz-muenchen.de> 
	<5ln1zbrd2k.fsf@assaris.sics.se>
	<9905111535.AA27499@next.lrz-muenchen.de>
	<5lk8u9ww0m.fsf@assaris.sics.se>
X-Reply-Format: NeXT Mail preferred
X-Url: http://www.lrz.de/~heller
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk

Hello,


it has been a long time, but I was very bus. I am still working on porting =
ARLA to NeXTSTEP.

Here some answers:


You wrote:

> > mode_t is only available in bsd mode:

>=20

> Would it work just typedefining them to `unsigned short' and `short'

> if they don't exist?  Or does that part of the code need to be built

> in bsd-mode?


YES, that should be sufficient.


> That looks like it tells you have to write loadable modules, which is

> the first step.

>=20

OK, I am trying!

But right now I am stumped (I build on the rhapsod stuff):


return malloc(size, M_TEMP, M_WAITOK); /* What kind? */


gives:


xfs_common.c: In function `xfs_alloc':

xfs_common.c:63: `M_TEMP' undeclared (first use this function)

xfs_common.c:63: (Each undeclared identifier is reported only once

xfs_common.c:63: for each function it appears in.)

xfs_common.c:63: `M_WAITOK' undeclared (first use this function)

xfs_common.c:63: too many arguments to function `malloc'

xfs_common.c: In function `xfs_free':

xfs_common.c:76: `M_TEMP' undeclared (first use this function)

xfs_common.c:76: too many arguments to function `free'

gmake: *** [xfs_common.o] Error 1


The syntax for my malloc() is different. Besides malloc() I also have =
kalloc() to allocate=20
<bigger>wired-down kernel memory
</bigger>. But do I need this here?? What are M_TEMP and M_WAITOK?

Ok, for now I use malloc(size)/free(*ptr).



Next problem:

cc -c  -DHAVE_CONFIG_H -I. -I. -I/usr/src/sys/arch -I/usr/src/sys =
-I../../include -I./../../include -I./../include -I/usr/athena/include =
-DDIAGNOSTIC -DUSE_SELECT -DKERNEL -D_KERNEL -DMACH_USER_API =
-DKERNEL_SERVER_INSTANCE=3Dxfs_instance -D_POSIX_SOURCE -DINET -DMACH =
-DPOSIX_KERN -g  -Wall -fno-common -Wno-format -pipe -finline =
-fno-keep-inline-functions -force_cpusubtype_ALL -msoft-float -static =
xfs_dev.c

In file included from ./xfs/xfs_fs.h:47,

                 from xfs_dev.c:44:

./xfs/xfs_node.h:61: field `attr' has incomplete type

In file included from xfs_dev.c:44:

./xfs/xfs_fs.h:93: warning: `struct componentname' declared inside =
parameter list

./xfs/xfs_fs.h:93: warning: its scope is only this definition or =
declaration,

./xfs/xfs_fs.h:93: warning: which is probably not what you want.

xfs_dev.c: In function `xfs_devclose':

xfs_dev.c:150: warning: implicit declaration of function `panic'

xfs_dev.c:170: warning: implicit declaration of function `wakeup'

xfs_dev.c:188: warning: implicit declaration of function `vfs_busy'

xfs_dev.c:192: `FORCECLOSE' undeclared (first use this function)

xfs_dev.c:192: (Each undeclared identifier is reported only once

xfs_dev.c:192: for each function it appears in.)

xfs_dev.c:194: warning: implicit declaration of function `vfs_unbusy'

xfs_dev.c: In function `xfs_devread':

xfs_dev.c:233: warning: implicit declaration of function `uiomove'

xfs_dev.c: In function `xfs_devwrite':

xfs_dev.c:282: structure has no member named `uio_procp'

xfs_dev.c: In function `xfs_message_send':

xfs_dev.c:382: warning: implicit declaration of function `bcopy'

xfs_dev.c:392: structure has no member named `p_wchan'

xfs_dev.c:393: storage size of `selinfo' isn't known

xfs_dev.c:402: warning: implicit declaration of function `selwakeup'

xfs_dev.c:403: warning: implicit declaration of function `selthreadclear'

xfs_dev.c:393: warning: unused variable `selinfo'

xfs_dev.c: In function `xfs_message_rpc':

xfs_dev.c:428: warning: implicit declaration of function `printf'

xfs_dev.c:449: structure has no member named `p_wchan'

xfs_dev.c:450: storage size of `selinfo' isn't known

xfs_dev.c:450: warning: unused variable `selinfo'

xfs_dev.c:466: warning: implicit declaration of function `tsleep'

xfs_dev.c: In function `xfs_uprintf_device':

xfs_dev.c:612: warning: implicit declaration of function `uprintf'

xfs_dev.c: At top level:

xfs_dev.c:80: warning: `xfs_initq' defined but not used

xfs_dev.c:142: warning: `xfs_devclose' defined but not used

xfs_dev.c:207: warning: `xfs_devread' defined but not used

xfs_dev.c:256: warning: `xfs_devwrite' defined but not used

xfs_dev.c:298: warning: `xfs_devioctl' defined but not used

xfs_dev.c:344: warning: `xfs_devselect' defined but not used

xfs_dev.c:608: warning: `xfs_uprintf_device' defined but not used

gmake: *** [xfs_dev.o] Error 1


Here I stumbled. Who can help?? Please???



---

Servus, Helmut  (DH0MAD)   =20
______________NeXT-mail welcome_________________

FAX: +49-89-280-9460        "
Knowledge must be gathered and cannot be given
"

heller@lrz.de                                      =20
ZEN, one of BLAKES7

Phone: +49-89-289-28823    =20
------------------------------------------------

Dr. Helmut Heller                                   =20

Leibniz-Rechenzentrum (LRZ)                        =20

High Performance Computing Group

Barer Str. 21, Zi S2515, 80333 Munich, GERMANY    =20


home help back first fref pref prev next nref lref last post