Menu

Debian Etch

Help
Mike
2007-04-03
2013-04-18
  • Mike

    Mike - 2007-04-03

    Does anyone know how to get this driver to install on the Etch release of Debian? I've installed the kernel-headers and when I go to make, I get this:

    #@make -C /lib/modules/2.6.18-4-amd64/build M=/home/mike/et131x-1.2.3 modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.18-4-amd64'
      CC [M]  /home/mike/et131x-1.2.3/et131x_initpci.o
    /home/mike/et131x-1.2.3/et131x_initpci.c:1675:51: error: macro "INIT_WORK" requires 3 arguments, but only 2 given
    /home/mike/et131x-1.2.3/et131x_initpci.c: In function ‘et131x_pci_setup’:
    /home/mike/et131x-1.2.3/et131x_initpci.c:1675: error: ‘INIT_WORK’ undeclared (first use in this function)
    /home/mike/et131x-1.2.3/et131x_initpci.c:1675: error: (Each undeclared identifier is reported only once
    /home/mike/et131x-1.2.3/et131x_initpci.c:1675: error: for each function it appears in.)
    make[2]: *** [/home/mike/et131x-1.2.3/et131x_initpci.o] Error 1
    make[1]: *** [_module_/home/mike/et131x-1.2.3] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.18-4-amd64'
    make: *** [modules] Error 2

     
    • TwangThunk

      TwangThunk - 2007-04-03

      I had the same problem in my IOCTL thread. Download the latest svn version (http://sourceforge.net/svn/?group_id=179406)

      svn co https://et131x.svn.sourceforge.net/svnroot/et131x et131x

      ...and compile it instead. The error messages go away.

      Mike

       
    • Daniel Burke

      Daniel Burke - 2007-05-23

      Hmm,i have the same compile failures.. I tried to grab the SVN version and it does the exact same thing.  So does the debian source package (1.2.2)

       
    • Daniel Burke

      Daniel Burke - 2007-05-23

      I dont know if this is the right thing to do.. but I manually changed the et131x_initpci.c file from:

      LN1675: INIT_WORK( &adapter->task, et131x_isr_handler );

      to

      LN1675: INIT_WORK( &adapter->task, (void (*)(void *))et131x_isr_handler, adapter );

      The thing that has me stumped is that it looks like the make tried to apply a patch to change it FROM the 3 parameter version TO the 2 parm version and failed since it was already set to that?

      I have no examined the Makefile so I cannot comment if there is anything wrong here, however it does seem to only be effecting Debian systems?  Maybe the INIT_WORK macro defined in my 2.6.18-4 src tree (see file workqueue.h) is deprecated???

      Maybe other distro's have their own patches?

      Oh well I hope a dev. working on this project reads and replies to this thread with some insight just so i can better understand :-)

       
    • Daniel Burke

      Daniel Burke - 2007-05-23

      Well.. even after getting it built and installed it does not seem to work.  I tried dhclient and dhclient3 both fail to get an address.

      I set a static IP and cannot ping anything, actually ifconfig show Tx and Rx bytes as 0 so I do not seem to be any further ahead.

       

Log in to post a comment.