Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106007 - svgalib-1.9.21-r1 fails to build kernel module with FEATURES=userpriv
Summary: svgalib-1.9.21-r1 fails to build kernel module with FEATURES=userpriv
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-14 14:53 UTC by MickKi
Modified: 2005-10-13 06:13 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MickKi 2005-09-14 14:53:53 UTC
svgalib-1.9.21-r1 fails to emerge

Reproducible: Always
Steps to Reproduce:
1.emerge -uDv svgalib-1.9.21-r1
2.
3.

Actual Results:  
i686-pc-linux-gnu-gcc -Wall -Wstrict-prototypes -fPIC -I../include -I. -I../src 
-O2 -march=pentium3 -fomit-frame-pointer -pipe -I../gl   -c -o wrapdemo.o 
wrapdemo.c
wrapdemo.c:495: warning: return type of `main' is not `int'
i686-pc-linux-gnu-gcc -Wall -Wstrict-prototypes -fPIC -I../include -I. -I../src 
-O2 -march=pentium3 -fomit-frame-pointer -pipe -I../gl   -L../sharedlib -o 
wrapdemo wrapdemo.c 3dinit.o 3dkit.o quickmath.o swtriangle.o triangl.o 
triangle.o wrapsurf.o wtriangle.o -lm -lvgagl -lvga
wrapdemo.c:495: warning: return type of `main' is not `int'
# chown root wrapdemo
# chmod u+s wrapdemo
make[1]: Leaving directory `/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.
21/threeDKit'
 * Preparing svgalib_helper module
make -C /usr/src/linux SUBDIRS=/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-
1.9.21/kernel/svgalib_helper CLASS_CFLAGS=-DCLASS_SIMPLE=1 modules
make[1]: Entering directory `/usr/src/linux-2.6.12-gentoo-r10'
Makefile:1262: ..tmp_kallsyms1.o.cmd: Permission denied
Makefile:1262: ..tmp_kallsyms2.o.cmd: Permission denied
Makefile:1262: ..tmp_vmlinux1.cmd: Permission denied
Makefile:1262: ..tmp_vmlinux2.cmd: Permission denied
Makefile:1262: .vmlinux.cmd: Permission denied
  CC [M]  /var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/
