Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
new kernel, module-rebuild error on svgalib(SOLVED)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pstar
Apprentice
Apprentice


Joined: 22 Nov 2007
Posts: 189

PostPosted: Thu Dec 06, 2007 4:51 am    Post subject: new kernel, module-rebuild error on svgalib(SOLVED) Reply with quote

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
View user's profile Send private message
Tin
Guru
Guru


Joined: 22 Dec 2005
Posts: 305
Location: Namur, Belgium

PostPosted: Thu Dec 06, 2007 8:53 am    Post subject: Reply with quote

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
View user's profile Send private message
pstar
Apprentice
Apprentice


Joined: 22 Nov 2007
Posts: 189

PostPosted: Thu Dec 06, 2007 7:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
SunHateR
Tux's lil' helper
Tux's lil' helper


Joined: 13 Aug 2004
Posts: 79

PostPosted: Tue Dec 11, 2007 2:16 pm    Post subject: Reply with quote

I have the same problem. USE="no-helper" is not solution for me.
Back to top
View user's profile Send private message
adrislayer
n00b
n00b


Joined: 16 Aug 2005
Posts: 48

PostPosted: Sun Dec 16, 2007 7:39 pm    Post subject: Reply with quote

the no-helper flag worked for me, thanks
Back to top
View user's profile Send private message
hadoque
Apprentice
Apprentice


Joined: 09 Sep 2004
Posts: 150
Location: Stockholm, Sweden

PostPosted: Tue Dec 18, 2007 9:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Tin
Guru
Guru


Joined: 22 Dec 2005
Posts: 305
Location: Namur, Belgium

PostPosted: Wed Dec 19, 2007 10:56 am    Post subject: Reply with quote

For the moment, no problem met with the -build flag :-)
_________________
Tin, the gentoobie
Back to top
View user's profile Send private message
cdstealer
Guru
Guru


Joined: 30 Oct 2005
Posts: 431
Location: Leeds

PostPosted: Sat Dec 22, 2007 9:13 pm    Post subject: Reply with quote

no-helper worked for me.. thanx..
_________________
# touch it
touch: cannot touch `it': Permission denied
Back to top
View user's profile Send private message
thewtex
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2007
Posts: 93

PostPosted: Thu Dec 27, 2007 6:57 am    Post subject: Reply with quote

there is a fixed ebuild available here:

https://bugs.gentoo.org/show_bug.cgi?id=195632

Not sure why it is taking sooooo long to get into the portage tree.
Back to top
View user's profile Send private message
hadoque
Apprentice
Apprentice


Joined: 09 Sep 2004
Posts: 150
Location: Stockholm, Sweden

PostPosted: Thu Dec 27, 2007 9:15 am    Post subject: Reply with quote

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
View user's profile Send private message
Logan11
n00b
n00b


Joined: 07 Mar 2007
Posts: 13
Location: X-Labs

PostPosted: Fri Dec 28, 2007 6:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
mansonmuni
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2004
Posts: 93

PostPosted: Sat Dec 29, 2007 12:43 am    Post subject: Reply with quote

I just tried to download the aforementioned ebuild, but can't access the page.
Back to top
View user's profile Send private message
mansonmuni
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2004
Posts: 93

PostPosted: Sat Dec 29, 2007 12:52 am    Post subject: Reply with quote

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
View user's profile Send private message
hadoque
Apprentice
Apprentice


Joined: 09 Sep 2004
Posts: 150
Location: Stockholm, Sweden

PostPosted: Sun Dec 30, 2007 9:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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