[Oracleasm-devel] Help with Oracle ASMLib 2.0 and Fedora 9

Tina Soles tina.soles at strsoftware.com
Mon Jun 30 15:59:27 PDT 2008


Your suspicions are correct! Lots of errors, see below.

Is it possible to get something that will compile for Fedora 9? I'm desperate!

Thanks....

# make
make -C include
make[1]: Entering directory `/root/rpms/source/oracleasm-2.0.4/include'
make -C linux
make[2]: Entering directory `/root/rpms/source/oracleasm-2.0.4/include/linux'
make -C oracleasm
make[3]: Entering directory `/root/rpms/source/oracleasm-2.0.4/include/linux/oracleasm'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/rpms/source/oracleasm-2.0.4/include/linux/oracleasm'
make[2]: Leaving directory `/root/rpms/source/oracleasm-2.0.4/include/linux'
make[1]: Leaving directory `/root/rpms/source/oracleasm-2.0.4/include'
make -C kernel
make[1]: Entering directory `/root/rpms/source/oracleasm-2.0.4/kernel'
make -C /lib/modules/2.6.25-14.fc9.i686/build M=/root/rpms/source/oracleasm-2.0.4/kernel modules
make[2]: Entering directory `/usr/src/kernels/2.6.25-14.fc9.i686'
  CC [M]  /root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.o
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:136: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:137: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:138: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c: In function âasmdisk_alloc_inodeâ:
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:288: error: âasmdisk_cachepâ undeclared (first use in this function)
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:288: error: (Each undeclared identifier is reported only once
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:288: error: for each function it appears in.)
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c: In function âasmdisk_destroy_inodeâ:
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:308: error: âasmdisk_cachepâ undeclared (first use in this function)
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c: At top level:
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:311: error: expected declaration specifiers or â...â before âkmem_cache_tâ
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c: In function âinit_asmdisk_onceâ:
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:315: error: âSLAB_CTOR_VERIFYâ undeclared (first use in this function)
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:315: error: âSLAB_CTOR_CONSTRUCTORâ undeclared (first use in this function)
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c: In function âinit_asmdiskcacheâ:
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:391: error: âasmdisk_cachepâ undeclared (first use in this function)
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:394: warning: passing argument 5 of âkmem_cache_createâ from incompatible pointer type
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:394: error: too many arguments to function âkmem_cache_createâ
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c: In function âdestroy_asmdiskcacheâ:
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:417: error: âasmdisk_cachepâ undeclared (first use in this function)
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c: In function âasmfs_alloc_inodeâ:
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:446: error: âasmfs_inode_cachepâ undeclared (first use in this function)
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c: In function âasmfs_destroy_inodeâ:
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:471: error: âasmfs_inode_cachepâ undeclared (first use in this function)
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c: At top level:
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:474: error: expected declaration specifiers or â...â before âkmem_cache_tâ
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c: In function âinit_onceâ:
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:478: error: âSLAB_CTOR_VERIFYâ undeclared (first use in this function)
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:478: error: âSLAB_CTOR_CONSTRUCTORâ undeclared (first use in this function)
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c: In function âinit_inodecacheâ:
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:490: error: âasmfs_inode_cachepâ undeclared (first use in this function)
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:493: warning: passing argument 5 of âkmem_cache_createâ from incompatible pointer type
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:493: error: too many arguments to function âkmem_cache_createâ
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c: In function âdestroy_inodecacheâ:
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:502: error: âasmfs_inode_cachepâ undeclared (first use in this function)
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c: In function âinit_requestcacheâ:
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:507: error: âasm_request_cachepâ undeclared (first use in this function)
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:510: error: too many arguments to function âkmem_cache_createâ
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c: In function âdestroy_requestcacheâ:
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:518: error: âasm_request_cachepâ undeclared (first use in this function)
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c: In function âasm_request_allocâ:
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:1069: error: âasm_request_cachepâ undeclared (first use in this function)
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c: In function âasm_request_freeâ:
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:1087: error: âasm_request_cachepâ undeclared (first use in this function)
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c: In function âasm_submit_ioâ:
/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.c:1383: warning: assignment from incompatible pointer type
make[3]: *** [/root/rpms/source/oracleasm-2.0.4/kernel/oracleasm.o] Error 1
make[2]: *** [_module_/root/rpms/source/oracleasm-2.0.4/kernel] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.25-14.fc9.i686'
make[1]: *** [build-oracleasm] Error 2
make[1]: Leaving directory `/root/rpms/source/oracleasm-2.0.4/kernel'
make: *** [kernel] Error 2

-----Original Message-----
From: Joel Becker [mailto:Joel.Becker at oracle.com] 
Sent: Monday, June 30, 2008 6:57 PM
To: Tina Soles
Cc: oracleasm-devel at oss.oracle.com
Subject: Re: [Oracleasm-devel] Help with Oracle ASMLib 2.0 and Fedora 9

On Mon, Jun 30, 2008 at 06:43:40PM -0400, Tina Soles wrote:
> I am running Fedora 9 with kernel = 2.6.25-14.fc9.i686

	I strongly suspect this won't compile.

> ocfs2 is up and running, and now I need to install ASMLib 2.0, but it
> appears that there is no rpm distribution for this kernel.  Therefore, I
> am attempting to build my own, from the source files,
> oracleasm-2.0.4.tar.gz.  After unzipping and untarring, I run
> ./configure and it seems to run fine (see below), but when I try to run
> make install it bombs with an error no rule to make target
> `oracleasm.ko', needed by `install-oracleasm'.  Stop.

	You need to run 'make' first.  But I suspect it won't work, as I
haven't brought the sources up to 2.6.2x yet.  Let me know what happens.

Joel

-- 

"All alone at the end of the evening
 When the bright lights have faded to blue.
 I was thinking about a woman who had loved me
 And I never knew"

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Oracleasm-devel mailing list