Menu

Unable to compile driver

Anonymous
2003-10-04
2003-11-23
  • Anonymous

    Anonymous - 2003-10-04

    Dear josep,
    I am at my wit's end trying to compile the driver. This is the error I get when I run make. All the required packages seem to be installed. I am running Mandrake 9.1 on an AMD K6 500 Mhz processor. Any help would be much appreciated.

    [root@localhost cxacru]# make
    cd init && make clean
    make[1]: Entering directory `/usr/cxacru/init'
    rm -f cxload cxioctl cxloaddbg cxloaddbgt
    make[1]: Leaving directory `/usr/cxacru/init'
    cd module && make clean
    make[1]: Entering directory `/usr/cxacru/module'
    rm -f cxacrunormal.o sarlib.o sartest cxacru.o cxacrudebug.o cxacrudbg.o version.h
    make[1]: Leaving directory `/usr/cxacru/module'
    cd module2 && make clean
    make[1]: Entering directory `/usr/cxacru/module2'
    rm -f *.o .*.flags *.ko *.mod.* .*.o.cmd .*.ko.cmd
    make[1]: Leaving directory `/usr/cxacru/module2'
    cd sarlib && make clean
    make[1]: Entering directory `/usr/cxacru/sarlib'
    /bin/rm -f *.o
    make[1]: Leaving directory `/usr/cxacru/sarlib'
    cd panel && make clean
    make[1]: Entering directory `/usr/cxacru/panel'
    rm -f cxpanel *.bak
    make[1]: Leaving directory `/usr/cxacru/panel'
    cd bridged && make clean
    make[1]: Entering directory `/usr/cxacru/bridged'
    rm -f br2684ctl
    make[1]: Leaving directory `/usr/cxacru/bridged'
    cd init && make && make install
    make[1]: Entering directory `/usr/cxacru/init'
    gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i586 -Wall -DLINUX -I../include -lusb -lpthread cxload.c -o cxload
    gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i586 -Wall -DLINUX -I../include -lusb -lpthread cxioctl.c -o cxioctl
    make[1]: Leaving directory `/usr/cxacru/init'
    make[1]: Entering directory `/usr/cxacru/init'
    install -c -m 755 -p cxload cxioctl /usr/sbin
    make[1]: Leaving directory `/usr/cxacru/init'
    cd firmware && make
    make[1]: Entering directory `/usr/cxacru/firmware'
    install -c -m 644 -p cxfirm1.bin cxfirm2.bin cxfirm3.bin cxfirm4.bin cxfirm5.bin /usr/sbin
    make[1]: Leaving directory `/usr/cxacru/firmware'
    cd module && make && make install
    make[1]: Entering directory `/usr/cxacru/module'
    gcc -O2 -Wstrict-prototypes -Wno-trigraphs -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-common -mpreferred-stack-boundary=2 -march=i586 -Wall -D__KERNEL__ -DLINUX  -DATM_VCC_ALLOC_TX -DMODULE -I/lib/modules/2.4.21-0.13mdk/build/include -I../sarlib/  -c cxacru.c -o cxacrunormal.o
    make -C ../sarlib/
    make[2]: Entering directory `/usr/cxacru/sarlib'
    cc -O2 -Wstrict-prototypes  -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -march=i586 -Wall -D__KERNEL__ -DLINUX -DATM_VCC_OLD -DATM_VCC_ALLOC_TX -I/lib/modules/2.4.21-0.13mdk/build/include -c sarlib.c -o sarlib.o
    cc -O2 -Wstrict-prototypes  -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -march=i586 -Wall -D__KERNEL__ -DLINUX -DATM_VCC_OLD -DATM_VCC_ALLOC_TX -I/lib/modules/2.4.21-0.13mdk/build/include -DDEBUG -c sarlib.c -o sarlibdbg.o
    make[2]: Leaving directory `/usr/cxacru/sarlib'
    ld -r -o cxacru.o  cxacrunormal.o ../sarlib/sarlib.o
    gcc -O2 -Wstrict-prototypes -Wno-trigraphs -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-common -mpreferred-stack-boundary=2 -march=i586 -Wall -D__KERNEL__ -DLINUX  -DATM_VCC_ALLOC_TX -DMODULE -I/lib/modules/2.4.21-0.13mdk/build/include -I../sarlib/  -DDEBUG -DDEBUG_PACKET -c cxacru.c -o cxacrudebug.o
    ld -r -o cxacrudbg.o  cxacrudebug.o ../sarlib/sarlibdbg.o
    make[1]: Leaving directory `/usr/cxacru/module'
    make[1]: Entering directory `/usr/cxacru/module'
    mkdir -p /lib/modules/2.4.21-0.13mdk/kernel/drivers/usb
    cp cxacru.o /lib/modules/2.4.21-0.13mdk/kernel/drivers/usb
    cp cxacrudbg.o /lib/modules/2.4.21-0.13mdk/kernel/drivers/usb
    /sbin/depmod -a
    make[1]: Leaving directory `/usr/cxacru/module'
    cd scripts && make
    make[1]: Entering directory `/usr/cxacru/scripts'
    install -c -m 755 -p cxload.sh cxunload.sh cxstart.sh cxstop.sh /usr/sbin
    install -c -m 755 -p service/cxacru /etc/cxacru.service
    if [ ! -f /etc/cxacru ]; then \
            install -c -m 644 -p config/cxacru /etc; \
    fi
    install -c -m 755 -p cxnetup.sh cxnetdown.sh /usr/sbin
    install -c -m 755 -p cxnet2up.sh cxnet2down.sh /usr/sbin
    install -c -m 755 -p cxnet3up.sh cxnet3down.sh /usr/sbin
    install -c -m 755 -p cxnet4up.sh cxnet4down.sh /usr/sbin
    make[1]: Leaving directory `/usr/cxacru/scripts'
    cd bridged && make && make install
    make[1]: Entering directory `/usr/cxacru/bridged'
    gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i586 -Wall -DLINUX -I/lib/modules/2.4.21-0.13mdk/build/include  br2684ctl.c -o br2684ctl -latm
    br2684ctl.c:8:17: atm.h: No such file or directory
    In file included from /lib/modules/2.4.21-0.13mdk/build/include/linux/atmdev.h:12,
                     from br2684ctl.c:9:
    /lib/modules/2.4.21-0.13mdk/build/include/linux/atm.h:211: parse error before "uint32_t"
    /lib/modules/2.4.21-0.13mdk/build/include/linux/atm.h:211: warning: no semicolon at end of struct or union
    /lib/modules/2.4.21-0.13mdk/build/include/linux/atm.h:211: warning: no semicolon at end of struct or union
    /lib/modules/2.4.21-0.13mdk/build/include/linux/atm.h:212: warning: type defaults to `int' in declaration of `sas_addr'
    /lib/modules/2.4.21-0.13mdk/build/include/linux/atm.h:212: warning: data definition has no type or storage class
    /lib/modules/2.4.21-0.13mdk/build/include/linux/atm.h:213: parse error before '}' token
    /lib/modules/2.4.21-0.13mdk/build/include/linux/atm.h:217: parameter `addr' has
    incomplete type
    In file included from /lib/modules/2.4.21-0.13mdk/build/include/linux/atmbr2684.h:5,
                     from br2684ctl.c:10:
    /lib/modules/2.4.21-0.13mdk/build/include/linux/if.h:130: field `ifru_addr' has
    incomplete type
    /lib/modules/2.4.21-0.13mdk/build/include/linux/if.h:131: field `ifru_dstaddr' has incomplete type
    /lib/modules/2.4.21-0.13mdk/build/include/linux/if.h:132: field `ifru_broadaddr' has incomplete type
    /lib/modules/2.4.21-0.13mdk/build/include/linux/if.h:133: field `ifru_netmask' has incomplete type
    /lib/modules/2.4.21-0.13mdk/build/include/linux/if.h:134: field `ifru_hwaddr' has incomplete type
    br2684ctl.c: In function `create_br':
    br2684ctl.c:59: warning: implicit declaration of function `socket'
    br2684ctl.c:59: `PF_ATMPVC' undeclared (first use in this function)
    br2684ctl.c:59: (Each undeclared identifier is reported only once
    br2684ctl.c:59: for each function it appears in.)
    br2684ctl.c:59: `SOCK_DGRAM' undeclared (first use in this function)
    br2684ctl.c: In function `assign_vcc':
    br2684ctl.c:98: warning: implicit declaration of function `text2atm'
    br2684ctl.c:98: `T2A_PVC' undeclared (first use in this function)
    br2684ctl.c:113: `PF_ATMPVC' undeclared (first use in this function)
    br2684ctl.c:113: `SOCK_DGRAM' undeclared (first use in this function)
    br2684ctl.c:124: warning: implicit declaration of function `setsockopt'
    br2684ctl.c:124: `SOL_SOCKET' undeclared (first use in this function)
    br2684ctl.c:124: `SO_SNDBUF' undeclared (first use in this function)
    br2684ctl.c:127: `SOL_ATM' undeclared (first use in this function)
    br2684ctl.c:130: warning: implicit declaration of function `connect'
    make[1]: *** [br2684ctl] Error 1
    make[1]: Leaving directory `/usr/cxacru/bridged'
    make: *** [BRIDGED] Error 2
    [root@localhost cxacru]#

    Thanks in advance
    Pradmen

     
    • Gilles Espinasse

      Do you have linux-atm rpm installed?

      You may need too to add /usr/local/lib to /etc/ld.so.conf (if it's not already inside) and run ldconfig

       
    • Anonymous

      Anonymous - 2003-10-04

      I have got linux-atm-2.4.0-2mdk installed. The following are the entries in ld.so.conf
      /lib
      /usr/X11R6/lib
      /usr/lib/qt3/lib
      /usr/local/lib
      /usr/lib
      I have run ldconfig as well.
      Running make brings up the same error. Is there any place where I can find a ready made rpm for i586 build? I know that i686 is freely available.
      Regards
      Pradmen

       
      • Gilles Espinasse

        Do you have the atm devel package installed too to be  able to compile?

        The name may be liblinux-atm1-devel-2.4.0-2mdk.i586.rpm

         
    • Anonymous

      Anonymous - 2003-10-06

      dear Gilles,
      I installed the atm-devel package and the driver compiled. Thanks a lot. I have now got a slightly different problem. When I run cxstart.sh. it tells me that the driver has been compiled with 2.4.21custommdk.
      root@localhost pradeep]# cxstart.sh
      >>> Inits Conexant AccessRunner <<<

      >>> Loading firmware...
      Conexant AccessRunner microcode upload program. 6/9/2003
      Josep Comas <jcomas@gna.es>
      See credits in documentation

      I found ADSL modem with VendorID = 0572 & ProductID = cafe
      Loading and sending /usr/sbin/cxfirm1.bin...
      Firmware is sent!
      Setting configuration...
      Waiting ADSL line is up (until 90 seconds)...
      ......
      ADSL line is up (Downstream 576 Kbits/s, Upstream 288 Kbits/s)
      >>> Loading driver...
      Launching driver in normal mode...
      /lib/modules/2.4.21-0.13mdk/kernel/drivers/usb/cxacru.o: kernel-module version mismatch
              /lib/modules/2.4.21-0.13mdk/kernel/drivers/usb/cxacru.o was compiled for kernel version 2.4.21-0.13mdkcustom
              while this kernel is version 2.4.21-0.13mdk.
      modprobe: insmod /lib/modules/2.4.21-0.13mdk/kernel/drivers/usb/cxacru.o failed
      modprobe: insmod cxacru failed

      This is despite it being compiled on my machine. When I force insmod with -f it does load the module, but I am not quite sure where and in which file I should make the changes. I'd be grateful for any suggestions.
      Pradmen

       
    • Josep Comas

      Josep Comas - 2003-10-07

      Hello,

      For Mandrake you don't need type make menuconfig, make xconfig, make dep, make mrproper.

      Regards,
        Josep

       
    • Anonymous

      Anonymous - 2003-11-23

      Hi,
      I am not sure that the compilation of the driver is done right.
      After I use make command in dir cxcraxu a rapid message compare that tell me the version of cxcraxu packet I used.
      In the /usr/sbin directory now are 3 new command but not the shell script.
      It's all right?
      I use red hat 9.0 with kernel 2.4.20.
      Best Regards.
      Croupier

       
    • Josep Comas

      Josep Comas - 2003-11-23

      Hello,

      I recommend that you read last messages or you search in this forum about compilation. If you go to http://accessrunner.sourceforge.net you can use english pages to translate spanish manual to english.

      To compile with RedHat 9.0:
      .-You check your kernel version (uname -r)
      .-You need SAME kernel source code that kernel that are you running (you don't need compile kernel, only driver but you need kernel source code)
      .-You install kernel-source*****.rpm package from CDs if you use default kernel version.
      .-Change to kernel source directory:
      cd /usr/src/linux*****
      .-Copy .config file:
      cp ./configs/kernel-2.4.20-i686.config .config
      (if you haven't i686 then you check configs directory)
      .-Go to cxacru directory:
      cd /usr/cxacur
      .-Compile driver:
      make

      Regards,
        Josep

       

Log in to post a comment.

MongoDB Logo MongoDB