Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278223 - app-emulation/vmware-modules-1.0.0.24 need to check if kernel-2.6.30 has CONFIG_COMPAT_NET_DEV_OPS enabled
Summary: app-emulation/vmware-modules-1.0.0.24 need to check if kernel-2.6.30 has CONF...
Status: RESOLVED DUPLICATE of bug 274173
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL: http://www.gentoo.ru/node/15641
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-18 06:46 UTC by Andrey Falko
Modified: 2009-09-19 20:42 UTC (History)
1 user (show)

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


Attachments
upstream patch script (vmware-6.5.2-newkernmods.sh,5.64 KB, text/plain)
2009-07-20 11:45 UTC, renato gallo
Details
upstream patch (vmware-6.5.2-newkernmods.patch,11.31 KB, patch)
2009-07-20 11:45 UTC, renato gallo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Falko 2009-07-18 06:46:47 UTC
The URL above is in Russian, but the error message is the same one that I hit. After compiling my kernel with the CONFIG_COMPAT_NET_DEV_OPS set to "y", vmware-modules was able to build. 

We should tell the user to enable CONFIG_COMPAT_NET_DEV_OPS before proceeding with compile.

Reproducible: Always

Steps to Reproduce:
1.emerge vmware-modules
2.
3.

Actual Results:  
You get the following error message:

  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.o
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.c: In function 'VNetNetIfSetup':
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.c:225: error: 'struct net_device' has no member named 'init'
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.c:226: error: 'struct net_device' has no member named 'open'
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.c:227: error: 'struct net_device' has no member named 'hard_start_xmit'
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.c:228: error: 'struct net_device' has no member named 'stop'
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.c:229: error: 'struct net_device' has no member named 'get_stats'
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.c:230: error: 'struct net_device' has no member named 'set_mac_address'
/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.c:231: error: 'struct net_device' has no member named 'set_multicast_list'
make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.o] Error 1
make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30-gentoo-r1'
Comment 1 renato gallo 2009-07-19 18:07:17 UTC
I am trying the latesst vanilla 2.6.31-rc3 
where is the CONFIG_COMPAT_NET_DEV_OPS ?
Comment 2 renato gallo 2009-07-20 11:44:33 UTC
by the way upstream the vmware team has patched the bug here is the link of their thread

http://communities.vmware.com/thread/221724

I attach the upstream patch and script

I have tried to modify the ebuild still without success... 

please help























