[Oracleasm-support-users] Unable to compile oracleasm on Suse 11.2

patrick BLOIS blois.patrick at free.fr
Sat Feb 20 09:58:15 PST 2010


HI

I try to compile oracleasm on Linux Suse 11.2

I first install the package git to download oracleasm with the command 
« git clone git://oss.oracle.com/git/oracleasm.git oracleasm2 ».  

I run the script autogen.sh to create the configure script.

See below the configure output :

______________________________________________________________________________

checking build system type... x86_64-unknown-linux-gnu                                
checking host system type... x86_64-unknown-linux-gnu                                 
checking for gcc... gcc                                                               
checking for C compiler default output file name... a.out                             
checking whether the C compiler works... yes                                          
checking whether we are cross compiling... no                                         
checking for suffix of executables...                                                 
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 how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... 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 size of unsigned long... 8
checking for vendor... sles11
checking for vendor kernel... /usr/src/linux-2.6.31.12-0.1-obj/x86_64/default
checking for directory with kernel build tree... /usr/src/linux-2.6.31.12-0.1-obj/x86_64/default
checking for kernel version... 2.6.31.12-0.1-default
checking for kernel version... none
checking for directory with kernel sources... /usr/src/linux-2.6.31.12-0.1
checking for kernel source version... 2.6.31.12-0.1-default
checking for capabilities mask in backing_dev_info... no
checking for vfsmount in ->get_sb() helpers... no
checking for for mutex API... no
checking for for i_private... no
checking for for i_blksize... no
checking for for three argument bio_end_io... no
checking for for gfp argument to bio_map_user... no
checking for struct kmem_cache_s... no
checking for kmem_cache_create() with dtor arg in slab.h... no
checking for for three argument blkdev_get... no
checking for for one argument blkdev_put... no
checking for for old block limits... no
checking for SLAB_CTOR_VERIFY in slab.h... no
checking for three argument ctor in slab.h... no
checking for two argument ctor in slab.h... no
checking for current_fs?id() in cred.h... no
configure: creating ./config.status
config.status: creating Config.make
config.status: creating include/linux/oracleasm/module_version.h
config.status: creating vendor/sles9/oracleasm.spec-generic
config.status: creating vendor/rhel4/oracleasm.spec-generic
config.status: creating vendor/fc6/oracleasm.spec-generic
config.status: creating vendor/sles10/oracleasm.spec-generic
config.status: creating vendor/rhel5/oracleasm.spec-generic
config.status: creating vendor/sles11/oracleasm.spec-generic
config.status: creating vendor/common/oracleasm-headers.spec-generic
config.status: creating vendor/common/binrpm.spec-generic


below find the kernel package and devel package i have

_______________________________________________________________________

