| Summary: | net-fs/samba fails with 2.6 linux headers | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | SpanKY <vapier> |
| Component: | [OLD] Core system | Assignee: | x86-kernel (DEPRECATED) <x86-kernel> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
emerge info? what samba version? just forget my comment ;) |
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)