View previous topic :: View next topic |
Author |
Message |
pstar Apprentice
Joined: 22 Nov 2007 Posts: 189
|
Posted: Thu Dec 06, 2007 4:51 am Post subject: new kernel, module-rebuild error on svgalib(SOLVED) |
|
|
Hi, I just update my kernel source to 2.6.23.r3 and recompiled my kernel and reboot into in works fine except when
I tried Code: | module-rebuild rebuild | , it will throw error when trying to emerge svgalib-1.9.25 with the following error message:
Code: | /var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/kernel26compat.h: In function ‘devfs_register_chrdev’:
/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/kernel26compat.h:76: error: implicit declaration of function ‘register_chrdev’
/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/kernel26compat.h: In function ‘devfs_unregister_chrdev’:
/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/kernel26compat.h:80: error: implicit declaration of function ‘unregister_chrdev’
make[2]: *** [/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/interrupt.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/main.c:47:
/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/kernel26compat.h: In function ‘devfs_unregister_chrdev’:
/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/kernel26compat.h:80: error: void value not ignored as it ought to be
/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/main.c: In function ‘svgalib_helper_ioctl’:
/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/main.c:363: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:64)
/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/main.c:363: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/main.c:363: warning: ignoring return value of ‘request_irq’, declared with attribute warn_unused_result
/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/main.c: In function ‘svgalib_helper_open’:
/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/main.c:451: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:64)
/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/main.c:451: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/main.c:451: warning: ignoring return value of ‘request_irq’, declared with attribute warn_unused_result
make[2]: *** [/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/main.o] Error 1
make[1]: *** [_module_/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.23-gentoo-r3'
make: *** [default] Error 2
*
* ERROR: media-libs/svgalib-1.9.25 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* svgalib-1.9.25.ebuild, line 78: Called linux-mod_src_compile
* linux-mod.eclass, line 518: Called die
* The specific snippet of code:
* emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \
* ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \
* || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}."
* The die message:
* Unable to make KDIR=/lib/modules/2.6.23-gentoo-r3/build default.
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/media-libs/svgalib-1.9.25/temp/build.log'.
*
* Messages for package media-libs/svgalib-1.9.25:
*
* ERROR: media-libs/svgalib-1.9.25 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* svgalib-1.9.25.ebuild, line 78: Called linux-mod_src_compile
* linux-mod.eclass, line 518: Called die
* The specific snippet of code:
* emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \
* ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \
* || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}."
* The die message:
* Unable to make KDIR=/lib/modules/2.6.23-gentoo-r3/build default.
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/media-libs/svgalib-1.9.25/temp/build.log'. |
I also tried emrege svgalib by hand with no luck.
As this is the first time I update my kernel, not sure did I missed something or it is a bug like these threads referred:
https://forums.gentoo.org/viewtopic-t-474978-highlight-svgalib.html
https://forums.gentoo.org/viewtopic-t-626555-highlight-svgalib.html
Thanks in advanced.
Last edited by pstar on Thu Dec 06, 2007 7:11 pm; edited 1 time in total |
|
Back to top |
|
|
Tin Guru
Joined: 22 Dec 2005 Posts: 305 Location: Namur, Belgium
|
Posted: Thu Dec 06, 2007 8:53 am Post subject: |
|
|
I succeeded to do it with the use flag "build"
USE="build" emerge -1 svgalib
Hope it will work for you too _________________ Tin, the gentoobie |
|
Back to top |
|
|
pstar Apprentice
Joined: 22 Nov 2007 Posts: 189
|
Posted: Thu Dec 06, 2007 7:10 pm Post subject: |
|
|
Tin wrote: | I succeeded to do it with the use flag "build"
USE="build" emerge -1 svgalib
Hope it will work for you too |
Thanks, but I read somewhere else that the build use 'flag' is not recommend, without fully understand why ,
I think I wouldn't try that first. But anyway the solution:
Code: | USE="no-helper" emerge -av svgalib |
works for me. it may be not a recommend solution either, but we will see. |
|
Back to top |
|
|
SunHateR Tux's lil' helper
Joined: 13 Aug 2004 Posts: 79
|
Posted: Tue Dec 11, 2007 2:16 pm Post subject: |
|
|
I have the same problem. USE="no-helper" is not solution for me. |
|
Back to top |
|
|
adrislayer n00b
Joined: 16 Aug 2005 Posts: 48
|
Posted: Sun Dec 16, 2007 7:39 pm Post subject: |
|
|
the no-helper flag worked for me, thanks |
|
Back to top |
|
|
hadoque Apprentice
Joined: 09 Sep 2004 Posts: 150 Location: Stockholm, Sweden
|
Posted: Tue Dec 18, 2007 9:18 pm Post subject: |
|
|
Using the no-helper flag disables the making of the helper module. Isn't the module central to using svga?
Anyways, I'm getting the exact same error as you guys with 2.6.23-gentoo-r3 kernel. Is there a solution yet?
And why is using the "Build" flag dangerous? Haven't seen any explanation to that. |
|
Back to top |
|
|
Tin Guru
Joined: 22 Dec 2005 Posts: 305 Location: Namur, Belgium
|
Posted: Wed Dec 19, 2007 10:56 am Post subject: |
|
|
For the moment, no problem met with the -build flag _________________ Tin, the gentoobie |
|
Back to top |
|
|
cdstealer Guru
Joined: 30 Oct 2005 Posts: 431 Location: Leeds
|
Posted: Sat Dec 22, 2007 9:13 pm Post subject: |
|
|
no-helper worked for me.. thanx.. _________________ # touch it
touch: cannot touch `it': Permission denied |
|
Back to top |
|
|
thewtex Tux's lil' helper
Joined: 22 Jun 2007 Posts: 93
|
|
Back to top |
|
|
hadoque Apprentice
Joined: 09 Sep 2004 Posts: 150 Location: Stockholm, Sweden
|
Posted: Thu Dec 27, 2007 9:15 am Post subject: |
|
|
I haven't added a custom ebuild before. When replacing it I get errors talking about the manifest file not matching the ebuild. How do I work around that? |
|
Back to top |
|
|
Logan11 n00b
Joined: 07 Mar 2007 Posts: 13 Location: X-Labs
|
Posted: Fri Dec 28, 2007 6:02 pm Post subject: |
|
|
hadoque wrote: | I haven't added a custom ebuild before. When replacing it I get errors talking about the manifest file not matching the ebuild. How do I work around that? |
Check this out:
http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds |
|
Back to top |
|
|
mansonmuni Tux's lil' helper
Joined: 03 Feb 2004 Posts: 93
|
Posted: Sat Dec 29, 2007 12:43 am Post subject: |
|
|
I just tried to download the aforementioned ebuild, but can't access the page. |
|
Back to top |
|
|
mansonmuni Tux's lil' helper
Joined: 03 Feb 2004 Posts: 93
|
Posted: Sat Dec 29, 2007 12:52 am Post subject: |
|
|
also this is from http://www.gentoo-portage.com/USE/ :
build !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used for creating build images and the first half of bootstrapping [make stage1] |
|
Back to top |
|
|
hadoque Apprentice
Joined: 09 Sep 2004 Posts: 150 Location: Stockholm, Sweden
|
Posted: Sun Dec 30, 2007 9:58 pm Post subject: |
|
|
Ok, with the new ebuild and the unregister_chrdev.patch it worked. Now the svgalib_helper driver is really there. So now it's truly solved!
Thanks for the help.. |
|
Back to top |
|
|
|