Menu

make fails

Help
2007-02-06
2013-04-18
  • Jason Carlson

    Jason Carlson - 2007-02-06

    Using gentoo and/or sabayon linux when I try to run make it tells me there is no linux/config.h file.  Do kernel sources normally have those files or am I missing a step?

     
    • rla3rd

      rla3rd - 2007-02-20

      change
      #include <linux/config.h>
      to
      //#include <linux/config.h>
      in et131x_version.h

       
      • Jason Carlson

        Jason Carlson - 2007-02-21

        commented out that line and still get errors.

        last few lines of compile give me:

        In file included from /usr/local/src/et131_stuff/sourceforge_driver/et131x-1.2.2/et131x_adapter.h:85,
                         from /usr/local/src/et131_stuff/sourceforge_driver/et131x-1.2.2/et131x_main.c:116:
        /usr/local/src/et131_stuff/sourceforge_driver/et131x-1.2.2/ET1310_rx.h:441: warning: ‘kmem_cache_t’ is deprecated
        /usr/local/src/et131_stuff/sourceforge_driver/et131x-1.2.2/et131x_main.c:140: error: expected ‘)’ before string constant
        /usr/local/src/et131_stuff/sourceforge_driver/et131x-1.2.2/et131x_main.c:141: error: expected ‘)’ before string constant
        make[2]: *** [/usr/local/src/et131_stuff/sourceforge_driver/et131x-1.2.2/et131x_main.o] Error 1
        make[1]: *** [_module_/usr/local/src/et131_stuff/sourceforge_driver/et131x-1.2.2] Error 2
        make[1]: Leaving directory `/usr/src/linux-2.6.20-sabayon-r1'
        make: *** [modules] Error 2

        I tried this on an older kernel earlier and it gave me an error it was missing a parameter for a function (don't remember what function off hand).

        I currently am running linux kernel 2.6.20-r1

         
        • rla3rd

          rla3rd - 2007-02-21

          try downloading the new source files i just put up. It contains patches that were submitted for the 2.6.20 kernel.  Let me know how it goes.

           
          • Jason Carlson

            Jason Carlson - 2007-02-26

            Tried the new uploaded sources and all worked fine.  Thanks.  As a side note, it worked with my 2.6.18 kernel as well (the old one didn't work on that kernel before either).

             
    • raibeh

      raibeh - 2007-06-11

      I can't compile this driver on Fedora Core 7, because of there is a problem with vlan_device struct.
      There isn't vla_devises.
      in file "et131x_netdev.c"

      void et131x_vlan_rx_kill_vid( struct net_device *netdev, UINT16 vid )
      {
          ET131X_ADAPTER     *pAdapter = netdev_priv( netdev );
          /*-----------------------------------------------------------------------*/

          DBG_FUNC( "et131x_vlan_rx_kill_vid" );
          DBG_ENTER( et131x_dbginfo );

          DBG_VERBOSE( et131x_dbginfo, "VLAN, Remove VID: %d\n", vid );

          if( pAdapter->vlgrp )
          {
              pAdapter->vlgrp->vlan_devices[vid] = NULL;
          }

          /**************************************************************************
             This is where any interfacing with the hardware to deregister VLAN IDs
             would take place. Since the ET1310 doesn't handle this in hardware,
             nothing else needs to be done here.
           *************************************************************************/

          DBG_LEAVE( et131x_dbginfo );
          return;
      }

      Could you help me?

       
      • Stuart Longland

        Stuart Longland - 2007-06-16

        Apparently it's not done that way anymore ... looking around, I found this change in the MadWifi project drivers <http://madwifi.org/changeset/2180>.  Doing the same thing here fixes the problem.

        I'll put a patch up on the tracker (at <http://sourceforge.net/tracker/index.php?func=detail&aid=1709009&group_id=179406&atid=889025>) in a moment... although I notice someone else came up with another solution to the problem.

         

Log in to post a comment.