[ENBD] Compiling under AMD64 fails

Dr. Volker Jaenisch volker.jaenisch at inqbus.de
Tue Sep 18 16:04:51 MDT 2007


Hello Peter!

I stuck at similar errors as Lothar compiling
the 2.4.33 version of endb under debian etch with
kernel 2.6.18 (and also 2.6.22).

Any hint is welcome!

Best Regards,

Volker

charyptis:~/enbd/enbd-2.4.33# uname -a
Linux charyptis 2.6.18-5-xen-amd64 #1 SMP Thu Aug 30 02:48:14 UTC 2007 
x86_64 GNU/Linux
charyptis:~/enbd/enbd-2.4.33# make
mkdir -p /tmp
cp nbd/configure /tmp/configure && chmod +x /tmp/configure
make config
make[1]: Entering directory `/root/enbd/enbd-2.4.33'
export CONFIG_SITE=/root/enbd/enbd-2.4.33/nbd/conf/config.Linux; \
        cd /tmp;  ./configure --srcdir=/root/enbd/enbd-2.4.33/nbd  \
                                  --with-kernel-srcdir=/usr; \

loading site script /root/enbd/enbd-2.4.33/nbd/conf/config.Linux
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 -Winline -O2 -I/usr/include ) 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 -Winline -O2 -I/usr/include ) 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... 8
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... 8
checking size of long long int... 8
checking for llseek... yes
checking for lseek64... yes
checking for if_nameindex... yes
checking for bdflush... no
checking for mlockall... yes
checking for daemon... yes
checking for strsep... yes
checking for strtok_r... yes
checking for mkdtemp... yes
checking for mkstemp... yes
checking for tmpfile... yes
checking for timeradd... no
checking for atomic_t... no
checking for atomic_set... no
checking for atomic_dec_and_test... no
checking for atomic_inc... no
checking for strgsub in -lpub... no
checking for hosts_access in -lwrap... no
checking for clock_getres in -lrt... yes
checking for clock_gettime... yes
checking for CLOCK_MONOTONIC for clock_gettime... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for size_t... yes
checking for sys/socket.h... yes
checking for net/if.h... yes
checking for socklen_t... yes
checking for linux/compiler.h... no
checking for sys/kdaemon.h... yes
checking for asm/types.h... yes
checking for LOG_PERROR as syslog option... yes
checking whether client should be built... yes
checking where your init scripts are kept ($initdir)... /etc/init.d
checking where system pidfiles and state files go ($localstatedir)... 
below /var
checking where enbd pidfiles go ($piddir)... ${localstatedir}/run
checking where enbd state files go ($statedir)... 
${localstatedir}/state/enbd
checking where helper scripts go ($libexecdir)... ${exec_prefix}/sbin
checking where system configuration files go ($sysconfdir)... below /etc
checking where enbd configuration files go ($confdir)... ${sysconfdir}
checking where system man pages go ($mandir)... below /usr/share/man
checking where misc system documents go ($docdir)... below /usr/share/doc
checking where daemons go ($sbindir)... ${exec_prefix}/sbin
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
make[1]: Leaving directory `/root/enbd/enbd-2.4.33'
make -C /tmp VPATH=/root/enbd/enbd-2.4.33/nbd \
                            CFLAGS="-D_LARGEFILE64_SOURCE=1 
-D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE=1 
-D_FILE_OFFSET_BITS=64 -Wall -Winline -O2 \
                                  -I/tmp \
                                  
-I/root/enbd/enbd-2.4.33/kernel/linux-2.6.x/include \
                                  -I/usr/include \
                                    -D__SMP__ -DCONFIG_X86_LOCAL_APIC \
                                  -DDEBUG=0" \
                            EXTRA_LIBS=" \
                                         "
