emerge svgalib (media-libs/svgalib-1.9.19-r3) failes with the following last lines: /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:390: error: `MOD_INC_USE_COUNT' undeclared (first use in this function) /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:390: error: (Each undeclared identifier is reported only once /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:390: error: for each function it appears in.) /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c: In function `svgalib_helper_release': /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:411: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function) /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:463:55: macro "io_remap_page_range" requires 5 arguments, but only 4 given /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c: In function `remap_cache': /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:462: error: `io_remap_page_range' undeclared (first use in this function) /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c: In function `svgalib_helper_mmap': /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:516: error: structure has no member named `vm_offset' /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c: In function `init_module': /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:556: warning: implicit declaration of function `devfs_register_chrdev' /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:595: warning: implicit declaration of function `pci_present' /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:598: warning: implicit declaration of function `pci_find_class' /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:598: warning: pointer/integer type mismatch in conditional expression /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:664: error: `EXPORT_NO_SYMBOLS' undeclared (first use in this function) /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:680: warning: implicit declaration of function `devfs_unregister_chrdev' make[2]: *** [/var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.o] Error 1 make[1]: *** [_module_/var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.13-rc3-mm1' make: *** [default] Error 2 !!! ERROR: media-libs/svgalib-1.9.19-r3 failed. !!! Function src_compile, Line 97, Exitcode 2 !!! Failed to build kernel module! !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. emerge svgalib 2. 3. Actual Results: Build Error Expected Results: Emerge smoothly Linux Gentoo, gcc 3.4.4 on 2.6.13-rc3-mm1 PREEMPT kernel
There's an unstable svgalib-1.9.21 in portage. Would you like to try that?
hi with that version, the errors still appear: In file included from /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/interrupt.c:5: /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/svgalib_helper.h:31: error: field `tq_startad' has incomplete type make[2]: *** [/var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/interrupt.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c:35: /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/svgalib_helper.h:31: error: field `tq_startad' has incomplete type /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c: In function `svgalib_helper_ioctl': /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c:365: warning: implicit declaration of function `schedule_task' /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c: In function `svgalib_helper_open': /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c:406: error: `MOD_INC_USE_COUNT' undeclared (first use in this function) /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c:406: error: (Each undeclared identifier is reported only once /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c:406: error: for each function it appears in.) /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c: In function `svgalib_helper_release': /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c:427: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function) /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c:477:55: macro "io_remap_page_range" requires 5 arguments, but only 4 given /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c: In function `remap_cache': /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c:476: error: `io_remap_page_range' undeclared (first use in this function) /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c: In function `svgalib_helper_mmap': /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c:533: error: structure has no member named `vm_offset' /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c: In function `init_module': /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c:573: warning: implicit declaration of function `devfs_register_chrdev' /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c:609: warning: implicit declaration of function `pci_present' /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c:612: warning: implicit declaration of function `pci_find_class' /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c:612: warning: pointer/integer type mismatch in conditional expression /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c:678: error: `EXPORT_NO_SYMBOLS' undeclared (first use in this function) /var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.c:693: warning: implicit declaration of function `devfs_unregister_chrdev' make[2]: *** [/var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper/main.o] Error 1 make[1]: *** [_module_/var/tmp/portage/svgalib-1.9.21/work/svgalib-1.9.21/kernel/svgalib_helper] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.13-rc3-mm1' make: *** [default] Error 2
you neglected to post `emerge info`
indeed, sorry about that here it comes: lap_place ~ # emerge info Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-rc3-mm1 i686) ================================================================= System uname: 2.6.13-rc3-mm1 i686 Intel(R) Pentium(R) M processor 1600MHz Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.10 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LINGUAS="de en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 X a52 acpi alsa apache2 apm arts avi berkdb bitmap-fonts bluetooth cdr crypt cups curl divx4linux dv dvd dvdread emboss encode fam fame flac foomaticdb fortran gd gdbm gif gphoto2 hal imagemagick imlib java jpeg kde libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg mysql ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl spell sse sse2 ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts vorbis xine xml2 xmms xv zlib linguas_de linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
I don't know if it helps, but you could try to rebuild your kernel in /usr/src/linux. Maybe svgalib needs some things in your kernel configured right. Don't ask me what, but if you want I can send you my ".config"-File.
Ran into the same problem. Workaround: configure your kernel and run "make modules; make modules_install" in /usr/src/linux. This will create some include paths under /lib/modules that svgalib needs to compile main.c. The ebuild should probably throw an error if /lib/modules/<version>/build/include doesn't exist.
svgalib uses linux-mod to compile now ...
Please attach the full output from emerge.
Please reopen when you respond to comment #8
Created attachment 68292 [details] emerge log of "emerge svgalib" I didn't want to paste all the lines as a comment, so I added an attachement (cleartext), got it with the command "emerge svgalib | less -o svgalib.dump
I reopen the bug, because I added the complete emerge log as an attachement
That doesn't look correct - digest checking after the thing has been compiled? There aren't any errors in the log either. Please log it in this way: emerge =svgalib-1.9.21 > logfile 2>&1
Created attachment 68375 [details] here the full emerge output with the error at the end I am very sorry for the inconveniences, the log really didn't hold it all, attached now is the full emerge log with error at the end By the way: The version I am having in portage is svgalib-1.9.19-r3 Best regards
so does 1.9.21 work ?
Created attachment 68472 [details] this is now the log with the build: svgalib-1.9.21 the same error is appearing
it looks like your `/usr/src/linux-2.6.13-rc3-mm1' is screwed up `tq_startad' is only used if your linux/version.h is reporting a kernel version less than 2.6.0 review the file /usr/src/linux-2.6.13-rc3-mm1/include/linux/version.h and make sure it has valid settings