zfs-linux / zfs

Native ZFS for Linux
http://wiki.github.com/behlendorf/zfs/
Other
56 stars 2 forks source link

SPL FTBFS on Debian lenny 64-bit: error: conflicting types for 'specvp' #110

Open ptecza opened 13 years ago

ptecza commented 13 years ago

Hi,

Unfortunately I can't also build your SPL on Debian lenny 64-bit chroot with Linux kernel 2.6.26-2-amd64:

(lenny-amd64)ptecza@kopa:~/git/linux-zfs$ uname -a
Linux kopa 2.6.26-2-amd64 \#1 SMP Tue Jan 12 22:12:20 UTC 2010 x86_64 GNU/Linux 
(lenny-amd64)ptecza@kopa:~/git/linux-zfs$ git clone https://github.com/zfs-linux/spl.git
(lenny-amd64)ptecza@kopa:~/git/linux-zfs$ cd spl/
(lenny-amd64)ptecza@kopa:~/git/linux-zfs/spl$ LANG=C dpkg-buildpackage -uc -us -rfakeroot
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: 
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package spl
dpkg-buildpackage: source version 0.5-2
dpkg-buildpackage: source changed by kqinfo <zfs@kqinfotech.com>
dpkg-buildpackage: host architecture amd64
 fakeroot debian/rules clean
dh  clean
   dh_testdir
   dh_auto_clean
   dh_clean
 dpkg-source -b spl