make[1]: Entering directory `/tmp'
gcc -DCONFDIR="\"/etc\"" -DPIDDIR="\"/var/run\"" 
-DSTATEDIR="\"/var/state/enbd\"" -D_LARGEFILE64_SOURCE=1 
-D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE=1 
-D_FILE_OFFSET_BITS=64 -Wall -Winline 
-O2                                   
-I/tmp                                   
-I/root/enbd/enbd-2.4.33/kernel/linux-2.6.x/include                                   
-I/usr/include                                     -D__SMP__ 
-DCONFIG_X86_LOCAL_APIC                                   -DDEBUG=0 -o 
enbd-server.o -c /root/enbd/enbd-2.4.33/nbd/enbd-server.c
/root/enbd/enbd-2.4.33/nbd/enbd-server.c: In function 'do_srv_write':
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1349: warning: format '%#Lx' 
expects type 'long long unsigned int', but argument 7 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1349: warning: format '%Ld' 
expects type 'long long int', but argument 8 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1349: warning: format '%#Lx' 
expects type 'long long unsigned int', but argument 7 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1349: warning: format '%Ld' 
expects type 'long long int', but argument 8 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1358: warning: format '%#Lx' 
expects type 'long long unsigned int', but argument 7 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1358: warning: format '%Ld' 
expects type 'long long int', but argument 8 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1358: warning: format '%#Lx' 
expects type 'long long unsigned int', but argument 7 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1358: warning: format '%Ld' 
expects type 'long long int', but argument 8 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1449: warning: format '%Lx' 
expects type 'long long unsigned int', but argument 6 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1449: warning: format '%Lx' 
expects type 'long long unsigned int', but argument 7 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1449: warning: format '%Lx' 
expects type 'long long unsigned int', but argument 6 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1449: warning: format '%Lx' 
expects type 'long long unsigned int', but argument 7 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1525: warning: format '%#Lx' 
expects type 'long long unsigned int', but argument 6 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1525: warning: format '%Ld' 
expects type 'long long int', but argument 7 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1525: warning: format '%#Lx' 
expects type 'long long unsigned int', but argument 6 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1525: warning: format '%Ld' 
expects type 'long long int', but argument 7 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1536: warning: format '%Ld' 
expects type 'long long int', but argument 6 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1536: warning: format '%Ld' 
expects type 'long long int', but argument 7 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1536: warning: format '%Ld' 
expects type 'long long int', but argument 6 has type '__u64'
/root/enbd/enbd-2.4.33/nbd/enbd-server.c:1536: warning: format '%Ld' 
expects type 'long long int', but argument 7 has type '__u64'
gcc -DCONFDIR="\"/etc\"" -DPIDDIR="\"/var/run\"" 
-DSTATEDIR="\"/var/state/enbd\"" -D_LARGEFILE64_SOURCE=1 
-D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE=1 
-D_FILE_OFFSET_BITS=64 -Wall -Winline 
-O2                                   
-I/tmp                                   
-I/root/enbd/enbd-2.4.33/kernel/linux-2.6.x/include                                   
-I/usr/include                                     -D__SMP__ 
-DCONFIG_X86_LOCAL_APIC                                   -DDEBUG=0 -o 
socket.o -c /root/enbd/enbd-2.4.33/nbd/socket.c
gcc -DCONFDIR="\"/etc\"" -DPIDDIR="\"/var/run\"" 
-DSTATEDIR="\"/var/state/enbd\"" -D_LARGEFILE64_SOURCE=1 
-D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE=1 
-D_FILE_OFFSET_BITS=64 -Wall -Winline 
-O2                                   
-I/tmp                                   
-I/root/enbd/enbd-2.4.33/kernel/linux-2.6.x/include                                   
-I/usr/include                                     -D__SMP__ 
-DCONFIG_X86_LOCAL_APIC                                   -DDEBUG=0 -o 
logging.o -c /root/enbd/enbd-2.4.33/nbd/logging.c
gcc -DCONFDIR="\"/etc\"" -DPIDDIR="\"/var/run\"" 
-DSTATEDIR="\"/var/state/enbd\"" -D_LARGEFILE64_SOURCE=1 
-D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE=1 
-D_FILE_OFFSET_BITS=64 -Wall -Winline 
-O2                                   
-I/tmp                                   
-I/root/enbd/enbd-2.4.33/kernel/linux-2.6.x/include                                   
-I/usr/include                                     -D__SMP__ 
-DCONFIG_X86_LOCAL_APIC                                   -DDEBUG=0 -o 
alarm.o -c /root/enbd/enbd-2.4.33/nbd/alarm.c
gcc -DCONFDIR="\"/etc\"" -DPIDDIR="\"/var/run\"" 
-DSTATEDIR="\"/var/state/enbd\"" -D_LARGEFILE64_SOURCE=1 
-D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE=1 
-D_FILE_OFFSET_BITS=64 -Wall -Winline 
-O2                                   
-I/tmp                                   
-I/root/enbd/enbd-2.4.33/kernel/linux-2.6.x/include                                   
-I/usr/include                                     -D__SMP__ 
-DCONFIG_X86_LOCAL_APIC                                   -DDEBUG=0 -o 
file.o -c /root/enbd/enbd-2.4.33/nbd/file.c
gcc -DCONFDIR="\"/etc\"" -DPIDDIR="\"/var/run\"" 
-DSTATEDIR="\"/var/state/enbd\"" -D_LARGEFILE64_SOURCE=1 
-D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE=1 
-D_FILE_OFFSET_BITS=64 -Wall -Winline 
-O2                                   
-I/tmp                                   
-I/root/enbd/enbd-2.4.33/kernel/linux-2.6.x/include                                   
-I/usr/include                                     -D__SMP__ 
-DCONFIG_X86_LOCAL_APIC                                   -DDEBUG=0 -o 
select.o -c /root/enbd/enbd-2.4.33/nbd/select.c
gcc -DCONFDIR="\"/etc\"" -DPIDDIR="\"/var/run\"" 
-DSTATEDIR="\"/var/state/enbd\"" -D_LARGEFILE64_SOURCE=1 
-D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE=1 
-D_FILE_OFFSET_BITS=64 -Wall -Winline 
-O2                                   
-I/tmp                                   
-I/root/enbd/enbd-2.4.33/kernel/linux-2.6.x/include                                   
-I/usr/include                                     -D__SMP__ 
-DCONFIG_X86_LOCAL_APIC                                   -DDEBUG=0 -o 
fileserver.o -c /root/enbd/enbd-2.4.33/nbd/fileserver.c
gcc -DCONFDIR="\"/etc\"" -DPIDDIR="\"/var/run\"" 
-DSTATEDIR="\"/var/state/enbd\"" -D_LARGEFILE64_SOURCE=1 
-D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE=1 
-D_FILE_OFFSET_BITS=64 -Wall -Winline 
-O2                                   
-I/tmp                                   
-I/root/enbd/enbd-2.4.33/kernel/linux-2.6.x/include                                   
-I/usr/include                                     -D__SMP__ 
-DCONFIG_X86_LOCAL_APIC                                   -DDEBUG=0 -o 
db.o -c /root/enbd/enbd-2.4.33/nbd/db.c
gcc -DCONFDIR="\"/etc\"" -DPIDDIR="\"/var/run\"" 
-DSTATEDIR="\"/var/state/enbd\"" -D_LARGEFILE64_SOURCE=1 
-D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE=1 
-D_FILE_OFFSET_BITS=64 -Wall -Winline 
-O2                                   
-I/tmp                                   
-I/root/enbd/enbd-2.4.33/kernel/linux-2.6.x/include                                   
-I/usr/include                                     -D__SMP__ 
-DCONFIG_X86_LOCAL_APIC                                   -DDEBUG=0 -o 
stream.o -c /root/enbd/enbd-2.4.33/nbd/stream.c
gcc -DCONFDIR="\"/etc\"" -DPIDDIR="\"/var/run\"" 
-DSTATEDIR="\"/var/state/enbd\"" -D_LARGEFILE64_SOURCE=1 
-D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE=1 
-D_FILE_OFFSET_BITS=64 -Wall -Winline 
-O2                                   
-I/tmp                                   
-I/root/enbd/enbd-2.4.33/kernel/linux-2.6.x/include                                   
-I/usr/include                                     -D__SMP__ 
-DCONFIG_X86_LOCAL_APIC                                   -DDEBUG=0 -o 
ioctl.o -c /root/enbd/enbd-2.4.33/nbd/ioctl.c
In file included from /usr/include/asm/types.h:5,
                 from /usr/include/asm-x86_64/byteorder.h:4,
                 from /usr/include/asm/byteorder.h:5,
                 from /usr/include/linux/cdrom.h:14,
                 from /root/enbd/enbd-2.4.33/nbd/ioctl.c:67:
/usr/include/asm-x86_64/types.h:22: error: conflicting types for '__s64'
/root/enbd/enbd-2.4.33/kernel/linux-2.6.x/include/linux/enbd.h:20: 
error: previous declaration of '__s64' was here
/usr/include/asm-x86_64/types.h:23: error: conflicting types for '__u64'
/root/enbd/enbd-2.4.33/kernel/linux-2.6.x/include/linux/enbd.h:24: 
error: previous declaration of '__u64' was here
make[1]: *** [ioctl.o] Error 1
make[1]: Leaving directory `/tmp'
make: *** [utils] Error 2





-- 
====================================================
   inqbus it-consulting      +49 ( 341 )  5643800
   Dr.  Volker Jaenisch      http://www.inqbus.de
   Herloßsohnstr.    12      0 4 1 5 5    Leipzig
   N  O  T -  F Ä L L E      +49 ( 170 )  3113748
====================================================



More information about the ENBD mailing list