at-suse:/home/PAT/oracleasm2 # rpm -aq | grep kernel
kernel-desktop-2.6.31.12-0.1.1.x86_64                
kernel-source-rt-2.6.31-3.4.noarch                   
linux-kernel-headers-2.6.31-3.4.noarch               
kernel-default-base-2.6.31.12-0.1.1.x86_64           
kernel-default-devel-2.6.31.12-0.1.1.x86_64          
kernel-firmware-20090821-4.1.noarch                  
kernel-desktop-devel-2.6.31.12-0.1.1.x86_64          
kernel-desktop-base-2.6.31.12-0.1.1.x86_64           
kernel-default-2.6.31.12-0.1.1.x86_64                
kernel-source-vanilla-2.6.31.12-0.1.1.noarch         
kernel-source-2.6.31.12-0.1.1.noarch                 
pat-suse:/home/PAT/oracleasm2 # rpm -aq | grep devel
ntfs-3g-devel-2009.4.4-3.2.1.x86_64                 
libstdc++43-devel-4.3.4_20090804-2.4.x86_64         
mozilla-nss-devel-3.12.4-2.4.x86_64                 
gmp-devel-4.3.1-2.2.x86_64                          
binutils-devel-2.19.51-10.26.4.x86_64               
openldap2-devel-2.4.17-5.3.x86_64                   
xorg-x11-libXau-devel-7.4-6.1.x86_64                
libblkid-devel-2.16-4.5.1.x86_64                    
patterns-openSUSE-devel_basis-11.2-20.22.1.x86_64   
xorg-x11-libX11-devel-7.4-12.3.x86_64               
xorg-x11-libXv-devel-7.4-6.1.x86_64                 
gtk2-devel-2.18.6-0.1.3.x86_64                      
MozillaThunderbird-devel-3.0.0-1.1.1.x86_64         
libpixman-1-0-devel-0.16.0-2.2.x86_64               
libcom_err-devel-1.41.9-3.1.x86_64
freetype2-devel-2.3.9-2.2.x86_64
libopenssl-devel-0.9.8k-3.6.1.x86_64
xorg-x11-util-devel-7.4-2.1.x86_64
xorg-x11-libXrender-devel-7.4-6.1.x86_64
xorg-x11-devel-7.4-25.1.x86_64
zlib-devel-32bit-1.2.3-140.2.x86_64
glibc-devel-2.10.1-10.5.1.x86_64
mozilla-nspr-devel-4.8.2-1.1.3.x86_64
kernel-default-devel-2.6.31.12-0.1.1.x86_64
pam-devel-1.1.0-3.2.x86_64
libpng-devel-1.2.39-2.2.x86_64
xorg-x11-proto-devel-7.4-20.2.x86_64
libdb-4_5-devel-4.5.20-98.4.x86_64
libapparmor-devel-2.3-55.56.1.x86_64
xorg-x11-libfontenc-devel-7.4-6.1.x86_64
atk-devel-1.28.0-2.2.x86_64
xorg-x11-libICE-devel-7.4-7.1.x86_64
e2fsprogs-devel-1.41.9-3.1.x86_64
boost-devel-1.39.0-3.4.1.x86_64
xorg-x11-libXfixes-devel-7.4-6.1.x86_64
xorg-x11-libXp-devel-7.4-6.1.x86_64
cairo-devel-1.8.8-2.1.x86_64
libgcj-devel-4.4-4.2.x86_64
kernel-desktop-devel-2.6.31.12-0.1.1.x86_64
libaio-devel-0.3.104-144.2.x86_64
zlib-devel-1.2.3-140.2.x86_64
libstdc++44-devel-4.4.1_20090817-2.3.4.x86_64
libuuid-devel-2.16-4.5.1.x86_64
gdbm-devel-1.8.3-373.7.x86_64
cyrus-sasl-devel-2.1.23-3.1.x86_64
libosip2-devel-3.1.0-54.1.x86_64
xorg-x11-libXdmcp-devel-7.4-6.1.x86_64
libext2fs-devel-1.41.9-3.1.x86_64
patterns-openSUSE-devel_C_C++-11.2-20.22.1.x86_64
xorg-x11-libxkbfile-devel-7.4-6.1.x86_64
xorg-x11-libXext-devel-7.4-7.1.x86_64
xorg-x11-libXmu-devel-7.4-6.1.x86_64
pango-devel-1.26.2-1.1.1.x86_64
libstdc++-devel-4.4-4.2.x86_64
libpciaccess0-devel-7.4-25.1.x86_64
libart_lgpl-devel-2.3.20-50.2.x86_64
glib2-devel-2.22.4-0.1.1.x86_64
xorg-x11-xtrans-devel-7.4-7.2.x86_64
fontconfig-devel-2.7.0-3.2.x86_64
xorg-x11-libXt-devel-7.4-6.1.x86_64
xorg-x11-libXprintUtil-devel-7.4-6.1.x86_64
ntfsprogs-devel-1.13.1-109.2.x86_64
zlib-devel-static-1.2.3-140.2.x86_64
ncurses-devel-5.6-91.2.x86_64
xorg-x11-fonts-devel-7.4-5.1.x86_64
xorg-x11-libxcb-devel-7.4-11.1.x86_64
xorg-x11-libSM-devel-7.4-7.1.x86_64
xorg-x11-libXpm-devel-7.4-6.1.x86_64
libgcj44-devel-4.4.1_20090817-2.3.4.x86_64
pat-suse:/home/PAT/oracleasm2 #

_____________________________________________________________________________________________________________________

However when I run the make command I get the folowing error :

_____________________________________________________________________________________________________________________

 make -C include                                     
make[1]: entrant dans le répertoire « /home/PAT/oracleasm2/include »
make -C linux                                                       
make[2]: entrant dans le répertoire « /home/PAT/oracleasm2/include/linux »
make -C oracleasm                                                         
make[3]: entrant dans le répertoire « /home/PAT/oracleasm2/include/linux/oracleasm »
make[3]: Rien à faire pour « all ».
make[3]: quittant le répertoire « /home/PAT/oracleasm2/include/linux/oracleasm »
make[2]: quittant le répertoire « /home/PAT/oracleasm2/include/linux »
make[1]: quittant le répertoire « /home/PAT/oracleasm2/include »
make -C kernel
make[1]: entrant dans le répertoire « /home/PAT/oracleasm2/kernel »
make -C /usr/src/linux-2.6.31.12-0.1-obj/x86_64/default M=/home/PAT/oracleasm2/kernel modules
make[2]: entrant dans le répertoire « /usr/src/linux-2.6.31.12-0.1-obj/x86_64/default »
make -C /usr/src/linux-2.6.31.12-0.1 O=/usr/src/linux-2.6.31.12-0.1-obj/x86_64/default/. modules
  CC [M]  /home/PAT/oracleasm2/kernel/driver.o
