xfs
[Top] [All Lists]

Re: SAMBA compile errors at XFS kernel.. (fwd)

To: Jan Kara <jack@xxxxxx>, Yu-Chan Park <super@xxxxxxxxxxxxxx>
Subject: Re: SAMBA compile errors at XFS kernel.. (fwd)
From: Nathan Scott <nathans@xxxxxxx>
Date: Wed, 8 May 2002 14:46:36 +1000
Cc: linux-xfs@xxxxxxxxxxx, samba@xxxxxxxxxxxxxxx
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
hi Jan,

I've attached Yu-Chan's quota.h -- does this look familiar to
you?  It is clearly not the quota.h from the XFS CVS as I had
originally thought.  It may be the one from the XFS 1.1 CDs,
which is a Redhat-based, XFS-enabled distro, so would have an
earlier version of your VFS quota patches (via -ac kernel).

Either way, it doesn't really matter.  We need to fix Samba,
and a local header for those folks similar to the ones in the
quota tools, I guess, seems like the best option to me too.
The configure script and quota.c could then be tidied up a bit
here too - long time since I looked at that code though.

cheers.

-- 
Nathan


----- Forwarded message from Yu-Chan  Park <super@xxxxxxxxxxxxxx> -----

Date: Wed, 8 May 2002 13:20:04 +0900
To: "Nathan Scott" <nathans@xxxxxxx>
X-Mailer: Microsoft Outlook Express 5.50.4807.1700
From: "Yu-Chan  Park" <super@xxxxxxxxxxxxxx>
Subject: Re: SAMBA compile errors at XFS kernel..

Thanks your help 

I attach my quota.h file

regards..

Yu-Chan Park 


----- Original Message ----- 
From: "Nathan Scott" <nathans@xxxxxxx>
To: "Yu-Chan Park" <super@xxxxxxxxxxxxxx>
Sent: Wednesday, May 08, 2002 7:55 AM
Subject: Re: SAMBA compile errors at XFS kernel..


> hi Yu-Chan,
> 
> Can you send me a copy of your /usr/include/linux/quota.h
> file please?  We're just trying to understand where it came
> from originally and whats causing these errors exactly.
> 
> thanks.
> 
> 
> On Wed, May 08, 2002 at 12:40:55AM +0200, Jan Kara wrote:
> >   Hello,
> > 
> >   Umm.. I can understand complaints of compiler about __kernel_uid32_t
> > in the definition of qid_t. But I can't understand those problem with
> > __kernel_time_t. I can't see it anywhere in the quota.h - even time_t
> > is in #ifdef __KERNEL__. Anyway creating userspace version of header
> > is probably the right way out of problems... I'll try to create some
> > userspace header file...
> > 
> > Honza
> > 
> > > Some more people are hitting this problem with the new VFS
> > > quota patches which we have in XFS CVS.  Any idea on how we
> > > should go about fixing this?  Maybe we should fix Samba so
> > > as to not include kernel headers (as we do in the quota user
> > > tools already), creating a local header for them instead
> > > with only the structures/macros they need?
> > > 
> > > thanks.
> > > 
> > > 
> > > On Tue, May 07, 2002 at 11:15:45AM +0900, Yu-Chan  Park wrote:
> > > > Hello xfs..
> > > > 
> > > > I have compiled samba 2.2.4(new release version) with gcc 2.95 or gcc 
> > > > 2.96 version based 
> > > > RedHat 7.2 and kernel 2.4.18 version which patched xfs(release 1.0)
> > > > 
> > > > But during compiling samba occure compile errors at quota 
> > > > 
> > > > If using kernel not patched xfs samba is compiled as well.
> > > > 
> > > > How can i escape hell :) ?
> > > > 
> > > > Thanks..
> > > > 
> > > > The errors are....
> > > > 
> > > > Compiling smbd/quotas.c
> > > > smbd/quotas.c:66: warning: `LINUX_QUOTAS_2' redefined
> > > > include/config.h:238: warning: this is the location of the previous 
> > > > definition
> > > > In file included from smbd/quotas.c:45:
> > > > /usr/include/asm/types.h:18: warning: redefinition of `__u32'
> > > > /usr/include/sys/capability.h:32: warning: `__u32' previously declared 
> > > > here
> > > > In file included from smbd/quotas.c:57:
> > > > /usr/include/linux/quota.h:45: parse error before `qid_t'
> > > > /usr/include/linux/quota.h:45: warning: data definition has no type or 
> > > > storage class
> > > > /usr/include/linux/quota.h:137: parse error before `__kernel_time_t'
> > > > /usr/include/linux/quota.h:137: warning: no semicolon at end of struct 
> > > > or union
> > > > /usr/include/linux/quota.h:138: warning: data definition has no type or 
> > > > storage class
> > > > /usr/include/linux/quota.h:274: parse error before `qid_t'
> > > > smbd/quotas.c: In function `get_smb_linux_vfs_quota':
> > > > smbd/quotas.c:115: storage size of `D' isn't known
> > > > make: *** [smbd/quotas.o] Error 1
> > > > 
> > > > 
> > > 
> > > -- 
> > > Nathan
> 
> -- 
> Nathan


----- End forwarded message -----

Attachment: quota.h
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>
  • Re: SAMBA compile errors at XFS kernel.. (fwd), Nathan Scott <=