svgalib_helper/main.o
In file included from /var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/
kernel/svgalib_helper/main.c:33:
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/
kernel26compat.h:2:28: linux/version.h: No such file or directory
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/
kernel26compat.h:4:40: missing binary operator before token "("
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/
kernel26compat.h:40:40: missing binary operator before token "("
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/
main.c:530:41: missing binary operator before token "("
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/
main.c: In function `svgalib_helper_mmap':
/var/tmp/portage/svgalib-1.9.21-r1/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-r1/work/svgalib-1.9.21/kernel/svgalib_helper/
main.c:542:41: missing binary operator before token "("
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/
main.c:551:41: missing binary operator before token "("
make[2]: *** [/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/
svgalib_helper/main.o] Error 1
make[1]: *** [_module_/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/
kernel/svgalib_helper] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.12-gentoo-r10'
make: *** [default] Error 2

!!! ERROR: media-libs/svgalib-1.9.21-r1 failed.
!!! Function linux-mod_src_compile, Line 460, Exitcode 2
!!! Unable to make                                  KDIR=/usr/src/linux default.


# emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r1, 2.6.
12-gentoo-r10 i686)
=================================================================
System uname: 2.6.12-gentoo-r10 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
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.6
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=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/
share/config /usr/kde/3.3/shutdown /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 
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict userlocales 
userpriv usersandbox"
GENTOO_MIRRORS="ftp://194.117.143.71/mirrors/gentoo ftp://194.117.143.69/
mirrors/gentoo http://194.117.143.71 http://mirror.uni-c.dk/pub/gentoo/ http://
194.117.143.72 ftp://194.117.143.72/mirrors/gentoo http://194.117.143.69"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aac aalib alsa apm arts avi berkdb bitmap-fonts crypt cups curl eds 
emboss encode fam flac foomaticdb fortran gd gdbm gif gpm gstreamer gtk2 
imagemagick imlib jpeg kde libg++ libwww live mad mikmod motif mp3 mpeg ncurses 
nls nptl nptlonly nsplugin ogg oggvorbis ooo-kde opengl oss pam pdflib perl png 
ppds python qt quicktime readline real scanner sdl spell ssl svga tcpd tiff 
truetype truetype-fonts type1-fonts usb vorbis win32codecs xine xml2 xmms xv 
zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 SpanKY gentoo-dev 2005-09-14 18:12:19 UTC
have you run `make` in /usr/src/linux yet ?
Comment 2 MickKi 2005-09-14 23:41:43 UTC
Yep, I've already built the kernel I'm now running:
================================
# uname -a
Linux study1 2.6.12-gentoo-r10 #1 Sun Sep 11 21:13:22 GMT 2005 i686 Pentium III 
(Coppermine) GenuineIntel GNU/Linux
# ls -la /usr/src
total 3
drwxr-xr-x   4 root root  176 Sep 11 17:33 .
drwxr-xr-x  16 root root  528 Aug 24 20:33 ..
-rw-r--r--   1 root root    0 Aug 24 20:33 .keep
lrwxrwxrwx   1 root root   32 Sep 11 17:33 linux -> /usr/src/linux-2.6.12-
gentoo-r10
drwxr-xr-x  19 root root 1248 Sep 11 21:13 linux-2.6.12-gentoo-r10
drwxr-xr-x  19 root root 1248 Sep 11 09:45 linux-2.6.12-gentoo-r9
================================
Could it be something to do with access rights that the ebuild requires/assumes?
-- 
Regards,
Mick
Comment 3 SpanKY gentoo-dev 2005-09-15 05:46:23 UTC
well, if you run `make -C /usr/src/linux` and then run `emerge svgalib` does it
work ?

if not, what if you remove userpriv and usersandbox from FEATURES ?
Comment 4 MickKi 2005-09-16 13:23:58 UTC
Thanks SpanKY,

I managed to emerge it after removing userpriv and usersandbox.  Is there a
simple explanation for why this is so?  What puzzles me is that the previous
stable ebuild did not have such problems...
-- 
Regards,
Mick
Comment 5 SpanKY gentoo-dev 2005-09-16 13:36:19 UTC
previous stable did not use the kernel eclasses for building the module
Comment 6 Didier Barvaux 2005-09-17 03:39:12 UTC
I have a similar bug here. svgalib-1.9.21-r1 fails to emerge.
 
Reproducible: Always
Steps to Reproduce:
1. emerge -av =media-libs/svgalib-1.9.21-r1
2.
3.

Actual Results:  
--------------------------------------------------------------------------
These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] media-libs/svgalib-1.9.21-r1 [1.9.19-r3] -build -no-helper 0 kB 

Total size of downloads: 0 kB

Do you want me to merge these packages? [Yes/No] yes

[snip]

 * Preparing svgalib_helper module
make -C /usr/src/linux
SUBDIRS=/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper
CLASS_CFLAGS=-DCLASS_SIMPLE=1 modules
make[1]: Entering directory `/usr/src/linux-2.6.12-gentoo-r10'

  WARNING: Symbol version dump /usr/src/linux-2.6.12-gentoo-r10/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M] 
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/main.o
  CC [M] 
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/i810.o
  CC [M] 
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/interrupt.o
  CC [M] 
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/virtual.o
  CC [M] 
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/displaystart.o
  LD [M] 
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/svgalib_helper.o
  Building modules, stage 2.
  MODPOST
/bin/sh: scripts/mod/modpost: Aucun fichier ou r
Comment 7 Didier Barvaux 2005-09-17 03:39:12 UTC
I have a similar bug here. svgalib-1.9.21-r1 fails to emerge.
 
Reproducible: Always
Steps to Reproduce:
1. emerge -av =media-libs/svgalib-1.9.21-r1
2.
3.