In file included from /usr/src/linux-2.6.31.12-0.1/include/linux/fs.h:374,
                 from /home/PAT/oracleasm2/kernel/driver.c:57:
/usr/src/linux-2.6.31.12-0.1/include/linux/mutex.h:151: error: expected identifier or '(' before '!' token
In file included from /usr/src/linux-2.6.31.12-0.1/include/linux/fs.h:376,
                 from /home/PAT/oracleasm2/kernel/driver.c:57:
/usr/src/linux-2.6.31.12-0.1/include/linux/semaphore.h:42: error: conflicting types for 'down'
/usr/src/linux-2.6.31.12-0.1/include/linux/mutex.h:136: note: previous declaration of 'down' was here
/usr/src/linux-2.6.31.12-0.1/include/linux/semaphore.h:47: error: conflicting types for 'up'
/usr/src/linux-2.6.31.12-0.1/include/linux/mutex.h:152: note: previous declaration of 'up' was here
In file included from /home/PAT/oracleasm2/kernel/driver.c:57:
/usr/src/linux-2.6.31.12-0.1/include/linux/fs.h:786: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
In file included from /usr/src/linux-2.6.31.12-0.1/include/linux/sched.h:91,
                 from /usr/src/linux-2.6.31.12-0.1/include/linux/blkdev.h:6,
                 from /home/PAT/oracleasm2/kernel/driver.c:65:
/usr/src/linux-2.6.31.12-0.1/include/linux/cred.h:316:1: warning: "current_fsuid" redefined
In file included from <command-line>:0:
/home/PAT/oracleasm2/kernel/../kapi-compat/include/current_creds.h:4:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.6.31.12-0.1/include/linux/sched.h:91,
                 from /usr/src/linux-2.6.31.12-0.1/include/linux/blkdev.h:6,
                 from /home/PAT/oracleasm2/kernel/driver.c:65:
/usr/src/linux-2.6.31.12-0.1/include/linux/cred.h:317:1: warning: "current_fsgid" redefined
In file included from <command-line>:0:
/home/PAT/oracleasm2/kernel/../kapi-compat/include/current_creds.h:5:1: warning: this is the location of the previous definition
/home/PAT/oracleasm2/kernel/driver.c:278: error: unknown field 'memory_backed' specified in initializer
/home/PAT/oracleasm2/kernel/driver.c: In function 'asmdisk_get_sb':
/home/PAT/oracleasm2/kernel/driver.c:380: error: too few arguments to function 'get_sb_pseudo'
/home/PAT/oracleasm2/kernel/driver.c: At top level:
/home/PAT/oracleasm2/kernel/driver.c:386: warning: initialization from incompatible pointer type
/home/PAT/oracleasm2/kernel/driver.c: In function 'asm_open_disk':
/home/PAT/oracleasm2/kernel/driver.c:764: error: implicit declaration of function 'bdev_physical_block_size'
/home/PAT/oracleasm2/kernel/driver.c: In function 'asm_submit_io':
/home/PAT/oracleasm2/kernel/driver.c:1421: error: too few arguments to function 'bio_map_user'
/home/PAT/oracleasm2/kernel/driver.c: In function 'asmfs_get_sb':
/home/PAT/oracleasm2/kernel/driver.c:2904: error: too few arguments to function 'get_sb_nodev'
/home/PAT/oracleasm2/kernel/driver.c: At top level:
/home/PAT/oracleasm2/kernel/driver.c:2911: warning: initialization from incompatible pointer type
make[5]: *** [/home/PAT/oracleasm2/kernel/driver.o] Erreur 1
make[4]: *** [_module_/home/PAT/oracleasm2/kernel] Erreur 2
make[3]: *** [sub-make] Erreur 2
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « /usr/src/linux-2.6.31.12-0.1-obj/x86_64/default »
make[1]: *** [build-oracleasm] Erreur 2
make[1]: quittant le répertoire « /home/PAT/oracleasm2/kernel »
make: *** [kernel] Erreur 2
pat-suse:/home/PAT/oracleasm2 #


If somebody is able to help me I will appreciate

Thanks in advance for your help

 






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/oracleasm-support-users/attachments/20100220/db05d604/attachment.html 


More information about the Oracleasm-support-users mailing list