(In reply to comment #0)
> The URL above is in Russian, but the error message is the same one that I hit.
> After compiling my kernel with the CONFIG_COMPAT_NET_DEV_OPS set to "y",
> vmware-modules was able to build. 
> 
> We should tell the user to enable CONFIG_COMPAT_NET_DEV_OPS before proceeding
> with compile.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1.emerge vmware-modules
> 2.
> 3.
> 
> Actual Results:  
> You get the following error message:
> 
>   CC [M] 
> /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.o
> /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.c:
> In function 'VNetNetIfSetup':
> /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.c:225:
> error: 'struct net_device' has no member named 'init'
> /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.c:226:
> error: 'struct net_device' has no member named 'open'
> /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.c:227:
> error: 'struct net_device' has no member named 'hard_start_xmit'
> /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.c:228:
> error: 'struct net_device' has no member named 'stop'
> /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.c:229:
> error: 'struct net_device' has no member named 'get_stats'
> /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.c:230:
> error: 'struct net_device' has no member named 'set_mac_address'
> /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.c:231:
> error: 'struct net_device' has no member named 'set_multicast_list'
> make[3]: ***
> [/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only/netif.o]
> Error 1
> make[2]: ***
> [_module_/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmnet-only]
> Error 2
> make[1]: *** [sub-make] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.30-gentoo-r1'
> 

Comment 3 renato gallo 2009-07-20 11:45:24 UTC
Created attachment 198587 [details]
upstream patch script
Comment 4 renato gallo 2009-07-20 11:45:52 UTC
Created attachment 198589 [details, diff]
upstream patch
Comment 5 Andrey Falko 2009-07-20 16:36:15 UTC
renato, the config option is in Device Drivers -> Network device support -> Enable older network device compatability
Comment 6 renato gallo 2009-07-20 16:39:39 UTC
as of 2.6.31-rc3


 --- Network device support                                                                                                                                 │ │
  │ │                                                                                    <*>   Intermediate Functional Block support                                                                                                                │ │
  │ │                                                                                    < >   Dummy net driver support                                                                                                                             │ │
  │ │                                                                                    <M>   Bonding driver support                                                                                                                               │ │
  │ │                                                                                    <*>   MAC-VLAN support (EXPERIMENTAL)                                                                                                                      │ │
  │ │                                                                                    <*>   EQL (serial line load balancing) support                                                                                                             │ │
  │ │                                                                                    <*>   Universal TUN/TAP device driver support                                                                                                              │ │
  │ │                                                                                    <*>   Virtual ethernet pair device                                                                                                                         │ │
  │ │                                                                                    <M>   General Instruments Surfboard 1000                                                                                                                   │ │
  │ │                                                                                    <*>   ARCnet support  --->                                                                                                                                 │ │
  │ │                                                                                    -*-   PHY Device support and infrastructure  --->                                                                                                          │ │
  │ │                                                                                    [*]   Ethernet (10 or 100Mbit)  --->                                                                                                                       │ │
  │ │                                                                                    [*]   Ethernet (1000 Mbit)  --->                                                                                                                           │ │
  │ │                                                                                    [*]   Ethernet (10000 Mbit)  --->                                                                                                                          │ │
  │ │                                                                                    <*>   Token Ring driver support  --->                                                                                                                      │ │
  │ │                                                                                          Wireless LAN  --->                                                                                                                                   │ │
  │ │                                                                                          WiMAX Wireless Broadband devices  --->                                                                                                               │ │
  │ │                                                                                          USB Network Adapters  --->                                                                                                                           │ │
  │ │                                                                                    [*]   PCMCIA network device support  --->                                                                                                                  │ │
  │ │                                                                                    [*]   Wan interfaces support  --->                                                                                                                         │ │
  │ │                                                                                    [*]   ATM drivers  --->                                                                                                                                    │ │
  │ │                                                                                    <*>   IEEE 802.15.4 drivers  --->                                                                                                                          │ │
  │ │                                                                                    <*>   FDDI driver support                                                                                                                                  │ │
  │ │                                                                                    <M>     Digital DEFTA/DEFEA/DEFPA adapter support                                                                                                          │ │
  │ │                                                                                    [*]       Use MMIO instead of PIO                                                                                                                          │ │
  │ │                                                                                    <M>     SysKonnect FDDI PCI support                                                                                                                        │ │
  │ │                                                                                    [*]   HIPPI driver support (EXPERIMENTAL)                                                                                                                  │ │
  │ │                                                                                    <M>     Essential RoadRunner HIPPI PCI adapter support (EXPERIMENTAL)                                                                                      │ │
  │ │                                                                                    [ ]       Use large TX/RX rings (EXPERIMENTAL)                                                                                                             │ │
  │ │                                                                                    <M>   PLIP (parallel port) support                                                                                                                         │ │
  │ │                                                                                    <M>   PPP (point-to-point protocol) support       
[*]     PPP multilink support (EXPERIMENTAL)                                                                                                               │ │
  │ │                                                                                    [*]     PPP filtering                                                                                                                                      │ │
  │ │                                                                                    <M>     PPP support for async serial ports                                                                                                                 │ │
  │ │                                                                                    <M>     PPP support for sync tty ports                                                                                                                     │ │
  │ │                                                                                    <M>     PPP Deflate compression                                                                                                                            │ │
  │ │                                                                                    <M>     PPP BSD-Compress compression                                                                                                                       │ │
  │ │                                                                                    <M>     PPP MPPE compression (encryption) (EXPERIMENTAL)                                                                                                   │ │
  │ │                                                                                    <M>     PPP over Ethernet (EXPERIMENTAL)                                                                                                                   │ │
  │ │                                                                                    <M>     PPP over ATM                                                                                                                                       │ │
  │ │                                                                                    <M>     PPP over L2TP (EXPERIMENTAL)                                                                                                                       │ │
  │ │                                                                                    <M>   SLIP (serial line) support                                                                                                                           │ │
  │ │                                                                                    [*]     CSLIP compressed headers                                                                                                                           │ │
  │ │                                                                                    [*]   Keepalive and linefill                                                                                                                               │ │
  │ │                                                                                    [*]   Six bit SLIP encapsulation                                                                                                                           │ │
  │ │                                                                                    [*]   Fibre Channel driver support                                                                                                                         │ │
  │ │                                                                                    <M>   Network console logging support (EXPERIMENTAL)                                                                                                       │ │
  │ │                                                                                    [*]     Dynamic reconfiguration of logging targets (EXPERIMENTAL)                                                                                          │ │
  │ │                                                                                    [*]   Netpoll traffic trapping                          

(In reply to comment #5)
> renato, the config option is in Device Drivers -> Network device support ->
> Enable older network device compatability
> 

Comment 7 renato gallo 2009-07-21 08:53:24 UTC
it seems to me that the option will be removed in the stable tree and it has been already wiped out from rc... so i suggest, since installing the modules patched with the upstream patch worked for me, to find a way to apply the patch with the official emerge mechanism. 

(In reply to comment #5)
> renato, the config option is in Device Drivers -> Network device support ->
> Enable older network device compatability
> 

Comment 8 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-07-22 23:49:41 UTC
I would not call it "upstream" patch. More like community patch.

*** This bug has been marked as a duplicate of bug 274173 ***
Comment 9 renato gallo 2009-07-25 06:23:51 UTC
without it  = no vmware with kernel 2.6.31
with it = all is working

(In reply to comment #8)
> I would not call it "upstream" patch. More like community patch.
> 
> *** This bug has been marked as a duplicate of bug 274173 ***
> 

Comment 10 Peter Grasch 2009-09-19 20:42:52 UTC
Well the stock patch would not work for me (a LOT of failed hunks) so I reduced it to the two hunks that made the package build.

This patch works for me:
http://pastebin.com/fb1383b4