Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 36387

Summary: net-fs/samba fails with 2.6 linux headers
Product: Gentoo Linux Reporter: SpanKY <vapier>
Component: [OLD] Core systemAssignee: x86-kernel (DEPRECATED) <x86-kernel>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description SpanKY gentoo-dev 2003-12-23 12:21:12 UTC
the file causing issues here is linux/quota.h ...

first off, autoconf gets a little worried:
checking linux/quota.h usability... no
checking linux/quota.h presence... yes
configure: WARNING: linux/quota.h: present but cannot be compiled
configure: WARNING: linux/quota.h:     check for missing prerequisite headers?
configure: WARNING: linux/quota.h: see the Autoconf documentation
configure: WARNING: linux/quota.h:     section "Present But Cannot Be Compiled"
configure: WARNING: linux/quota.h: proceeding with the preprocessor's result
configure: WARNING: linux/quota.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for linux/quota.h... yes

then the actual compile fails:
Compiling smbd/quotas.c
In file included from /usr/include/linux/quota.h:41,
                 from smbd/quotas.c:65:
/usr/include/linux/spinlock.h: In function `bit_spin_lock':
/usr/include/linux/spinlock.h:413: error: invalid type argument of `->'
<blah blah blah>

all we do is ifdef out the spinlock stuff in quota.h ... everything that uses
the spinlock code is ifdef'ed itself, so this shouldnt cause any breakage:
#ifdef __KERNEL__
#include <linux/spinlock.h>
extern spinlock_t dq_list_lock;
extern spinlock_t dq_data_lock;
#endif
(i moved the spinlock_t declerations up a few lines but nothing that should cause a bug)
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2003-12-23 12:30:13 UTC
emerge info?

what samba version?
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2003-12-23 12:31:06 UTC
just forget my comment ;)
Comment 3 SpanKY gentoo-dev 2003-12-23 12:44:54 UTC
ugh, guess there is a userspace fix for this ;)

*** This bug has been marked as a duplicate of 36200 ***