LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   (Ubuntu 14.04) Compiling dgcmodem drivers (https://www.linuxquestions.org/questions/ubuntu-63/ubuntu-14-04-compiling-dgcmodem-drivers-4175536836/)

dan12343 03-15-2015 08:46 PM

(Ubuntu 14.04) Compiling dgcmodem drivers
 
Hi,
Been trying to compile dgcmodem drivers for this usb modem. But when i try installing from .deb or from source it gives me the error "CFLAGS was changed in "/usr/lib/dgcmodem/modules/Makefile". Fix it to use EXTRA_CFLAGS. Stop."

If i login as super user i can "make install" the source for dgcmodem but when i run dgcconfig after install, as it says to do, it gives me the above error.

I tried installing with "KBUILD_NOPEDANTIC=1 make install" but got the same result.

If i can figure out how to get past the CFLAGS error i can do a clean install and get this thing working.

Help is appriciated,
Thanks

dan12343 03-15-2015 09:50 PM

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

dan12343 03-16-2015 06:20 AM

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


All times are GMT -5. The time now is 06:49 PM.