LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-11-2008, 12:29 AM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
Small error compiling modules ... for webcam?


I obtain this error message... what could it be ?

Code:
:/tmp/modules/gspca# make
make -C /lib/modules/`uname -r`/build SUBDIRS=/tmp/modules/gspca CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.25-2-686'
scripts/Makefile.build:46: *** CFLAGS was changed in "/tmp/modules/gspca/Makefile". Fix it to use EXTRA_CFLAGS.  Stop.
make[1]: *** [_module_/tmp/modules/gspca] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.25-2-686'
make: *** [default] Error 2
 
Old 11-11-2008, 08:26 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by frenchn00b View Post
I obtain this error message... what could it be ?

Code:
:/tmp/modules/gspca# make
make -C /lib/modules/`uname -r`/build SUBDIRS=/tmp/modules/gspca CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.25-2-686'
scripts/Makefile.build:46: *** CFLAGS was changed in "/tmp/modules/gspca/Makefile". Fix it to use EXTRA_CFLAGS.  Stop.
make[1]: *** [_module_/tmp/modules/gspca] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.25-2-686'
make: *** [default] Error 2
It could be that you need to modify the makefile, and put the flag in there to use EXTRA_CFLAGS, just as the error message says......
 
Old 11-11-2008, 01:10 PM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Code:
VERSION    = 01.00.04

DEFINES    =

###
# The following flags enable experimental features.
# By default, these are enabled for development versions of the driver, and
# disabled for release versions.

# Optional: Enable driver debugging
DEFINES   += -DGSPCA_ENABLE_DEBUG

# Optional: Enable direct register read/write for PAC207 development
#DEFINES   += -DGSPCA_ENABLE_REGISTERPLAY

###
# The following flags enable features that aren't yet implemented, and
# therefore are disabled by default.

# Optional: Enable compression
DEFINES   += -DGSPCA_ENABLE_COMPRESSION

###
# Rest of Makefile follows here. You probably won't need to touch this.

# Setup defines
DEFINES   += -DCONFIG_USB_GSPCA_MODULE=1 -DMODULE -D__KERNEL__
DEFINES   += -DVID_HARDWARE_GSPCA=0xFF -DGSPCA_VERSION=\"$(VERSION)\"

ifneq ($(KERNELRELEASE),)   # We were called by kbuild
CFLAGS += $(DEFINES) 
obj-m += gspca.o
gspca-objs := gspca_core.o decoder/gspcadecoder.o 

else   # We were called from command line

KERNEL_VERSION = `uname -r`
KERNELDIR := /lib/modules/$(KERNEL_VERSION)/build
PWD  := $(shell pwd)
MODULE_INSTALLDIR = /lib/modules/$(KERNEL_VERSION)/kernel/drivers/usb/media/
MODULE_INSTALLDIR2 = /lib/modules/$(KERNEL_VERSION)/kernel/drivers/media/video/

default:
	$(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) CC=$(CC) modules

install:
	mkdir -p $(MODULE_INSTALLDIR)
	rm -f $(MODULE_INSTALLDIR)spca5xx.ko
	rm -f $(MODULE_INSTALLDIR2)gspca.ko
	install -c -m 0644 gspca.ko $(MODULE_INSTALLDIR)
	/sbin/depmod -ae

uninstall:
	rm -f $(MODULE_INSTALLDIR)gspca.ko
	/sbin/depmod -aq

endif

############################################################################## 
# OTHER TARGETS 
##############################################################################
clean:
	rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
	.gspca.o.cmd  *.o *.ko *.mod.* .[a-z]* core *.i \
	Modules.symvers
	
#################
 
Old 11-11-2008, 01:12 PM   #4
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
is it bad if:

Code:
/lib/modules$ find /lib/modules -iname "*gspca*"
returns nothing
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error compiling modules of cpufreq monohouse Linux - Kernel 0 09-13-2008 10:22 AM
Webcam has correct modules loaded, but no x apps see it cwwilson721 Slackware 1 12-26-2007 05:11 PM
Error while compiling Smartlink modules Unforgiven79 Linux - Newbie 0 10-01-2006 10:30 AM
Compile Error- /lib/modules/extra/modules.dep UpChuck Debian 2 01-11-2004 10:20 AM
error while compiling modules under mandrake 9.1 kctang Linux - Hardware 1 06-20-2003 10:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:33 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