[PVFS-users] RE: Error in compiling pvfs-kernel with gcc-3.4.X

E. Otto ekw at data.lbl.gov
Wed Jul 21 11:33:56 EDT 2004


Hi,
In an attempt to recompile pvfs-kernel with gcc-3.4.X, I got a bunch of 
conflicting type error from "krwsemaphore-spinlock.c" and the prototype
definitions in rwsemaphore.h. Did any one encounter this before and
is there a quick fix? The sample errors are shown below: The error
occurs for all functions enclosed in the FASTCALL() macro.
...
...
krwsemaphore-spinlock.c:46: error: conflicting types for 'init_pvfs_rwsem'
rwsemaphore.h:47: error: previous declaration of 'init_pvfs_rwsem' was here
krwsemaphore-spinlock.c:46: error: conflicting types for 'init_pvfs_rwsem'
rwsemaphore.h:47: error: previous declaration of 'init_pvfs_rwsem' was here
krwsemaphore-spinlock.c:118: error: conflicting types for '__Down_read'
rwsemaphore.h:48: error: previous declaration of '__Down_read' was here
krwsemaphore-spinlock.c:118: error: conflicting types for '__Down_read'
rwsemaphore.h:48: error: previous declaration of '__Down_read' was here
krwsemaphore-spinlock.c:161: error: conflicting types for 
'__Down_read_trylock'
rwsemaphore.h:49: error: previous declaration of '__Down_read_trylock' 
was here
krwsemaphore-spinlock.c:161: error: conflicting types for 
'__Down_read_trylock'
rwsemaphore.h:49: error: previous declaration of '__Down_read_trylock' 
was here
krwsemaphore-spinlock.c:179: error: conflicting types for 
'__Down_read_interruptible'
rwsemaphore.h:50: error: previous declaration of 
'__Down_read_interruptible' was here
krwsemaphore-spinlock.c:179: error: conflicting types for 
'__Down_read_interruptible'
rwsemaphore.h:50: error: previous declaration of 
'__Down_read_interruptible' was here
krwsemaphore-spinlock.c:239: error: conflicting types for 
'__Down_timed_read_interruptible'
rwsemaphore.h:51: error: previous declaration of 
'__Down_timed_read_interruptible' was here
krwsemaphore-spinlock.c:239: error: conflicting types for 
'__Down_timed_read_interruptible'
rwsemaphore.h:51: error: previous declaration of 
'__Down_timed_read_interruptible' was here
krwsemaphore-spinlock.c:316: error: conflicting types for '__Down_write'
rwsemaphore.h:52: error: previous declaration of '__Down_write' was here


More information about the PVFS-users mailing list