Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 454870 - x11-drivers/ati-drivers-13.1 with >=hardened-sources-3.7.1-r2: error: assignment of member ‘notifier_call’ in read-only object
Summary: x11-drivers/ati-drivers-13.1 with >=hardened-sources-3.7.1-r2: error: assignm...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-31 16:50 UTC by Hans
Modified: 2013-02-18 21:19 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,7.52 KB, text/plain)
2013-01-31 16:50 UTC, Hans
Details
kernel .config for hardened-sources-3.7.1-r1 (kernel-config-3.7.1-r1,59.31 KB, text/plain)
2013-01-31 16:51 UTC, Hans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hans 2013-01-31 16:50:00 UTC
Created attachment 337464 [details]
build.log

x11-drivers/ati-drivers-13.1 works with sys-kernel/hardened-sources-3.7.1-r1 (and below, IIRC), but fails with >=hardened-sources-3.7.1-r2 in the following way:

[...]
  CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-13.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o
/var/tmp/portage/x11-drivers/ati-drivers-13.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c: In function ‘KCL_ACPI_InstallLidHandler’:
/var/tmp/portage/x11-drivers/ati-drivers-13.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.c:430:9: error: assignment of member ‘notifier_call’ in read-only object
make[2]: *** [/var/tmp/portage/x11-drivers/ati-drivers-13.1/work/common/lib/modules/fglrx/build_mod/2.6.x/kcl_acpi.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/x11-drivers/ati-drivers-13.1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_CopyFromUserSpace’:
/var/tmp/portage/x11-drivers/ati-drivers-13.1/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1984:18: note: Function KCL_CopyFromUserSpace is missing from the size_overflow hash table +KCL_CopyFromUserSpace+3+27729+


I assume this stems from some changes in the hardened-patchset?
Comment 1 Hans 2013-01-31 16:51:55 UTC
Created attachment 337466 [details]
kernel .config for hardened-sources-3.7.1-r1

Portage 2.1.11.50 (hardened/linux/amd64, gcc-4.6.3, glibc-2.16.0, 3.7.1-hardened-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.7.1-hardened-r1-x86_64-AMD_Athlon-tm-_II_X2_245e_Processor-with-gentoo-2.2
KiB Mem:    10246124 total,   4481616 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Thu, 31 Jan 2013 12:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build --with-bdeps y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://mirror.netcologne.de/gentoo/  http://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://de-mirror.org/gentoo/"
INSTALL_MASK="/usr/share/calibre/fonts/liberation/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -Wl,-z,now -Wl,-z,relro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X alsa amd64 bluray bzip2 caps css cups custom-cflags custom-optimization dts dvd exif flac fontconfig gif hardened iconv idn inotify ipc ithreads jpeg libass lzma minimal mmx mmxext mp3 mpg123 mudflap multilib nls nptl ogg opengl openmp opus pam pax_kernel pdf png sse sse2 ssl symlink theora threads tiff truetype unicode usb vaapi vorbis xattr xft xmp zlib" CURL_SSL="openssl" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="de" PYTHON_SINGLE_TARGET="python3_2" PYTHON_TARGETS="python3_2 python2_7" SANE_BACKENDS="gt68xx" USERLAND="GNU" VIDEO_CARDS="fglrx radeon r600"
Unset:  CPPFLAGS, CTARGET, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================
USE="modules (multilib) qt4 -debug -disable-watermark -static-libs"

x11-drivers/ati-drivers-13.1 was built with the following:
Comment 2 Hans 2013-02-12 21:00:41 UTC
Still an issue with hardened-sources-3.7.6.

I find it strange that no one else seems to notice this.
Perhaps it is quite specific to my kernel .config; I plan to look into this a bit as soon as time permits.
Comment 3 emil karlson 2013-02-15 16:03:42 UTC
It's not just you, hardened is just perhaps unusual with fglrx.

I will try to look at this this weekend, if you can find a patch, that might be good as well.


(In reply to comment #2)
> Still an issue with hardened-sources-3.7.6.
> 
> I find it strange that no one else seems to notice this.
> Perhaps it is quite specific to my kernel .config; I plan to look into this
> a bit as soon as time permits.
Comment 4 emil karlson 2013-02-15 18:51:38 UTC
Can you please test ati-drivers-13.2_beta3-r200 in x11-overlay with USE=pax_kernel.
Comment 5 Hans 2013-02-16 10:53:15 UTC
(In reply to comment #4)
> Can you please test ati-drivers-13.2_beta3-r200 in x11-overlay with
> USE=pax_kernel.

I'm not very fond of AMD's beta drivers, so I've tested your
"const-notifier-block.patch" with the ati-drivers-13.1 ebuild in portage instead and can confirm that it works with hardened-sources-3.7.6.

Thanks for your work on this and your maintainership of those ebuilds.
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-02-18 21:19:22 UTC
Fixed in CVS.