BUG in Linux 2.6.16/2.6.16.1 (compilation failure of third party software)
- From: Thierry Godefroy <thgodef@xxxxxxxxx>
- Date: Tue, 28 Mar 2006 20:29:05 +0200
Paragon_NTFS_3.x.v5.1 fails to compile (with gcc v3.4.3) with the following
errors:
gcc -DMODULE -fshort-wchar -DUFSD_NTFS=1 -DUFSD_NTFS_SECURITY -DUFSD_NTFS_OBJECTID -DUFSD_NTFS_WRITE_ENABLE -DNDEBUG -DUFSD_DEVICE=ufsd -DUFSD_READONLY=0 -DKBUILD_BASENAME=_ufsdvfs_ -include fs_conf.h -pipe -Wall -fno-exceptions -Wno-multichar -Wstrict-prototypes -Wno-unknown-pragmas -mpreferred-stack-boundary=2 -march=k8 -I /usr/src/linux/include/asm/mach-default -g0 -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -c -I /usr/src/linux/include -I "/include" -I/include ufsdvfs.c -o objfre/vfs/ufsdvfs.o
In file included from /usr/src/linux/include/linux/rwsem.h:27,
from /usr/src/linux/include/asm/semaphore.h:42,
from /usr/src/linux/include/linux/sched.h:20,
from /usr/src/linux/include/linux/module.h:10,
from ufsdvfs.c:30:
/usr/src/linux/include/asm/rwsem.h: In function `__down_read':
/usr/src/linux/include/asm/rwsem.h:105: error: syntax error before "_ufsdvfs_"
/usr/src/linux/include/asm/rwsem.h: In function `__down_write':
/usr/src/linux/include/asm/rwsem.h:157: error: syntax error before "_ufsdvfs_"
/usr/src/linux/include/asm/rwsem.h: In function `__up_read':
/usr/src/linux/include/asm/rwsem.h:194: error: syntax error before "_ufsdvfs_"
/usr/src/linux/include/asm/rwsem.h:188: warning: unused variable `tmp'
/usr/src/linux/include/asm/rwsem.h: In function `__up_write':
/usr/src/linux/include/asm/rwsem.h:220: error: syntax error before "_ufsdvfs_"
/usr/src/linux/include/asm/rwsem.h: In function `__downgrade_write':
/usr/src/linux/include/asm/rwsem.h:245: error: syntax error before "_ufsdvfs_"
In file included from /usr/src/linux/include/linux/sched.h:20,
from /usr/src/linux/include/linux/module.h:10,
from ufsdvfs.c:30:
/usr/src/linux/include/asm/semaphore.h: In function `down':
/usr/src/linux/include/asm/semaphore.h:105: error: syntax error before "_ufsdvfs_"
/usr/src/linux/include/asm/semaphore.h: In function `down_interruptible':
/usr/src/linux/include/asm/semaphore.h:130: error: syntax error before "_ufsdvfs_"
/usr/src/linux/include/asm/semaphore.h: In function `down_trylock':
/usr/src/linux/include/asm/semaphore.h:155: error: syntax error before "_ufsdvfs_"
/usr/src/linux/include/asm/semaphore.h: In function `up':
/usr/src/linux/include/asm/semaphore.h:179: error: syntax error before "_ufsdvfs_"
ufsdvfs.c: In function `ufsd_readdir':
ufsdvfs.c:864: warning: implicit declaration of function `update_atime'
ufsdvfs.c: At top level:
ufsdvfs.c:2219: warning: initialization from incompatible pointer type
make: *** [objfre/vfs/ufsdvfs.o] Erreur 1
------
I tracked down the problem to a patch of include/linux/spinlock.h which was
introduced somewhere in 2.6.16:
diff -urN linux-2.6.15/include/linux/spinlock.h linux-2.6.16.1/include/linux/spinlock.h
gives:
--- linux-2.6.15/include/linux/spinlock.h 2006-03-28 19:52:29.000000000 +0200
+++ linux-2.6.16.1/include/linux/spinlock.h 2006-03-24 19:55:28.000000000 +0100
@@ -59,8 +59,7 @@
/*
* Must define these before including other files, inline functions need them
*/
-#define LOCK_SECTION_NAME \
- ".text.lock." __stringify(KBUILD_BASENAME)
+#define LOCK_SECTION_NAME ".text.lock."KBUILD_BASENAME
#define LOCK_SECTION_START(extra) \
".subsection 1\n\t" \
Reverting this patch fixes the compilation problem.
Thierry Godefroy.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Prev by Date: Re: Possible breakage in 2.6.16?
- Next by Date: Re: [patch 1/1] pc-speaker: add SND_SILENT
- Previous by thread: [2.6.15] New ATA error messages on upgrade to 2.6.15
- Next by thread: Re: BUG in Linux 2.6.16/2.6.16.1 (compilation failure of third party software)
- Index(es):
Relevant Pages
- Re: Recording computer screen
... installation. ... why won't it compile. ... xtoffmpeg.c:168: warning:
assignment from incompatible pointer type ... You are about to enter another dimension,
... (alt.os.linux.suse) - Compilling things in 2.6.9 and 2.6.10 kernels in FC3
... I tried to compile my modem drivers and I get a lot of depreciated ...
I also get this when compiling my ATi drivers ... arg 1 of `block_all_signals' from incompatible
pointer type ... (Fedora) - Re: [PATCH] Add sysfs support for the IPMI device interface
... I get the following compile problem with this change in linus' git repo.... ...
'class_simple_device_add' from incompatible pointer type ... >> static void
ipmi_smi_gone ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - make buildworld for RELENG_5 failing on RELENG_5_3 in /usr/src/usr.sbin/syslogd, _PATH_LOG_PRIV not
... I'm getting the following error on a RELENG_5_3 box when trying to compile the ...
I've been cvsupping now for about a week and continuing to ... the same error appears in
libc and the patch fixes that as well. ... problem, so clearly this isn't the correct
solution, but it works for me. ... (freebsd-stable) - Re: [Patch] es7000 broken without acpi
... which the following patch fixes. ... >> to enforce that within Kconfig.
... > platform problems). ... attempt to make the kernel compile with
all possible configs, ... (Linux-Kernel)