dpkg-source: info: using source format `1.0'
dpkg-source: warning: source directory 'spl' is not <sourcepackage>-<upstreamversion> 'spl-0.5'
dpkg-source: info: building spl in spl_0.5-2.tar.gz
dpkg-source: info: building spl in spl_0.5-2.dsc
 debian/rules build
dh  build
   dh_testdir
   dh_auto_configure
checking metadata... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking spl license... GPL
checking whether rpm is available... no
checking whether rpmbuild is available... no
checking whether dpkg is available... yes (1.14.31)
checking whether dpkg-buildpackage is available... yes (1.14.31.)
checking whether alien is available... no
checking linux distribution... debian
checking default package type... deb
checking spl config... all
checking kernel source directory... /usr/src/linux-headers-2.6.26-2-amd64
checking kernel build directory... /usr/src/linux-headers-2.6.26-2-amd64
checking kernel source version... 2.6.26-2-amd64
checking kernel file name for module symbols... Module.symvers
checking whether debugging is enabled... no
checking whether basic kmem accounting is enabled... yes
checking whether detailed kmem tracking is enabled... no
checking whether atomic types use spinlocks... no
checking whether kernel defines atomic64_t... yes
checking whether kernel defines atomic64_cmpxchg... yes
checking whether kernel defines atomic64_xchg... yes
checking whether kernel defines uintptr_t... yes
checking whether INIT_WORK wants 3 args... no
checking whether register_sysctl_table() wants 2 args... no
checking whether set_shrinker() available... no
checking whether shrinker callback wants 3 args... no
checking whether struct path used in struct nameidata... yes
checking whether symbol task_curr is exported... no
checking whether unnumbered sysctl support exists... yes
checking whether struct ctl_table has ctl_name... yes
checking whether fls64() is available... yes
checking whether symbol device_create is exported... yes
checking whether device_create() wants 5 args... no
checking whether symbol class_device_create is exported... no
checking whether symbol set_normalized_timespec is exported... yes
checking whether set_normalized_timespec() is an inline... no
checking whether timespec_sub() is available... yes
checking whether init_utsname() is available... yes
checking whether header linux/fdtable.h exists... yes
checking whether files_fdtable() is available... yes
checking whether header linux/uaccess.h exists... yes
checking whether kmalloc_node() is available... yes
checking whether symbol monotonic_clock is exported... no
checking whether struct inode has i_mutex... yes
checking whether struct mutex has owner... no
checking whether mutex_lock_nested() is available... yes
checking whether on_each_cpu() wants 3 args... no
checking whether symbol kallsyms_lookup_name is exported... no
checking whether symbol get_vmalloc_info is exported... no
checking whether symbol *_pgdat exist... yes
checking whether symbol first_online_pgdat is exported... no
checking whether symbol next_online_pgdat is exported... no
checking whether symbol next_zone is exported... no
checking whether symbol pgdat_list is exported... no
checking whether global_page_state() is available... yes
checking whether page state NR_FREE_PAGES is available... yes
checking whether page state NR_INACTIVE is available... yes
checking whether page state NR_INACTIVE_ANON is available... no
checking whether page state NR_INACTIVE_FILE is available... no
checking whether page state NR_ACTIVE is available... yes
checking whether page state NR_ACTIVE_ANON is available... no
checking whether page state NR_ACTIVE_FILE is available... no
checking whether symbol get_zone_counts is needed... no
checking whether symbol user_path_at is exported... no
checking whether symbol set_fs_pwd is exported... no
checking whether set_fs_pwd() wants 2 args... yes
checking whether vfs_unlink() wants 2 args... yes
checking whether vfs_rename() wants 4 args... yes
checking whether struct fs_struct uses spinlock_t... no
checking whether struct cred exists... no
checking whether symbol groups_search is exported... no
checking whether symbol __put_task_struct is exported... no
checking whether proc_handler() wants 5 args... no
checking whether symbol kvasprintf is exported... yes
checking whether file_fsync() wants 3 args... yes
checking whether symbol rwsem_is_locked is exported... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating cmd/Makefile
config.status: creating module/Makefile
config.status: creating module/spl/Makefile
config.status: creating module/splat/Makefile
config.status: creating include/Makefile
config.status: creating scripts/Makefile
config.status: creating spl.spec
config.status: creating spl-modules.spec
config.status: creating spl_config.h
config.status: executing depfiles commands
config.status: executing libtool commands
   dh_auto_build
make[1]: Entering directory `/home/ptecza/git/linux-zfs/spl'
make  all-recursive
make[2]: Entering directory `/home/ptecza/git/linux-zfs/spl'
Making all in lib
make[3]: Entering directory `/home/ptecza/git/linux-zfs/spl/lib'
\
#   source='list.c' object='list.lo' libtool=yes 
/bin/sh ../libtool  --tag=CC --silent  --mode=compile gcc -DHAVE_CONFIG_H -include ../spl_config.h    -Wall -Wshadow -Wstrict-prototypes -fno-strict-aliasing -D__USE_LARGEFILE64 -DNDEBUG -g -O2 -c -o list.lo list.c
/bin/sh ../libtool  --tag=CC --silent  --mode=link gcc -Wall -Wshadow -Wstrict-prototypes -fno-strict-aliasing -D__USE_LARGEFILE64 -DNDEBUG -g -O2   -o libcommon.la  list.lo  
make[3]: Leaving directory `/home/ptecza/git/linux-zfs/spl/lib'
Making all in cmd
make[3]: Entering directory `/home/ptecza/git/linux-zfs/spl/cmd'
\
#   source='spl.c' object='spl.o' libtool=no 
gcc -DHAVE_CONFIG_H -include ../spl_config.h -I../lib    -Wall -Wshadow -Wstrict-prototypes -fno-strict-aliasing -D__USE_LARGEFILE64 -DNDEBUG -g -O2 -c spl.c
/bin/sh ../libtool  --tag=CC --silent  --mode=link gcc -Wall -Wshadow -Wstrict-prototypes -fno-strict-aliasing -D__USE_LARGEFILE64 -DNDEBUG -g -O2   -o spl spl.o  
\
#   source='splat.c' object='splat.o' libtool=no 
gcc -DHAVE_CONFIG_H -include ../spl_config.h -I../lib    -Wall -Wshadow -Wstrict-prototypes -fno-strict-aliasing -D__USE_LARGEFILE64 -DNDEBUG -g -O2 -c splat.c
/bin/sh ../libtool  --tag=CC --silent  --mode=link gcc -Wall -Wshadow -Wstrict-prototypes -fno-strict-aliasing -D__USE_LARGEFILE64 -DNDEBUG -g -O2 ../lib/libcommon.la  -o splat splat.o  
make[3]: Leaving directory `/home/ptecza/git/linux-zfs/spl/cmd'
Making all in scripts
make[3]: Entering directory `/home/ptecza/git/linux-zfs/spl/scripts'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/ptecza/git/linux-zfs/spl/scripts'
Making all in module
make[3]: Entering directory `/home/ptecza/git/linux-zfs/spl/module'
make -C /usr/src/linux-headers-2.6.26-2-amd64 SUBDIRS=`pwd`  modules
make[4]: Entering directory `/usr/src/linux-headers-2.6.26-2-amd64'
  CC [M]  /home/ptecza/git/linux-zfs/spl/module/spl/../../module/spl/spl-debug.o
  CC [M]  /home/ptecza/git/linux-zfs/spl/module/spl/../../module/spl/spl-proc.o
  CC [M]  /home/ptecza/git/linux-zfs/spl/module/spl/../../module/spl/spl-kmem.o
  CC [M]  /home/ptecza/git/linux-zfs/spl/module/spl/../../module/spl/spl-thread.o
  CC [M]  /home/ptecza/git/linux-zfs/spl/module/spl/../../module/spl/spl-taskq.o
  CC [M]  /home/ptecza/git/linux-zfs/spl/module/spl/../../module/spl/spl-rwlock.o
  CC [M]  /home/ptecza/git/linux-zfs/spl/module/spl/../../module/spl/spl-vnode.o
In file included from /home/ptecza/git/linux-zfs/spl/module/spl/../../module/spl/spl-vnode.c:27:
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:217: warning: 'struct cred' declared inside parameter list
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:217: warning: its scope is only this definition or declaration, which is probably not what you want
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:344: warning: 'struct cred' declared inside parameter list
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:349: warning: 'struct cred' declared inside parameter list
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:354: warning: 'struct cred' declared inside parameter list
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:358: warning: 'struct cred' declared inside parameter list
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:362: warning: 'struct cred' declared inside parameter list
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:365: warning: 'struct cred' declared inside parameter list
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:369: warning: 'struct cred' declared inside parameter list
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:372: warning: 'struct cred' declared inside parameter list
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:376: warning: 'struct cred' declared inside parameter list
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:379: warning: 'struct cred' declared inside parameter list
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:382: warning: 'struct cred' declared inside parameter list
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:384: warning: 'struct cred' declared inside parameter list
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:400: warning: 'struct cred' declared inside parameter list
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:403: warning: 'struct cred' declared inside parameter list
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:408: warning: 'struct cred' declared inside parameter list
/home/ptecza/git/linux-zfs/spl/module/spl/../../module/spl/spl-vnode.c:134: warning: 'struct cred' declared inside parameter list
/home/ptecza/git/linux-zfs/spl/module/spl/../../module/spl/spl-vnode.c:135: error: conflicting types for 'specvp'
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:217: error: previous declaration of 'specvp' was here
/home/ptecza/git/linux-zfs/spl/module/spl/../../module/spl/spl-vnode.c:140: error: conflicting types for 'specvp'
/home/ptecza/git/linux-zfs/spl/include/sys/vnode.h:217: error: previous declaration of 'specvp' was here
make[6]: *** [/home/ptecza/git/linux-zfs/spl/module/spl/../../module/spl/spl-vnode.o] Error 1
make[5]: *** [/home/ptecza/git/linux-zfs/spl/module/spl] Error 2
make[4]: *** [_module_/home/ptecza/git/linux-zfs/spl/module] Error 2
make[4]: Leaving directory `/usr/src/linux-headers-2.6.26-2-amd64'
make[3]: *** [modules] Error 2
make[3]: Leaving directory `/home/ptecza/git/linux-zfs/spl/module'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ptecza/git/linux-zfs/spl'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/ptecza/git/linux-zfs/spl'
dh_auto_build: command returned error code 512
make: *** [build] Error 1
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

My best regards, Pawel

mitra commented 13 years ago

Hi,

We have seen a lot of interest on debian lenny and are working on fixing this compilation issues and qualifying the port on debian lenny.

ptecza commented 13 years ago

Hello Anand,

Thank you very much for the response! It's good to hear it. I'll keep my fingers crossed :)

Have a nice day, Pawel