[886] 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 (Assar Weterlund)
Sat Jun 19 17:27:39 1999

From owner-arla-drinkers@stacken.kth.se Sat Jun 19 21:27:38 1999
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 14082 invoked from network); 19 Jun 1999 21:27:37 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
  by bloom-picayune.mit.edu with SMTP; 19 Jun 1999 21:27:36 -0000
Received: (from majordom@localhost)
	by sundance.stacken.kth.se (8.8.8/8.8.8) id XAA27327
	for arla-drinkers-list; Sat, 19 Jun 1999 23:21:40 +0200 (MET DST)
Received: from assaris.sics.se (assaris.sics.se [193.10.66.108])
	by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id XAA27319
	for <arla-drinkers@stacken.kth.se>; Sat, 19 Jun 1999 23:21:35 +0200 (MET DST)
Received: (from assar@localhost) by assaris.sics.se (8.9.3/8.7.3) id XAA16687; Sat, 19 Jun 1999 23:21:45 +0200 (CEST)
From: Assar Weterlund <assar@stacken.kth.se>
To: Helmut.Heller@lrz-muenchen.de
Cc: arla-drinkers@stacken.kth.se, lxs@mit.edu
Subject: Re: arla on NeXTSTEP3.3/Intel
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> <9906081258.AA15222@next.lrz-muenchen.de>
Mime-Version: 1.0 (generated by tm-edit 7.68)
Content-Type: text/plain; charset=US-ASCII
Date: 19 Jun 1999 23:21:43 +0200
In-Reply-To: Helmut Heller's message of "Tue,  8 Jun 1999 14:58:04 +0200"
Message-ID: <5lzp1vopi0.fsf@assaris.sics.se>
Lines: 87
X-Mailer: Gnus v5.5/Emacs 19.34
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk

Helmut Heller <Helmut.Heller@lrz-muenchen.de> writes:
> YES, that should be sufficient.

Ok, that should be added to configure.in

> 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 wired-down kernel memory . But do I need this
> here?? What are M_TEMP and M_WAITOK?
> Ok, for now I use malloc(size)/free(*ptr).

This is the kernel malloc and you need to look for it in your kernel
header files to figure out how it should be called.

> 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=xfs_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

It doesn't have the type for `struct vattr'.  You need to look in your
header file <sys/vnode.h> or any other to see where that type is being
defined.

> In file included from xfs_dev.c:44:
> ./xfs/xfs_fs.h:93: warning: `struct componentname' declared inside
> parameter list

same with this one.

> ./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'

It might be the case that there are no prototypes for these, or that
you need to include some other header file or that they don't exist.

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

You need to find the prototype for vflush and see what flags it likes.

> xfs_dev.c: In function `xfs_devwrite':
> xfs_dev.c:282: structure has no member named `uio_procp'

Start by looking at `struct uio' and see if it has a member of type
process.

> 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

You need to find the type for this, as well.

/assar

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