LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-15-2015, 08:46 PM   #1
dan12343
LQ Newbie
 
Registered: Mar 2015
Posts: 23

Rep: Reputation: Disabled
Question (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

Last edited by dan12343; 03-16-2015 at 06:22 AM. Reason: Change title, updated distro
 
Old 03-15-2015, 09:50 PM   #2
dan12343
LQ Newbie
 
Registered: Mar 2015
Posts: 23

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-16-2015, 06:20 AM   #3
dan12343
LQ Newbie
 
Registered: Mar 2015
Posts: 23

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] X: "loading extension glx" "no screens found" "fatal server error" (w/ nvidia driver) Geremia Slackware 7 12-29-2014 11:00 AM
An error about "Fix it to use EXTRA_CFLAGS" ioibird Linux - Software 8 10-14-2009 04:06 AM
CFLAGS vs EXTRA_CFLAGS, Ubuntu server 9.04 error while running "make install" Invisible-Man Linux - General 21 07-14-2009 06:31 AM
Ntfs-Fuse copy error Debian "Sid" / Ubuntu "6.06" animefriik Linux - General 0 10-06-2006 09:28 AM
Compiling Drivers for a www.startech.com "UE1205CB" PCMCIA NIC in RedHat 9 vipernicus42 Linux - Newbie 1 01-31-2005 09:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration