Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 10-19-2008, 03:51 PM   #1
Registered: Jun 2005
Posts: 139

Rep: Reputation: 18
Help compiling a ungrab-windmodem.ko Makefile

Okay, so I need to load a file named ungrab-windmodem.ko along with slamr.ko into my kernel: Slamr.ko I have already with 2008.0, ungrab-winmodem however I do not. After much searching online (via Windows; it’s these drivers I need to configure my modem in Linux!) I have only been able to find tarballed source file. I extracted the archive, but trouble is I’m still new -and ignorant – to compiling.

I’d be very appreciative if somebody could help me re-write the attached Makefile, it looks as far as I can tell, pretty simple, to the initiated at least; a case of removing parenthesis, and filling the relevant information at a guess.

I’ve been trying desperately to get online, using nidiswrapper and wvdial, but to no avail. I have spent hours reading books, trawling the net, learning how to use the command line to set up various applications, but source is beyond me right now. I’ll learn it later, but for now I need to de-linux, and just want to do some casual online surfing, get some hours back. Somebody else will know this in a flash, to me that's hours.

So I need to “make clean”, “make”, then “make install” with this, I have read:

KERNEL_VER:=$(shell uname -r)

obj-m := ungrab-winmodem.o

$(MAKE) modules -C $(KERNEL_DIR) SUBDIRS=$(shell pwd)

$(RM) *.o *.ko *.mod.* .*.cmd *~
$(RM) -r .tmp_versions

install: all
install -D -m 644 ungrab-winmodem.ko $(INSTALL_DIR)/ungrab-winmodem.ko
/sbin/depmod -a
modprobe -r ungrab-winmodem ; echo -n
$(RM) $(INSTALL_DIR)/ungrab-winmodem.ko
/sbin/depmod -a



Last edited by NirvanaII; 10-19-2008 at 08:13 PM.
Old 10-19-2008, 09:41 PM   #2
Registered: Jun 2005
Posts: 139

Original Poster
Rep: Reputation: 18
Just tried this at the shell, creating the directory "build" before running make a second time:

[root@localhost ungrab-winmodem-20080126]# make
make modules -C /lib/modules/ SUBDIRS=/media/hd/Software/LinuxSoftware/ungrab-winmodem-20080126
make: *** /lib/modules/ No such file or directory. Stop.
make: *** [all] Error 2
[root@localhost ungrab-winmodem-20080126]# make
make modules -C /lib/modules/ SUBDIRS=/media/hd/Software/LinuxSoftware/ungrab-winmodem-20080126
make[1]: Entering directory `/lib/modules/'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/'
make: *** [all] Error 2
[root@localhost ungrab-winmodem-20080126]# ./configure
bash: ./configure: No such file or directory
[root@localhost ungrab-winmodem-20080126]#

Guessing this is the significant line: make[1]: *** No rule to make target `modules'. Stop.

There is no configure file, "./configure" did nothing, the readme tells me little else other than I ought have slmodem, and to 'make' and 'make install'.

I read this thread first:

And so ran "locate" to be certain of install, a long list followed.


Old 10-20-2008, 09:57 PM   #3
Registered: Jun 2005
Posts: 139

Original Poster
Rep: Reputation: 18
Still stuck on this one. Earlier I ran the command "urpmi kernel", knowing nothing of the difference I should expect: I got not no message, just a new prompt. I did it again, this time with --src-install; In this instance I got the '#### x%' loaded output, seemingly it had installed.

Bearing in mind I only did this on reading the above cited thread, I have no idea what the rationale behind this is, suffice it to say trying to "make" ungrab-windmodem outputs the same as before.

What am I not doing?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Unable to Compile Ungrab-Winmodem sleepyz Mandriva 5 08-13-2008 08:39 AM
Makefile and compiling the linux kernel ayoub Linux - Newbie 0 12-02-2005 05:25 AM
Compiling Xmame - which CFlags in makefile? lets-eat-gary Linux - Games 2 03-12-2005 06:15 AM
Windmodem drivers for Linux Scarecrow Man Linux - Hardware 3 07-19-2004 06:01 PM
Compiling old code: Makefile plus cbcallaw Linux - Software 1 04-29-2004 06:35 PM > Forums > Linux Forums > Linux - Distributions > Mandriva

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

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