Results 1 to 6 of 6

Thread: Compiling dgcmodem

  1. #1
    Join Date
    Jun 2010
    Beans
    7

    Compiling dgcmodem

    Hi,
    Not sure if this is where this thread belongs.
    Been trying to install/compile the drivers for a usb modem for the past few days. 7.04 was the only distro that liked the drivers, but there were many dependancies 7.04 didnt have and was more hassle to find/compile the source for all of them. When i try to install either the deb file (using 10.04), or from source, it asks me for the build directory then fails. So logging in as a super user i was able to "make install" the source, but when i run dgcconfig after as the readme says it asks for build then fails, with this console output:
    Code:
    root@dan-desktop:/home/dan/modem/dgcmodem-1.01# dgcconfig
    Conexant DGC USB modem driver, version 1.01
    
    If you need assistance or more information, please go to:
        http://www.linuxant.com/
    
    When reporting a problem for the first time, please send
    us the file generated by "dgcconfig --dumpdiag".
    
    No pre-built modules for: Ubuntu-10.04.4 linux-2.6.32-73-generic i686-SMP
    
    Trying to automatically build the driver modules...
    (this requires a C compiler and proper kernel sources to be installed)
    
    Where is the linux source build directory that matches your running kernel?
    [/lib/modules/2.6.32-73-generic/build] 
    
    Building modules for kernel 2.6.32-73-generic, using source directory
    /lib/modules/2.6.32-73-generic/build. Please wait...
    
    ERROR: Module build failed!
    Please examine the log file "/tmp/dgcconfig-buildlog.txt" to determine why.
    root@dan-desktop:/home/dan/modem/dgcmodem-1.01#
    Build log says :
    Code:
    make: execvp: ../modules/kernelcompiler.sh: Permission denied
    (cd /lib/modules/2.6.32-73-generic/build && make "CNXT_KERNELSRC=/lib/modules/2.6.32-73-generic/build" "M=/usr/lib/dgcmodem/modules" "CC=" clean)
    /bin/sh: Illegal option -p
    make[1]: Entering directory `/usr/src/linux-headers-2.6.32-73-generic'
    make[2]: execvp: /usr/lib/dgcmodem/modules/kernelcompiler.sh: Permission denied
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-73-generic'
    rm -rf *.o GPL/*.o *.ko GPL/*.ko *.mod.c GPL/*.mod.c .*.cmd GPL/.*.cmd .tmp_versions .tmp_versions  /lib/modules/2.6.32-73-generic/build/.tmp_versions/dgcusbdcp.mod Modules.symvers GPL/hda/Modules.symvers
    (cd /lib/modules/2.6.32-73-generic/build && make "CNXT_KERNELSRC=/lib/modules/2.6.32-73-generic/build" "M=/usr/lib/dgcmodem/modules" "CC=" modules)
    /bin/sh: cannot open gcc-command: No such file
    make[1]: Entering directory `/usr/src/linux-headers-2.6.32-73-generic'
    /usr/src/linux-headers-2.6.32-73-generic/arch/x86/Makefile:81: stack protector enabled but no compiler support
    /bin/sh: Illegal option -p
    make[2]: execvp: /usr/lib/dgcmodem/modules/kernelcompiler.sh: Permission denied
    scripts/Makefile.build:49: *** CFLAGS was changed in "/usr/lib/dgcmodem/modules/Makefile". Fix it to use EXTRA_CFLAGS.  Stop.
    make[1]: *** [_module_/usr/lib/dgcmodem/modules] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-73-generic'
    make: *** [all] Error 2
    Not sure how to change CFLAGS in the makefile. But once i figure out why its doing that and how to fix it then i can probably "make install clean" then configure the modules. If its giving me the error even when super user then it must be the original compile is wrong too? Attaching .zip of buildlog, console output, makefile for modules, and source for the drivers.

    Help is appreciated
    Thanks
    Attached Files Attached Files

  2. #2
    Join Date
    Jun 2010
    Beans
    7

    Re: Compiling dgcmodem

    So i used the command "sed -i 's/^CFLAGS/EXTRA_CFLAGS/' Makefile" in the directory i have the source for dgcmodem in and dgcmodem-1.01/modules but now the buildlog says this, after asking for build directory and fails again

    Code:
    make: execvp: ../modules/kernelcompiler.sh: Permission denied
    (cd /lib/modules/2.6.32-73-generic/build && make "CNXT_KERNELSRC=/lib/modules/2.6.32-73-generic/build" "M=/usr/lib/dgcmodem/modules" "CC=" clean)
    /bin/sh: Illegal option -p
    make[1]: Entering directory `/usr/src/linux-headers-2.6.32-73-generic'
    make[2]: execvp: /usr/lib/dgcmodem/modules/kernelcompiler.sh: Permission denied
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-73-generic'
    rm -rf *.o GPL/*.o *.ko GPL/*.ko *.mod.c GPL/*.mod.c .*.cmd GPL/.*.cmd .tmp_versions .tmp_versions  /lib/modules/2.6.32-73-generic/build/.tmp_versions/dgcusbdcp.mod Modules.symvers GPL/hda/Modules.symvers
    (cd /lib/modules/2.6.32-73-generic/build && make "CNXT_KERNELSRC=/lib/modules/2.6.32-73-generic/build" "M=/usr/lib/dgcmodem/modules" "CC=" modules)
    /bin/sh: cannot open gcc-command: No such file
    make[1]: Entering directory `/usr/src/linux-headers-2.6.32-73-generic'
    /usr/src/linux-headers-2.6.32-73-generic/arch/x86/Makefile:81: stack protector enabled but no compiler support
    /bin/sh: Illegal option -p
    make[2]: execvp: /usr/lib/dgcmodem/modules/kernelcompiler.sh: Permission denied
      CC [M]  /usr/lib/dgcmodem/modules/mod_dgcusbdcp.o
    /bin/sh: -Wp,-MD,/usr/lib/dgcmodem/modules/.mod_dgcusbdcp.o.d: not found
    make[2]: *** [/usr/lib/dgcmodem/modules/mod_dgcusbdcp.o] Error 127
    make[1]: *** [_module_/usr/lib/dgcmodem/modules] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-73-generic'
    make: *** [all] Error 2
    When it tries to access kernelcompiler.sh it says access denied. Im running as super user so why would that be an issue?

    Help appreciated

  3. #3
    Join Date
    Apr 2012
    Beans
    7,122

    Re: Compiling dgcmodem

    I have no idea what you're trying to do, or why you are using such old versions - however the most obvious thing is that the make commands are getting passed an empty value of CC

    Code:
    (cd /lib/modules/2.6.32-73-generic/build && make "CNXT_KERNELSRC=/lib/modules/2.6.32-73-generic/build" "M=/usr/lib/dgcmodem/modules" "CC=" modules)
    This is probably the root of other errors such as

    Code:
    /bin/sh: -Wp,-MD,/usr/lib/dgcmodem/modules/.mod_dgcusbdcp.o.d: not found
    and

    Code:
    /bin/sh: Illegal option -p
    Perhaps your system lacks a suitable C compiler?

  4. #4
    Join Date
    Jun 2010
    Beans
    7

    Re: Compiling dgcmodem

    Linuxant stopped support after 08 i read. I figured an older verison would have the best compatibility. Would a new distro be more compatible? What c compiler do you recommend?

    Edit: gcc is c compiler yeah? How do i fix the empty CC commands? What do in general?
    Last edited by dan12343; March 16th, 2015 at 04:16 AM. Reason: more info

  5. #5
    Join Date
    Jun 2010
    Beans
    7

    Re: Compiling dgcmodem

    Quote Originally Posted by steeldriver View Post
    I have no idea what you're trying to do
    Trying to install drivers for a usb modem

  6. #6
    Join Date
    Jun 2010
    Beans
    7

    Re: Compiling dgcmodem

    So i updated to 14.04, and got the updated version of the driver. It installed which is cool but after install you're supposed to run dgcconfig to install the modules. But when i try to build it the console output is the following:
    Code:
    dan@dan-VirtualBox:/usr/src/linux-headers-3.16.0-30$ sudo dgcconfig
    Conexant DGC USB modem driver, version 1.13
    
    If you need assistance or more information, please go to:
        http://www.linuxant.com/
    
    When reporting a problem for the first time, please send
    us the file generated by "dgcconfig --dumpdiag".
    
    No pre-built modules for: Ubuntu-14.04.2 linux-3.16.0-30-generic i686-SMP
    
    Trying to automatically build the driver modules...
    (this requires a C compiler and proper kernel sources to be installed)
    
    Where is the linux source build directory that matches your running kernel?
    [/lib/modules/3.16.0-30-generic/build] 
    
    WARNING: missing file /lib/modules/3.16.0-30-generic/build/include/linux/version.h
    The cause of this is usually a missing or unconfigured
    kernel source tree (and sometimes an incorrect directory or symbolic link).
    
    However, proper /boot/config-3.16.0-30-generic was found.
    Would you like to try using it (in a temporary kernel tree)? [yes] 
    
    Unable to prepare temporary kernel tree
    
    First, ensure that the proper kernel source and compiler packages
    from your distribution vendor and/or the community are installed.
    
    The Linux kernel can then be reconfigured by running "make menuconfig"
    under the kernel source directory (usually /usr/src/linux).
    
    Verify that the proper options for your system are selected.
    
    Then compile and install your new kernel (for more information about
    this procedure, see the README file under the kernel source directory),
    reboot the system using the new kernel, and re-run "dgcconfig".
    dan@dan-VirtualBox:/usr/src/linux-headers-3.16.0-30$
    I tried running make menuconfig in the kernel header directory but couldnt figure out what exactly i needed to do there. Downloaded kernel-source. Assistance with compiling the kernel source to get the build modules working? Ubuntu doesnt detect the modem though its listed in lsusb and dgcmodem-1.13.0.deb installed. Hoping its just the modules, installing these drivers has been quite the headache

    Thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •