LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-30-2012, 01:28 AM   #1
ack_iix
Member
 
Registered: Jan 2009
Location: Tangerang, Indonesia
Distribution: Slackware64-current
Posts: 61

Rep: Reputation: 17
Trouble building VMware kernel module 8.0.3 on Slackware64-current with Linux 3.3.6


Hello Guys,

I have trouble building the VMware 8.0.3 kernel module (the vmmon one) in my Slackware64-current setup. I've built and install my custom kernel (linux 3.3.6 with pf patch) and I've also patched the VMware module source using the patch from here: http://weltall.heliohost.org

All other modules can be built successfully, except the vmmon one which always threw me errors during compilation. All other modules were successfully built when I issue the command:
Code:
vmware-modconfig --console --build-mod -k 3.3.6-pf <module_name> /usr/bin/gcc /lib/modules/source/include
Here's the error when I tried to build the vmmon module:
Code:
dwi@pavilion:source $ sudo vmware-modconfig --console --install-all
Password:
Stopping VMware services:
   VMware Authentication Daemon                            [  OK  ]
   VM communication interface socket family                [  OK  ]
   Virtual machine communication interface                 [  OK  ]
   Virtual machine monitor                                 [  OK  ]
   Blocking file system                                    [  OK  ]
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmmon-only'
make -C /lib/modules/3.3.6-pf/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-3.3.6-pf'
  CC [M]  /tmp/vmware-root/modules/vmmon-only/linux/driverLog.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/linux/driver.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/linux/hostif.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/memtrack.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/apic.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/vmx86.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/cpuid.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/task.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/comport.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/hashFunc.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/common/phystrack.o
  CC [M]  /tmp/vmware-root/modules/vmmon-only/vmcore/moduleloop.o
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c: In function ‘HostIF_CallOnEachCPU’:
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c:2823:4: error: too many arguments to function ‘smp_call_function’
In file included from include/linux/topology.h:33:0,
                 from include/linux/gfp.h:7,
                 from include/linux/mm.h:8,
                 from /tmp/vmware-root/modules/vmmon-only/./include/compat_page.h:23,
                 from /tmp/vmware-root/modules/vmmon-only/linux/hostif.c:32:
include/linux/smp.h:74:5: note: declared here
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c: In function ‘HostIF_BrokenCPUHelper’:
/tmp/vmware-root/modules/vmmon-only/linux/hostif.c:2860:4: error: too many arguments to function ‘smp_call_function’
In file included from include/linux/topology.h:33:0,
                 from include/linux/gfp.h:7,
                 from include/linux/mm.h:8,
                 from /tmp/vmware-root/modules/vmmon-only/./include/compat_page.h:23,
                 from /tmp/vmware-root/modules/vmmon-only/linux/hostif.c:32:
include/linux/smp.h:74:5: note: declared here
/tmp/vmware-root/modules/vmmon-only/linux/driver.c: In function ‘LinuxDriverSyncCallOnEachCPU’:
/tmp/vmware-root/modules/vmmon-only/linux/driver.c:1319:4: error: too many arguments to function ‘smp_call_function’
In file included from include/linux/sched.h:78:0,
                 from include/linux/freezer.h:6,
                 from include/linux/fs.h:400,
                 from include/linux/highmem.h:4,
                 from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:25:
include/linux/smp.h:74:5: note: declared here
make[2]: *** [/tmp/vmware-root/modules/vmmon-only/linux/hostif.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/tmp/vmware-root/modules/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-root/modules/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-3.3.6-pf'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
Unable to install vmmon
dwi@pavilion:source $
I even switch to my other machine (Slackware64-current, stock kernel 3.2.13) and still get the same error. Tried to change my current kernel with Slackware64-current stock and it does not help either, I still got the same errors...

The patch I mentioned above does not touch the vmmon at all though, maybe the vmmon source needs to be patched as well? Or can I run vmware without this module, as the other modules built flawlessly.

I appreciate your help
 
Old 05-30-2012, 01:58 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,595

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Try read the solution on my SlackBlogs
 
Old 05-30-2012, 02:38 AM   #3
ack_iix
Member
 
Registered: Jan 2009
Location: Tangerang, Indonesia
Distribution: Slackware64-current
Posts: 61

Original Poster
Rep: Reputation: 17
Tried the patch on your blog and still got the same error, the vmmon module won't build (your patch is only for the vmnet source). I've spent some times googling and can't find a case similar to mine. I had this problem on my laptop and my desktop computer.

Frankly I'm confused now on what may be causing this, even reverting to stock kernel packages does not help. What I mean stock is every kernel packages is vanilla from Slackware64-current, the vmmon module still won't compile.

Last edited by ack_iix; 05-30-2012 at 02:39 AM.
 
Old 05-30-2012, 03:59 AM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,595

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
have you removed your VMWare installation and start a new installation?
Don't try to patch on top of another patch.
 
Old 05-30-2012, 06:55 AM   #5
ack_iix
Member
 
Registered: Jan 2009
Location: Tangerang, Indonesia
Distribution: Slackware64-current
Posts: 61

Original Poster
Rep: Reputation: 17
Yes, I've uninstall VMware and removed all previous VMware files in /etc/vmware and /usr/lib/vmware*

Still the same error
 
Old 05-30-2012, 09:46 AM   #6
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,595

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Mind trying this patch ?
 
Old 05-30-2012, 01:42 PM   #7
ack_iix
Member
 
Registered: Jan 2009
Location: Tangerang, Indonesia
Distribution: Slackware64-current
Posts: 61

Original Poster
Rep: Reputation: 17
-fPIC flag is the source

I've tried your patch, still the same errors. It's the vmmon module that won't compile, and from google search result I haven't seen any patch regarding the vmmon module for this vmware version.

Tried the patch again on a different computer (running Slackware64-current with stock kernel) and still same vmmon compile error.

I'm beginning to think that VMware won't play nice with Slackware, is this patch working fine in your system? Please share your configuration (Slackware version / kernel version)?

Update

This has giving me a headache all day long and the culprit is just because VMware modules source won't compile with -fPIC compiler flags I always have this line inside a script named slackbuild.sh in my /etc/profile.d directory:
Code:
export CFLAGS="-O2 -fPIC -march=native -pipe -fomit-frame-pointer"
It appears that VMware won't play nice with -fPIC, removing this flag enables all the modules to be compiled without problems.

Thanks to Willy for your assistance, I will mark this threas as solved.

Last edited by ack_iix; 05-30-2012 at 02:13 PM. Reason: Finally fixed the problem!
 
Old 05-30-2012, 07:32 PM   #8
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,595

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Good to know that it's working since many people have reported that the patch is working on their systems
It's also working fine on my system of course because i tested it first before posting it to my blog
 
  


Reply

Tags
kernel module, slackware64-current, vmmon, vmware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] gcc exits with "libXrender" error when building wmii for Slackware64-current markush Slackware 4 05-06-2012 05:49 AM
[SOLVED] Building Kid3 in Slackware64-Current ack_iix Slackware 1 08-02-2009 05:12 AM
building kdebluetooth from Slackbuilds on Slackware64-current gtludwig Slackware 5 06-27-2009 06:59 PM
Trouble building vmmon module for VMware Server with Slackware 10.2 Lothoir Linux - Software 14 07-15-2006 10:01 PM
VMware module building kernel error ^^ ZoNicONE Linux - Newbie 3 09-09-2003 02:52 PM


All times are GMT -5. The time now is 07:36 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration