[ENBD] compilation problems

De Pelsemaeker Pieter enbd@lists.community.tummy.com
Wed, 12 Feb 2003 15:33:43 +0100


hello,

when I try  to compile nbd-2.4.30 I get the following errors:

[root@dwalin3 nbd-2.4.30]# rm -f /tmp/*
[root@dwalin3 nbd-2.4.30]# make config all
autoconf nbd/configure.in > /tmp/configure; chmod +x /tmp/configure
nbd/configure.in:16: warning: AC_TRY_RUN called without default to allow
cross compiling
export CONFIG_SITE=/home/pdp/nbd-2.4.30/conf/config.Linux; \
cd /tmp;  ./configure --srcdir=/home/pdp/nbd-2.4.30/nbd; \
make VPATH=/home/pdp/nbd-2.4.30/nbd
CFLAGS="-D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOP
EN_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/l
inux/include  -DDEBUG=0" EXTRA_LIBS="  " config
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler
(gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_
SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 ) works... yes
checking whether the C compiler
(gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_
SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether warnings should be enabled... yes
checking for install... /usr/bin/install
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for working const... yes
checking size of unsigned char... 1
checking size of unsigned short int... 2
checking size of unsigned int... 4
checking size of unsigned long int... 4
checking size of unsigned long long int... 8
checking size of char... 1
checking size of short int... 2
checking size of int... 4
checking size of long int... 4
checking size of long long int... 8
checking for llseek... yes
checking for lseek64... yes
checking for if_nameindex... yes
checking for bdflush... yes
checking for strgsub in -lpub... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for size_t... yes
checking for socklen_t... yes
checking whether client should be built... yes
checking where your init scripts are kept... /etc/init.d
checking where pidfiles and state files go... below /var
checking where helper scripts go... ${exec_prefix}/sbin
checking where configuration files go... /etc
checking where man pages go... ${prefix}/man
checking where misc documents go... ${prefix}/share/doc
checking where daemons go... ${exec_prefix}/sbin
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
make[1]: Entering directory `/tmp'
make[1]: Nothing to be done for `config'.
make[1]: Leaving directory `/tmp'
make -C /tmp VPATH=/home/pdp/nbd-2.4.30/nbd
CFLAGS="-D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOP
EN_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/l
inux/include -I/usr/src/linux/include  -DDEBUG=0" EXTRA_LIBS="  "
make[1]: Entering directory `/tmp'
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o enbd-server.o -c
/home/pdp/nbd-2.4.30/nbd/enbd-server.c
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o socket.o -c
/home/pdp/nbd-2.4.30/nbd/socket.c
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o logging.o -c
/home/pdp/nbd-2.4.30/nbd/logging.c
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o alarm.o -c
/home/pdp/nbd-2.4.30/nbd/alarm.c
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o file.o -c
/home/pdp/nbd-2.4.30/nbd/file.c
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o select.o -c
/home/pdp/nbd-2.4.30/nbd/select.c
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0   -c -o fileserver.o
/home/pdp/nbd-2.4.30/nbd/fileserver.c
/home/pdp/nbd-2.4.30/nbd/fileserver.c: In function `ioctlfile':
/home/pdp/nbd-2.4.30/nbd/fileserver.c:123: warning: implicit declaration of
function `memcpy'
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o db.o -c
/home/pdp/nbd-2.4.30/nbd/db.c
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o stream.o -c
/home/pdp/nbd-2.4.30/nbd/stream.c
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o ioctl.o -c
/home/pdp/nbd-2.4.30/nbd/ioctl.c
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o ipaddrfile.o -c
/home/pdp/nbd-2.4.30/nbd/ipaddrfile.c
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o pidfile.o -c
/home/pdp/nbd-2.4.30/nbd/pidfile.c
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o interface.o -c
/home/pdp/nbd-2.4.30/nbd/interface.c
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o lockfile.o -c
/home/pdp/nbd-2.4.30/nbd/lockfile.c
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o md5.o -c
/home/pdp/nbd-2.4.30/nbd/md5.c
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o lock.o -c
/home/pdp/nbd-2.4.30/nbd/lock.c
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o shmem.o -c
/home/pdp/nbd-2.4.30/nbd/shmem.c
gcc  -o enbd-server enbd-server.o socket.o logging.o alarm.o file.o select.o
fileserver.o db.o stream.o ioctl.o ipaddrfile.o pidfile.o interface.o
lockfile.o md5.o lock.o shmem.o
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o enbd-sstatd.o -c
/home/pdp/nbd-2.4.30/nbd/enbd-sstatd.c
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o config.o -c
/home/pdp/nbd-2.4.30/nbd/config.c
gcc  -o enbd-sstatd enbd-sstatd.o config.o ipaddrfile.o lockfile.o select.o
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o enbd-client.o -c
/home/pdp/nbd-2.4.30/nbd/enbd-client.c
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o netserver.o -c
/home/pdp/nbd-2.4.30/nbd/netserver.c
gcc  -o enbd-client enbd-client.o socket.o logging.o alarm.o stream.o
select.o ioctl.o netserver.o pidfile.o md5.o
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o enbd-cstatd.o -c
/home/pdp/nbd-2.4.30/nbd/enbd-cstatd.c
gcc  -o enbd-cstatd enbd-cstatd.o config.o interface.o pidfile.o select.o
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -I/tmp -I/home/pdp/nbd-2.4.30/linux
/include -I/usr/src/linux/include  -DDEBUG=0 -o enbd-test.o -c
/home/pdp/nbd-2.4.30/nbd/enbd-test.c
gcc  -o enbd-test enbd-test.o
make[1]: Leaving directory `/tmp'
for file in enbd.o enbd_ioctl.o enbd_bufferwr.o; do \
make -C /tmp -f /home/pdp/nbd-2.4.30/linux/drivers/block/Makefile
VPATH=/home/pdp/nbd-2.4.30/linux/drivers/block CONFIG_BLK_DEV_NBD=m CC="gcc"
EXTRA_CFLAGS=" -D__KERNEL__ -DMODULE -DDEBUG=0 -DCONFIG_ENBD=m -I/home/pdp/n
bd-2.4.30/linux/include -I/usr/src/linux/include" TOPDIR=/usr/src/linux
$file ; \
        done
make[1]: Entering directory `/tmp'
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -D__KERNEL__ -DMODULE -DDEBUG=0 -DC
ONFIG_ENBD=m -I/home/pdp/nbd-2.4.30/linux/include -I/usr/src/linux/include  
-c -o enbd.o /home/pdp/nbd-2.4.30/linux/drivers/block/enbd.c
/home/pdp/nbd-2.4.30/linux/drivers/block/enbd.c: In function `nbd_rollback':
/home/pdp/nbd-2.4.30/linux/drivers/block/enbd.c:1476: warning: implicit
declaration of function `list_for_each_prev'
/home/pdp/nbd-2.4.30/linux/drivers/block/enbd.c:1476: parse error before `{'
/home/pdp/nbd-2.4.30/linux/drivers/block/enbd.c:1479: break statement not
within loop or switch
/home/pdp/nbd-2.4.30/linux/drivers/block/enbd.c:1443: warning: `xreq' might
be used uninitialized in this function
/home/pdp/nbd-2.4.30/linux/drivers/block/enbd.c: At top level:
/home/pdp/nbd-2.4.30/linux/drivers/block/enbd.c:1483: parse error before `&'
/home/pdp/nbd-2.4.30/linux/drivers/block/enbd.c:1483: warning: type defaults
to `int' in declaration of `list_add_tail'
/home/pdp/nbd-2.4.30/linux/drivers/block/enbd.c:1483: conflicting types for
`list_add_tail'
/usr/src/linux/include/linux/list.h:69: previous declaration of
`list_add_tail'
/home/pdp/nbd-2.4.30/linux/drivers/block/enbd.c:1483: warning: data
definition has no type or storage class
make[1]: *** [enbd.o] Error 1
make[1]: Leaving directory `/tmp'
make[1]: Entering directory `/tmp'
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -D__KERNEL__ -DMODULE -DDEBUG=0 -DC
ONFIG_ENBD=m -I/home/pdp/nbd-2.4.30/linux/include -I/usr/src/linux/include  
-c -o enbd_ioctl.o /home/pdp/nbd-2.4.30/linux/drivers/block/enbd_ioctl.c
make[1]: Leaving directory `/tmp'
make[1]: Entering directory `/tmp'
gcc -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_S
OURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -O2 -D__KERNEL__ -DMODULE -DDEBUG=0 -DC
ONFIG_ENBD=m -I/home/pdp/nbd-2.4.30/linux/include -I/usr/src/linux/include  
-c -o enbd_bufferwr.o /home/pdp/nbd-2.4.30/linux/drivers/block/enbd_bufc
make[1]: Leaving directory `/tmp'


Does anybody know what the problem is?
Thanks