Actual Results:  
--------------------------------------------------------------------------
These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] media-libs/svgalib-1.9.21-r1 [1.9.19-r3] -build -no-helper 0 kB 

Total size of downloads: 0 kB

Do you want me to merge these packages? [Yes/No] yes

[snip]

 * Preparing svgalib_helper module
make -C /usr/src/linux
SUBDIRS=/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper
CLASS_CFLAGS=-DCLASS_SIMPLE=1 modules
make[1]: Entering directory `/usr/src/linux-2.6.12-gentoo-r10'

  WARNING: Symbol version dump /usr/src/linux-2.6.12-gentoo-r10/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M] 
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/main.o
  CC [M] 
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/i810.o
  CC [M] 
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/interrupt.o
  CC [M] 
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/virtual.o
  CC [M] 
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/displaystart.o
  LD [M] 
/var/tmp/portage/svgalib-1.9.21-r1/work/svgalib-1.9.21/kernel/svgalib_helper/svgalib_helper.o
  Building modules, stage 2.
  MODPOST
/bin/sh: scripts/mod/modpost: Aucun fichier ou répertoire de ce type
make[2]: *** [__modpost] Erreur 127
make[1]: *** [modules] Erreur 2
make[1]: Leaving directory `/usr/src/linux-2.6.12-gentoo-r10'
make: *** [default] Erreur 2

!!! ERROR: media-libs/svgalib-1.9.21-r1 failed.
!!! Function linux-mod_src_compile, Line 460, Exitcode 2
!!! Unable to make                                  KDIR=/usr/src/linux default.
!!! If you need support, post the topmost build error, NOT this status message.

--------------------------------------------------------------------------
 
# emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r1,
2.6.12-gentoo-r10 i686)
=================================================================
System uname: 2.6.12-gentoo-r10 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.6.13
dev-lang/python:     2.2.3-r5, 2.3.5-r2
sys-apps/sandbox:    1.2.12
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.6
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="-march=athlon -mcpu=athlon -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb
/usr/lib/mozilla/defaults/pref /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/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -mcpu=athlon -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo
ftp://trumpetti.atm.tut.fi/gentoo/
ftp://ftp.ipv6.uni-muenster.de/pub/linux/distributions/gentoo
ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/
ftp://mirror.switch.ch/mirror/gentoo/"
LANG="fr_FR@euro"
LC_ALL="fr_FR@euro"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib acl alsa apm avi bash-completion berkdb bitmap-fonts
bonobo cdr cjk crypt cscope cups curl droproot dvd eds emboss encode esd fam
ffmpeg flac foomaticdb fortran gdbm gif gnome gnutls gphoto2 gpm gstreamer gtk
gtk2 gtkhtml guile imagemagick imlib ipv6 java jpeg junit ldap libg++ libwww mad
mikmod mmx mng motif mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg
mysql ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl png python
quicktime readline ruby scanner sdl slang spell sqlite ssl svg svga tcltk tcpd
tetex tiff truetype truetype-fonts type1-fonts vorbis xine xml xml2 xmms xv xvid
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS

Comment 8 Daniel Drake (RETIRED) gentoo-dev 2005-09-17 10:16:56 UTC
Didier, that looks like a different problem since you don't have userpriv in
your FEATURES. It also looks like the fact your kernel at /usr/src/linux hasn't
been fully compiled is the reason behind the problem.
Comment 9 MickKi 2005-09-17 11:25:21 UTC
Thanks SpanKY, my emerge problem is obviously solved, but I do not know if 
there's a check for FEATURES that need to take place as part of the ebuild and 
either userpriv gets switched off for the duration of the emerge, or a WARNING 
pops up while the emerge is stalled awaiting user input?  What I'm saying is 
that I don't know if this classifies as a bug anymore, or if it should be closed 
out.
-- 
Regards,
Mick
Comment 10 John Mylchreest (RETIRED) gentoo-dev 2005-10-13 06:13:15 UTC
I'll close invalid since I cant see any real cause of a bug here.
Please re-open if you feel this is incorrect.