LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-16-2008, 05:02 PM   #1
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Rep: Reputation: 55
cannot compile qc-usb-messenger-1.7 in 12.1


Hello!
I am running Slackware-12.1 with kernel generic-smp-2.6.24.5-smp.
So far (on Slackware 12.0 with generic-smp-2.6.21.5) I used to successfully compile my webcam driver qc-usb-messenger-1.7:
http://home.mag.cx/messenger/source/...ger-1.7.tar.gz However, now I get the following error when compiling:

make -C "/lib/modules/2.6.24.5-smp/build" SUBDIRS="/home/marto/build/tmp/qc-usb-messenger-1.7" modules V=1 USER_OPT="-DHAVE_UTSRELEASE_H=1"
make[1]: Entering directory `/usr/src/linux-2.6.24.5'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /home/marto/build/tmp/qc-usb-messenger-1.7/.tmp_versions ; rm -f /home/marto/build/tmp/qc-usb-messenger-1.7/.tmp_versions/*


Any suggestions? Why did the 21.0 kernel work? What could I do? I hope there is a solution that does not require kernel compilation because I am daunted by such a perspective.

Regards,
Martin
 
Old 05-16-2008, 07:00 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Did you upgrade from 12.0 to 12.1 or did you install fresh? What kernel are you using? That test is just seeing if /usr/src/linux/2.6.24.5/include/linux/autoconf.h and /usr/src/linux/2.6.24.5/include/config/auto.conf exist. Do they (they should in a default Slackware 12.1 setup)?
 
Old 05-17-2008, 02:27 AM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Just cd into the kernel sources at /usr/src/linux-2.6.24.5 and run:
'make oldconfig'
This should generate the missing files which the driver module sources are looking for.
 
Old 05-17-2008, 04:30 AM   #4
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by gnashley View Post
Just cd into the kernel sources at /usr/src/linux-2.6.24.5 and run:
'make oldconfig'
This should generate the missing files which the driver module sources are looking for.
I did that, but the missing file /usr/src/linuc-2.6.24.5/include/config/autoconf.h did not appear. I also ran "make prepare" as suggested in the error message but the file still is not there and the compile is unsuccessful.
 
Old 05-18-2008, 03:22 AM   #5
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Does someone have an idea how to get the
/usr/src/linuc-2.6.24.5/include/config/autoconf.h

file? It seems that this is the problem with the compilation of the driver. I made a fresh Slackware-12.1 install. Do you have this file on your systems?
 
Old 05-18-2008, 11:14 AM   #6
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Is it safe running "make oldconfig" and "make prepare"? I am not familiar with kernel compilation and would at least like to know whether running these two commands on my system has harmed something.

Regards,
Martin
 
Old 05-18-2008, 12:27 PM   #7
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
I would remove and reinstall the kernel source package.

Code:
bash-3.1$ grep autoconf.h /var/log/packages/kernel-source-2.6.24.5_smp-noarch-2 
usr/src/linux-2.6.24.5/include/linux/autoconf.h
 
Old 05-18-2008, 12:28 PM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Yes, it safe -the commands just create the default configuration files. Be sure that you only run those commands -don't run 'make clean' or 'make distclean'. 'make distclean' will specifically destroy the two files that qc is looking for.
 
Old 05-18-2008, 01:16 PM   #9
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Thank you for your replies.
I got a little further. Actually the compilation errors are not due to the missing files in the message: in fact the files are in place. The problem comes from incompatibility of the driver with kernels 2.6.24:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=456490

They have provided 2 patches there,
http://bugs.debian.org/cgi-bin/bugre...t=1;bug=456490
and
http://bugs.debian.org/cgi-bin/bugre...t=2;bug=456490
but I have no idea how to apply them in Slackware.

Thanks,
Martin
 
Old 05-19-2008, 01:58 AM   #10
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
I suspected ther might be a patch needed. I tried yesterday to find out a little more about the problem, but since I don't have video hardware and don't run kernel 2.5 it was a little hard to get definitive results.
The patches you linked to are for the full qc-usb-0.6.6 sources. I've modified them so that they apply cleanly to the qc-usc-messenger-1.7 sources.

I'll post the full content here since they are short. To apply them, simply unpack the sources normally and copy the patches into the toplevel directory of the sources. Then apply them with:

patch -p1 < k2_6_24-compat.diff
patch -p1 < dont-install-qcset.diff

k2_6_24-compat.diff:
Code:
--- ./quickcam.h.00	2007-09-02 20:56:45.000000000 +0200
+++ ./quickcam.h	2008-05-19 03:25:51.000000000 +0200
@@ -159,9 +159,11 @@
 #define FALSE			0
 #define TRUE			(!FALSE)
 typedef unsigned char Bool;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
 #ifndef BIT
 #define BIT(x)		(1<<(x))
 #endif
+#endif
 #define SIZE(a)		(sizeof(a)/sizeof((a)[0]))
 #define MAX(a,b)	((a)>(b)?(a):(b))
 #define MIN(a,b)	((a)<(b)?(a):(b))
--- ./qc-driver.c.00	2007-09-02 20:51:16.000000000 +0200
+++ ./qc-driver.c	2008-05-19 03:27:59.000000000 +0200
@@ -849,7 +849,9 @@
 			 qc,
 			 16);
 #else
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
 	spin_lock_init(&urb->lock);
+#endif
 	urb->dev                    = qc->dev;
 	urb->context                = qc;
 	urb->pipe                   = usb_rcvintpipe(qc->dev, qc->bEndpointAddress);
@@ -1585,7 +1587,9 @@
 	memset(fd->rawdatabuf, 0, FRAME_DATASIZE * FRAME_BUFFERS);	/* Never let user access random kernel data */
 	fd->head       = 0;		/* First buffer to fill */
 	fd->tail       = 0;		/* First buffer to get */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
 	spin_lock_init(&fd->tail_lock);
+#endif
 	fd->tail_in_use= FALSE;
 	init_waitqueue_head(&fd->wq);
 	fd->waiting    = 0;
dont-install-qcset.diff:
Code:
--- ./Makefile.01	2006-10-14 23:23:07.000000000 +0200
+++ ./Makefile	2008-05-19 03:35:12.000000000 +0200
@@ -177,7 +177,7 @@
 .PHONY: install
 install: $(MODULE_NAME) qcset input_read
 	$(INSTALL) -c -D -m 644 $(MODULE_NAME) $(MODULE_DIR)/misc/$(MODULE_NAME)
-	$(INSTALL) -c -D -m 755 qcset $(PREFIX)/bin/qcset
+#	$(INSTALL) -c -D -m 755 qcset $(PREFIX)/bin/qcset
 	-$(DEPMOD) -a
 
 qcset: qcset.c quickcam.h
Try those and see if it all works.
 
Old 05-19-2008, 03:59 AM   #11
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Gnashley,
Thank you really very much for your responsiveness. I applied the patches as you suggested but I got the same compilation errors afterwards:

/home/marto/build/qc-usb/qc-usb-messenger-1.7/qc-driver.c:3484: error: unknown field 'hardware' specified in initializer
/home/marto/build/qc-usb/qc-usb-messenger-1.7/qc-driver.c: In function 'qc_usb_init':
/home/marto/build/qc-usb/qc-usb-messenger-1.7/qc-driver.c:3661: error: implicit declaration of function 'LONG'
/home/marto/build/qc-usb/qc-usb-messenger-1.7/qc-driver.c:3661: warning: left shift count >= width of type
/home/marto/build/qc-usb/qc-usb-messenger-1.7/qc-driver.c:3668: warning: ignoring return value of 'input_register_device', declared with attribute warn_unused_result
make[2]: *** [/home/marto/build/qc-usb/qc-usb-messenger-1.7/qc-driver.o] Error 1
make[1]: *** [_module_/home/marto/build/qc-usb/qc-usb-messenger-1.7] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24.5'
make: *** [quickcam.ko] Error 2

Anyway, I found that the default quickcam driver that the generic kernel loads is actually quite good. The video image is of a comparable quality (if not even better) than that of the driver I was desperately trying to compile .

I have one more question to ask here. As I am a bit paranoiac about my system, I would like to know what exactly the succession of the following two commands does when issued in the /usr/src/linux-2.6.24.5 directory:

make oldconfig
make prepare

You said that this has made no harm, but I would like to know what modifications they have done to the stock 12.1 system. I can see that the folders include/ and .tmp-version/ and the files .missing-syscalls.d and .config have been modified when I issued the commands. Have other files in the system also been affected? Does this somehow affect the functionality of the system? Most of all I am interested whether it affects software that I compile. I could have installed afresh to make sure that everything is ok, but I think it is more valuable to learn something new than to just reinstall. I would be thankful if you also direct me to some relevant literature.

Regards,
Martin
 
Old 05-19-2008, 10:48 AM   #12
simonb1975uk
Member
 
Registered: Jan 2004
Location: In the county of Essex, UK
Posts: 72

Rep: Reputation: 15
You might have more luck with Michel Xhaard's drivers, I know I did. His web site can be found at: http://mxhaard.free.fr/
 
Old 11-17-2009, 11:05 PM   #13
rojoblandino
LQ Newbie
 
Registered: Nov 2007
Distribution: SuSE Debian
Posts: 22

Rep: Reputation: 0
gspca may work try it

I am a new user here in this forum and i saw this old post, i know it is old and the owner did not answer if it worked or not, so i just want to share for other users that could have the same problem that i had the same problem and I solve it using the gspca driver the driver simonb1975uk said, to give details I am using debian lenny amd64 and a Logitech Express, I just execute the next command:

apt-get install gspca-modules-2.6.26-2-amd64

And everything work as magic.

My kernel is 2.6.26 I think I had the same problem but I found in the web site my webcam was supported by this driver so I give it a try and averithing work well. Maybe it work for you, another thing I installed from the repository came with my distro i download all the 6 DVD's.

The url where you can look if your webcam is supported by this driver is this http://mxhaard.free.fr/spca5xx.html

So have fun!

Last edited by rojoblandino; 11-17-2009 at 11:06 PM.
 
Old 11-18-2009, 01:56 AM   #14
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by rojoblandino View Post
I am using debian lenny amd64 and a Logitech Express, I just execute the next command:

apt-get install gspca-modules-2.6.26-2-amd64
The problem is that my webcam is not express, it Logitech Quickcam Messenger and is recognized as 046d:08f0. This particular kind of camera does not seem to be supported by the driver you mention, at least according to the documentation. Correct me if I am wrong.
 
Old 11-19-2009, 10:17 AM   #15
rojoblandino
LQ Newbie
 
Registered: Nov 2007
Distribution: SuSE Debian
Posts: 22

Rep: Reputation: 0
Supports are growing

Quote:
Originally Posted by tramni1980 View Post
The problem is that my webcam is not express, it Logitech Quickcam Messenger and is recognized as 046d:08f0. This particular kind of camera does not seem to be supported by the driver you mention, at least according to the documentation. Correct me if I am wrong.
And have you try it lately?, some time ago this driver did not work for me, but i just try two days ago and i found my camera supported by this driver

I found this line:

Logitech 212 0x046d 0x08da QuickCam Messenger Brutus zc030x Tas5130c Yes Jpeg spca5xx/LE ****

Is a Logitech QuickCam Messenger with another Product Id, but try it again. Maybe can use this!
 
  


Reply


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
Kernel Compile for USB Wireless Keyboard/Mouse Combo veritos Linux - Kernel 3 08-31-2006 12:37 AM
How can i use MSN Messenger or Yahoo Messenger in slack ware ruzvay Linux - Software 8 02-16-2006 12:42 PM
usb thumbdrive after kernel compile : slackware youknowwho Linux - Hardware 0 01-10-2005 09:32 PM
no sound except as root, no usb or hotplugging after 2.6 compile surfinhicdude Slackware 5 05-04-2004 04:30 AM
Instant messenger Chat Kopete mandrake linux yahoo and MSN messenger saurya_s Linux - Software 1 11-22-2003 01:05 PM

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

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