Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195381 - app-misc/lirc-0.8.2-r1: sandbox violations compiling against kernel 2.6.23
Summary: app-misc/lirc-0.8.2-r1: sandbox violations compiling against kernel 2.6.23
Status: RESOLVED DUPLICATE of bug 135745
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-10 14:12 UTC by Sebastian
Modified: 2007-10-10 16:35 UTC (History)
1 user (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 Sebastian 2007-10-10 14:12:18 UTC
Hello all,

pretty much during the beginning of the compilation I get this:

config.status: creating tools/Makefile
config.status: creating doc/Makefile
config.status: creating doc/man/Makefile
config.status: creating config.h
config.status: executing depfiles commands

You will have to use the lirc_serial kernel module.

Now enter 'make' and 'make install' to compile and install the package.

make  all-recursive
make[1]: Entering directory `/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2'
Making all in drivers
make[2]: Entering directory `/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers'
Making all in lirc_dev
make[3]: Entering directory `/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev'
mv Makefile Makefile.automake
cp ../Makefile.kernel Makefile
make -C /usr/src/linux/ SUBDIRS=/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev modules \
                KBUILD_VERBOSE=1
make[4]: Entering directory `/usr/src/linux-2.6.23'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (            \
        echo;                                                           \
        echo "  ERROR: Kernel configuration is invalid.";               \
        echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";      \
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
        echo;                                                           \
        /bin/false)
mkdir -p /var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/.tmp_versions
rm -f /var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev
  i686-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/.lirc_dev.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2  -march=athlon -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/asm-i386/mach-default -fomit-frame-pointer  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I../.. -I/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/../.. -I/usr/src/linux//include/ -I/usr/src/linux//drivers/media/video/  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_dev)"  -D"KBUILD_MODNAME=KBUILD_STR(lirc_dev)" -c -o /var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/lirc_dev.o /var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/lirc_dev.c
/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/lirc_dev.c: In Funktion »lirc_dev_init«:
/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/lirc_dev.c:883: Fehler: void-Wert nicht ignoriert wie es sein sollte
/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/lirc_dev.c: In Funktion »cleanup_module«:
/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/lirc_dev.c:910: Fehler: void-Wert nicht ignoriert wie es sein sollte
make[5]: *** [/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/lirc_dev.o] Fehler 1
make[4]: *** [_module_/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev] Fehler 2
make[4]: Leaving directory `/usr/src/linux-2.6.23'
make[3]: *** [lirc_dev.o] Fehler 2
make[3]: Leaving directory `/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2'
make: *** [all] Fehler 2
 *
 * ERROR: app-misc/lirc-0.8.2-r1 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   ebuild.sh, line 1334:   Called linux-mod_src_compile
 *   linux-mod.eclass, line 518:   Called die
 *
 * Unable to make   all.
 * 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/app-misc/lirc-0.8.2-r1/temp/build.log'.
 *
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-app-misc_-_lirc-0.8.2-r1-19417.log"

open_wr:   /usr/src/linux-2.6.23/null.gcda
open_wr:   /usr/src/linux-2.6.23/null.gcda
open_wr:   /usr/src/linux-2.6.23/null.gcda
open_wr:   /usr/src/linux-2.6.23/null.gcda
open_wr:   /usr/src/linux-2.6.23/null.gcda
open_wr:   /usr/src/linux-2.6.23/null.gcda
open_wr:   /usr/src/linux-2.6.23/null.gcda
open_wr:   /usr/src/linux-2.6.23/null.gcda
open_wr:   /usr/src/linux-2.6.23/null.gcda
open_wr:   /usr/src/linux-2.6.23/null.gcda
--------------------------------------------------------------------------------

Reproducible: Always

Steps to Reproduce:
1. Install 2.6.23 in /usr/src/linux and compile it / set it up
2. emerge lirc

Actual Results:  
lirc compilation fails with sandbox violations

Expected Results:  
lirc gets installed just fine :-)

Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22.9 i686)
=================================================================
System uname: 2.6.22.9 i686 AMD Sempron(tm) 2400+
Timestamp of tree: Mon, 08 Oct 2007 07:20:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/home/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo ftp://pandemonium.tiscali.de/pub/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/home/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="3dnow 3dnowext X aotuv cups dvdr fontconfig gdbm gif gnutls gs iconv jpeg kde kdeenablefinal logrotate mmx mmxext ncurses nls nptl nptlonly pccts pcre perl png pop ppds python readline smtp spell sse ssl svg threads tiff truetype unicode x86 xml xorg xpm zlib" ALSA_CARDS="ice1712" ALSA_PCM_PLUGINS="route" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 @4u 2007-10-10 14:40:33 UTC
Note: The sandbox bug is gcc-related BUT there are incompatibilities in lirc_dev.c. "lirc_dev_init ()" and "cleanup_module ()" seem to use a return value from kernel functions that now return nothing (void).

/usr/src/linux/fs/char_dev.c:void unregister_chrdev(unsigned int major, const char *name) for example in lirc_dev.c
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-10-10 16:35:46 UTC

*** This bug has been marked as a duplicate of bug 135745 ***