Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
spca5xx compile problems [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
imesg
Guru
Guru


Joined: 12 Jul 2002
Posts: 452

PostPosted: Sat Oct 28, 2006 6:41 pm    Post subject: spca5xx compile problems [SOLVED] Reply with quote

Looks like two problems.

Kernel version: Linux version 2.6.19-rc2 (root@wx) (gcc version 4.1.1 (Gentoo 4.1.1-r1)) #4 PREEMPT Fri Oct 27 08:36:47 CDT 2006

Looks like a sandbox problem also.

>>> Compiling source in /var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501 ...
* Preparing spca5xx module
Building SPCA5XX driver for 2.5/2.6 kernel.
Remember: you must have read/write access to your kernel source tree.
make -C /usr/src/linux M=/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501 CC=i686-pc-linux-gnu-gcc modules
make[1]: Entering directory `/usr/src/linux-2.6.19-rc2'
CC [M] /var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.o
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:39:26: error: linux/config.h: No such file or directory
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca50x_init_isoc':
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:1621: warning: assignment from incompatible pointer type
make[2]: *** [/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.o] Error 1
make[1]: *** [_module_/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.19-rc2'
make: *** [default] Error 2

!!! ERROR: media-video/spca5xx-20060501-r1 failed.
Call stack:
ebuild.sh, line 1568: Called dyn_compile
ebuild.sh, line 937: Called src_compile
ebuild.sh, line 1261: Called linux-mod_src_compile
linux-mod.eclass, line 482: Called die

!!! Unable to make KERNELDIR=/usr/src/linux default.
!!! If you need support, post the topmost build error, and the call stack if relevant.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-media-video_-_spca5xx-20060501-r1-12488.log"

open_wr: /usr/src/linux-2.6.19-rc2/astest12567.out
open_wr: /usr/src/linux-2.6.19-rc2/astest12571.out
open_wr: /usr/src/linux-2.6.19-rc2/astest12578.out
open_wr: /usr/src/linux-2.6.19-rc2/astest12582.out
--------------------------------------------------------------------------------

Thanks for any help.


Last edited by imesg on Tue Dec 12, 2006 9:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
intgr
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 225
Location: Earth, Sol, Milky Way

PostPosted: Sat Oct 28, 2006 8:18 pm    Post subject: Reply with quote

I'm getting the same sandbox violation error as well; please keep me posted once you resolve it.

Using kernel linux-2.6.18-mm3, AMD64, GCC 4.1.1
Back to top
View user's profile Send private message
intgr
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 225
Location: Earth, Sol, Milky Way

PostPosted: Sat Oct 28, 2006 8:32 pm    Post subject: Re: spca5xx compile problems Reply with quote

imesg wrote:
Code:
  CC [M]  /var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.o
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:39:26: error: linux/config.h: No such file or directory
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca50x_init_isoc':
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:1621: warning: assignment from incompatible pointer type


Using spca5xx-20060501-r1 fixes this problem (available under ~arch keywords).

The sandbox violation still remains, though.
Back to top
View user's profile Send private message
tboloo
Guru
Guru


Joined: 20 Jan 2006
Posts: 403
Location: Grodzisq, Poland

PostPosted: Sat Oct 28, 2006 9:37 pm    Post subject: Reply with quote

spca5xx is abadoned due to gspcav for the never kernels, see http://mxhaard.free.fr/download.html for details.
_________________
The clock is ticking, brothers and sisters, counting down to Armageddon.
Back to top
View user's profile Send private message
intgr
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 225
Location: Earth, Sol, Milky Way

PostPosted: Sun Oct 29, 2006 9:58 am    Post subject: Reply with quote

And I get the exact same error with media-video/gspcav1-20060925.

Seems that these 'astestX.out' files are tests for the assembler command. Why the webcam driver would attempt to compile these outside its workdir, I have no idea.
scripts/Kbuild.include:
as-instr = $(shell if echo -e "$(1)" | $(AS) >/dev/null 2>&1 -W -Z -o astest$$$$.out ; \
                   then echo "$(2)"; else echo "$(3)"; fi; \
                   rm -f astest$$$$.out)
Back to top
View user's profile Send private message
intgr
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 225
Location: Earth, Sol, Milky Way

PostPosted: Sun Dec 03, 2006 3:35 pm    Post subject: Reply with quote

This workaround fixed it for me:
Code:
FEATURES='-sandbox -usersandbox userpriv' emerge gspcav1
When emerged with userpriv, the compile will take place under the portage user account, so the ebuild won't have write access to the kernel source directory. Without sandbox, this means that it won't get sandbox violation, but instead a 'permission denied' error, which it gracefully handles.

I'll proceed to see if I need to report a bug or not.
Back to top
View user's profile Send private message
intgr
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 225
Location: Earth, Sol, Milky Way

PostPosted: Sun Dec 03, 2006 4:33 pm    Post subject: Reply with quote

The bug I reported (Gentoo Bugzilla bug #156994) is not going to be fixed as it's claimed to be an inherent incompatibility in the non-Gentoo kernel sources (bug #149307).

Evidently, even the vanilla 2.6.19 is now plagued by this issue. The bug is claimed to be fixed in the git HEAD meaning that it's probably showing up in 2.6.20. Until then, gentoo-sources are already patched.
Back to top
View user's profile Send private message
imesg
Guru
Guru


Joined: 12 Jul 2002
Posts: 452

PostPosted: Mon Dec 11, 2006 3:25 am    Post subject: Reply with quote

intgr wrote:
This workaround fixed it for me:
Code:
FEATURES='-sandbox -usersandbox userpriv' emerge gspcav1
When emerged with userpriv, the compile will take place under the portage user account, so the ebuild won't have write access to the kernel source directory. Without sandbox, this means that it won't get sandbox violation, but instead a 'permission denied' error, which it gracefully handles.

I'll proceed to see if I need to report a bug or not.


I tried this and the access violation went away but not the other problem.

Thanks,

Gene
Back to top
View user's profile Send private message
intgr
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 225
Location: Earth, Sol, Milky Way

PostPosted: Mon Dec 11, 2006 2:37 pm    Post subject: Reply with quote

imesg wrote:
I tried this and the access violation went away but not the other problem.

Oh, you mean this one?
Code:
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:39:26: error: linux/config.h: No such file or directory
Make sure your /usr/src/linux symlink points to the right sources and that you have configured it (using 'make menuconfig', 'make oldconfig', etc, in the kernel source directory).
Back to top
View user's profile Send private message
imesg
Guru
Guru


Joined: 12 Jul 2002
Posts: 452

PostPosted: Mon Dec 11, 2006 5:09 pm    Post subject: Reply with quote

intgr wrote:
imesg wrote:
I tried this and the access violation went away but not the other problem.

Oh, you mean this one?
Code:
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:39:26: error: linux/config.h: No such file or directory
Make sure your /usr/src/linux symlink points to the right sources and that you have configured it (using 'make menuconfig', 'make oldconfig', etc, in the kernel source directory).



I thought it was this:

Code:
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca50x_init_isoc':
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:1621: warning: assignment from incompatible pointer type


However I am not sure exactly what the problem is.

Thanks,

Gene
Back to top
View user's profile Send private message
intgr
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 225
Location: Earth, Sol, Milky Way

PostPosted: Mon Dec 11, 2006 5:16 pm    Post subject: Reply with quote

imesg wrote:
I thought it was this:
Code:
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca50x_init_isoc':
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:1621: warning: assignment from incompatible pointer type

Nope, that's a warning. ;)
Back to top
View user's profile Send private message
imesg
Guru
Guru


Joined: 12 Jul 2002
Posts: 452

PostPosted: Tue Dec 12, 2006 9:04 pm    Post subject: Reply with quote

intgr wrote:
imesg wrote:
I thought it was this:
Code:
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca50x_init_isoc':
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c:1621: warning: assignment from incompatible pointer type

Nope, that's a warning. ;)


Well if you know why did you ask?

I fixed it by

Code:
removing the '#include <linux/config.h>' from gspca_core.c
Retarred it and put it back in /usr/portage/distfiles.
Then ebuild gscpav1-20060925.ebuild digest.
Then emerge gscpav1.


Thanks,

Gene
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum