[165] in arla-drinkers

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

compiler error

daemon@ATHENA.MIT.EDU (wwshen@eecs.umich.edu)
Mon Jul 27 12:05:47 1998

From arla-drinkers-request@sundance.stacken.kth.se Mon Jul 27 16:05:46 1998
Return-Path: <arla-drinkers-request@sundance.stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 19643 invoked from network); 27 Jul 1998 16:05:46 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
  by bloom-picayune.mit.edu with SMTP; 27 Jul 1998 16:05:46 -0000
Received: from soso.eecs.umich.edu (soso.eecs.umich.edu [141.212.99.9])
	by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id RAA24312
	for <arla-drinkers@stacken.kth.se>; Mon, 27 Jul 1998 17:57:57 +0200 (MET DST)
From: wwshen@eecs.umich.edu
Received:  from  localhost by soso.eecs.umich.edu (8.9.1/8.9.0) with SMTP id LAA25486
	for <arla-drinkers@stacken.kth.se>; Mon, 27 Jul 1998 11:57:46 -0400 (EDT)
Date: Mon, 27 Jul 1998 11:57:46 -0400 (EDT)
To: arla-drinkers@stacken.kth.se
Subject: compiler error
Message-ID: <Pine.GSO.3.96.980727115012.25223B-100000@soso.eecs.umich.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

    When I recompiled the xfs file, I got the following error,

gcc -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
-DDEBUG -DDIAGNOSTIC  -DKERNEL -D_KERNEL -DLKM -D_LKM
-DACTUALLY_LKM_NOT_KERNEL -g  -Wall -Wno-unused xfs_dev.c
In file included from xfs_dev.c:42:
xfs_msg_locl.h:48: two or more data types in declaration of
`xfs_message_installroot'
xfs_dev.c: In function `xfs_message_receive':
xfs_dev.c:487: incompatible types in return
*** Error code 1

  But the data structure for installroot in xfs_msg_locl.h
is as follows:

int
xfs_message_installroot(int fd,
                        struct xfs_message_installroot * message,
                        u_int size,
                        struct proc *p);

   When I move this statement into my xfs_dev.c and comment it
out in xfs_msg_locl.h, I got the same error for xfs_message_install
attr. After I remove all the declaratoins into the xfs_dev.c, I
got the same error for <xfs_dev.h>. Could anyone tell me how I can
fix this problem? I appreciate for your help very much.
wuwei


-------------------------------------------------------------------------
| Wuwei Shen                                  |  University of Michigan |
| URL: http://www.engin.umich.edu/~wwshen     |  Dept. of EECS          |
| Office: 3334 EECS BLDG.                     |  Tel: 763-5243          |
-------------------------------------------------------------------------



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