PDA

View Full Version : [SOLVED] GSPCA make error 2



jesterthejedi
September 4th, 2009, 03:04 AM
Trying to build the gspca from a source deb. Error 2 happens whether I do from make, sudo make install or sudo m-a prepare and then sudo m-a a-i gspca. Here is the latter output log:

dh_testdir
dh_testroot
dh_clean
/usr/bin/make -C /usr/src/modules/gspca clean
make[1]: Entering directory `/usr/src/modules/gspca'
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
.gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
*.symvers *.err
make[1]: Leaving directory `/usr/src/modules/gspca'
/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory `/usr/src/modules/gspca'
dh_testdir
dh_testroot
dh_clean
/usr/bin/make -C /usr/src/modules/gspca clean
make[2]: Entering directory `/usr/src/modules/gspca'
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
.gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
*.symvers *.err
make[2]: Leaving directory `/usr/src/modules/gspca'
for templ in ; do \
cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.31-9-generic/g'` ; \
done
for templ in `ls debian/*.modules.in` ; do \
test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \
sed -e 's/##KVERS##/2.6.31-9-generic/g ;s/#KVERS#/2.6.31-9-generic/g ; s/_KVERS_/2.6.31-9-generic/g ; s/##KDREV##/2.6.31-9.29/g ; s/#KDREV#/2.6.31-9.29/g ; s/_KDREV_/2.6.31-9.29/g ' < $templ > ${templ%.modules.in}; \
done
dh_testdir
dh_testroot
dh_clean -k
# Build the module
/usr/bin/make -C /usr/src/modules/gspca KERNEL_VERSION=2.6.31-9-generic KERNELDIR=/usr/src/linux-headers-2.6.31-9-generic
make[2]: Entering directory `/usr/src/modules/gspca'
/usr/bin/make -C /usr/src/linux-headers-2.6.31-9-generic SUBDIRS=/usr/src/modules/gspca CC=gcc modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.31-9-generic'
scripts/Makefile.build:49: *** CFLAGS was changed in "/usr/src/modules/gspca/Makefile". Fix it to use EXTRA_CFLAGS. Stop.
make[3]: *** [_module_/usr/src/modules/gspca] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.31-9-generic'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/usr/src/modules/gspca'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/gspca'
make: *** [kdist_build] Error 2

jesterthejedi
September 6th, 2009, 10:09 AM
Bump
anyone know why this error is coming up?

jesterthejedi
September 14th, 2009, 02:04 AM
solved by using:

make distclean
make clean
make menuconfig, and only installing what i needed

ran a normal install with:
sudo make install

now working on karmic!

y-u-h
November 1st, 2009, 05:41 PM
a little question from noob :o
1. 'make clean' works but 'make distclean' and 'make menuconfig' doesn't work:
step0@bubu-ntu:~/Загрузки/gspcav1-20071224$ make distclean
make: *** Нет правила для сборки цели `distclean'. Останов.
what can I do with my karmic?

hannibal_lecter
November 12th, 2009, 12:03 PM
Can you explain more about your procedure? thanks

jesterthejedi
November 16th, 2009, 02:19 AM
Try sudo for each of those and see if you still have errors. With the menuconfig I can edit what drivers to load with the install, that removed errors on compiling the source.