LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-23-2010, 03:21 PM   #1
claytonian
LQ Newbie
 
Registered: Sep 2010
Distribution: Ubuntu, CentOS
Posts: 2

Rep: Reputation: 0
Question Problem building asmlib 2.0.5 with dkms on centOS 5.5 running kernel 2.6.18-194.11.4


Hi All,

I'm trying to set up oracle asmlib to with dkms so that I don't need to wait for oracle to compile a new version of asmlib whenever a minior kernel update occurs(e.g. the recent .4 release for enterprise linux).

I am able to succesfully download, compile and install the asmlib from source without a problem by doing the following(as root)

wget http://oss.oracle.com/projects/oracl...m-2.0.5.tar.gz
tar -xzf oracleasm-2.0.5.tar.gz
cd oracleasm-2.0.5
./configure
make
make install

When I try to set it up using dkms I run into problems:
wget http://oss.oracle.com/projects/oracl...m-2.0.5.tar.gz
tar -xzf oracleasm-2.0.5.tar.gz
mv oracleasm-2.0.5 /usr/src
cd /usr/src/oracleasm-2.0.5
vi dkms.conf

add the following in:

Code:
PACKAGE_NAME="oracleasm"
PACKAGE_VERSION="2.0.5"
BUILT_MODULE_NAME[0]="oracleasm"
DEST_MODULE_LOCATION[0]="/kernel/drivers/addon/oracleasm"
AUTOINSTALL="yes"

then do
dkms add -m oracleasm -v 2.0.5
dkms build -m oracleasm -v 2.0.5

Code:
Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....(bad exit status: 2)
make KERNELRELEASE=2.6.18-194.11.4.el5 -C /lib/modules/2.6.18-194.11.4.el5/build M=/var/lib/dkms/oracleasm/2.0.5/build....(bad exit status: 2)

Error! Bad return status for module build on kernel: 2.6.18-194.11.4.el5 (i686)
Consult the make.log in the build directory
/var/lib/dkms/oracleasm/2.0.5/build/ for more information.
0
0
cat /var/lib/dkms/oracleasm/2.0.5/build/make.log

Code:
DKMS make.log for oracleasm-2.0.5 for kernel 2.6.18-194.11.4.el5 (i686)
Thu Sep 23 15:14:24 CDT 2010
make: Entering directory `/usr/src/kernels/2.6.18-194.11.4.el5-i686'
/var/lib/dkms/oracleasm/2.0.5/build/Makefile:9: Preamble.make: No such file or directory
/var/lib/dkms/oracleasm/2.0.5/build/Makefile:55: Vendor.make: No such file or directory
/var/lib/dkms/oracleasm/2.0.5/build/Makefile:60: Postamble.make: No such file or directory
make[1]: *** No rule to make target `Postamble.make'.  Stop.
make: *** [_module_/var/lib/dkms/oracleasm/2.0.5/build] Error 2
make: Leaving directory `/usr/src/kernels/2.6.18-194.11.4.el5-i686'
The problem appears to be as simple as dkms not having the correct current working directory, but then again I've never used dkms directly before.

So is there any possible work around or alternation to either a) the source tree or b) dkms.conf or c) some better solution I have not previously considered?

Last edited by claytonian; 09-23-2010 at 03:25 PM. Reason: marked as question
 
Old 10-07-2010, 11:23 AM   #2
claytonian
LQ Newbie
 
Registered: Sep 2010
Distribution: Ubuntu, CentOS
Posts: 2

Original Poster
Rep: Reputation: 0
Well I've tried editing the Makefile and using hard coded paths and it worked better, but I still haven't been able to get it to work correctly with dkms.

Anyone have any further suggestions?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Doesn't Work - RHEL 5, 2.6.18-194.el5 Kernel, Broadcom BCM5708 Illydth Linux - Hardware 6 04-22-2010 09:48 AM
dkms-ndiswrapper and CentOs 5.3 vwtech Linux - Networking 4 03-17-2010 05:11 AM
dkms-nvidia-current dkms install fails X86_64 Blackhawkckc Mandriva 5 03-21-2009 04:57 PM
regarding building (patched) modules for the running kernel... stardotstar Linux - Kernel 1 05-14-2008 08:34 PM
memory upgrade problem Toshiba P100-194 opensuse vinceneil Linux - Laptop and Netbook 2 06-04-2007 01:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration