Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49253 - vmware-config.pl won't build vmnet with Linux 2.4.26
Summary: vmware-config.pl won't build vmnet with Linux 2.4.26
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Chris Gianelloni (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-28 00:14 UTC by Colin Macdonald
Modified: 2004-06-24 04:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
.config from Linux 2.4.26 (dot-config,26.15 KB, text/plain)
2004-04-28 15:32 UTC, Colin Macdonald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Macdonald 2004-04-28 00:14:38 UTC
When I run vmware-config.pl on my ~x86 system running the kernel Linux 2.4.26, it fails to build the vmnet module.

I think this is related to enabled SCTP support in my kernel (new option in 2.4.26, search for SCTP here: http://ftp.cvut.cz/vmware/readme.txt)

Could this be related to bug #49163?

Here's the log of running vmware-config.pl:

aconite root # vmware-config.pl
Making sure VMware Workstation's services are stopped.
 
Stopping VMware services:
   Virtual machine monitor                                             done
   Bridged networking on /dev/vmnet0                                   done
   DHCP server on /dev/vmnet8                                          done
   NAT service on /dev/vmnet8                                          done
   Host-only networking on /dev/vmnet8                                 done
   Virtual ethernet                                                    done
 
Trying to find a suitable vmmon module for your running kernel.
 
None of VMware Workstation's pre-built vmmon modules is suitable for your
running kernel.  Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]
 
Using compiler "/usr/bin/gcc". Use environment variable CC to override.
 
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.4.26/build/include]
 
Extracting the sources of the vmmon module.
 
Building the vmmon module.
 
Using standalone build system.
make: Entering directory `/tmp/vmware-config2/vmmon-only'
make[1]: Entering directory `/tmp/vmware-config2/vmmon-only'
make[2]: Entering directory `/tmp/vmware-config2/vmmon-only/driver-2.4.26'
make[2]: Leaving directory `/tmp/vmware-config2/vmmon-only/driver-2.4.26'
make[2]: Entering directory `/tmp/vmware-config2/vmmon-only/driver-2.4.26'
make[2]: Leaving directory `/tmp/vmware-config2/vmmon-only/driver-2.4.26'
make[1]: Leaving directory `/tmp/vmware-config2/vmmon-only'
make: Leaving directory `/tmp/vmware-config2/vmmon-only'
The module loads perfectly in the running kernel.
 
Extracting the sources of the vmnet module.
 
Building the vmnet module.
 
Using standalone build system.
make: Entering directory `/tmp/vmware-config2/vmnet-only'
bridge.c: In function `VNetBridgeReceiveFromVNet':
bridge.c:346: error: structure has no member named `sk_wmem_alloc'
make: *** [bridge.o] Error 1
make: Leaving directory `/tmp/vmware-config2/vmnet-only'
Unable to build the vmnet module.
 
For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".
 
Execution aborted.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2004-04-28 10:48:47 UTC
Please attach your kernel config and list your "emerge info"
Comment 2 Colin Macdonald 2004-04-28 15:32:33 UTC
Created attachment 30284 [details]
.config from Linux 2.4.26
Comment 3 Colin Macdonald 2004-04-28 15:33:10 UTC
Output of emerge info:

Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.4.26)
=================================================================
System uname: 2.4.26 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib alsa apm arts berkdb cdr cjk crypt cups dga directfb dvd emacs encode esd faad fbcon fftw flac gdbm gif ginac gnome gphoto2 gpm gstreamer gtk gtk2 imlib jack java jpeg ldap leim libg++ libwww lirc mad matroska mikmod mmx mng motif mozilla moznocompose moznoirc moznomail mozsvg mpeg mule mysql ncurses nls oggvorbis opengl oss pam pdflib perl plotutils png ppds python qhull qt quicktime radeon readline scanner sdk sdl slang spell sse ssl tcltk tcpd tetex theora tiff truetype usb v4l video_cards_radeon wxwindows x86 xinerama xml xml2 xmms xosd xv xvid zlib"
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2004-04-28 19:12:35 UTC
It could be related or it might not be related at all.  Unfortunately, we can't make that assumption, since bug #49163 is for amd64, which is an unsupported platform for VMware.

I'll have to look into this one a bit closer before I can come to any conclusions.
Comment 5 Yoo, Taik-Yon 2004-05-08 23:04:24 UTC
vmnet-only/compat_sock.h has a problem with kernel 2.4.26

Change on line 12 in this file
------------------------------

#if !defined(sk_family)

to

#if !defined(sk_family) || (LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0))

-----------------

It is successful on my system with

vmware-workstation-4.5.1.7568
vanilla-sources-2.4.26
linux-headers-2.4.22
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2004-05-09 10:40:10 UTC
Does that also work with kernels <2.4.26?
Comment 7 Yoo, Taik-Yon 2004-05-20 22:20:24 UTC
Not tested with kernel < 2.4.26.
But I think that is enough.
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2004-05-21 05:34:03 UTC
OK.  Without knowing that it works with kernel <2.4.26 (such as gentoo-sources-2.4.25), I cannot add the patch.  I don't want to fix it for one kernel and break it for all the others.
Comment 9 Colin Macdonald 2004-05-30 17:33:04 UTC
Yoo Taik-Yon's solution worked for me.  Also using Linux 2.4.26.
Comment 10 Chris Gianelloni (RETIRED) gentoo-dev 2004-06-15 05:21:33 UTC
Is this problem still occurring with either of the new (-r1 for 4.5.1 or 4.5.2) VMware ebuilds in portage?  I really would like to get this resolved.
Comment 11 Colin Macdonald 2004-06-23 19:00:50 UTC
The problem seems to be resolved using the vmware-workstation-4.5.2.8848 in ~x86.  Should I close this bug?
Comment 12 Chris Gianelloni (RETIRED) gentoo-dev 2004-06-24 04:51:15 UTC
I got it.

Thanks for letting me know that it is fixed now.

=]