Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523356 - net-wireless/broadcom-sta with kernel 3.15.8 on hardened - .../work/src/wl/sys/wl_cfg80211_hybrid.c:2470:2: error: assignment of read-only location ‘el->handler[26]’
Summary: net-wireless/broadcom-sta with kernel 3.15.8 on hardened - .../work/src/wl/sy...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: M. B.
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-21 08:58 UTC by Shawn C
Modified: 2018-03-26 11:21 UTC (History)
8 users (show)

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


Attachments
Build failure (file_523356.txt,7.85 KB, text/plain)
2014-10-25 17:47 UTC, Eugene Cormier
Details
patch against 248 version (broadcom-sta-6.30.223.248-pax-no-const.patch,410 bytes, patch)
2016-01-08 09:11 UTC, Oleh
Details | Diff
broadcom-sta-6.30.223.271-pax-no-const.patch (broadcom-sta-6.30.223.271-pax-no-const.patch,494 bytes, patch)
2016-05-17 13:14 UTC, Oleh
Details | Diff
build.log (net-wireless:broadcom-sta-6.30.223.271-r3:20160531-172042.log,4.68 KB, text/plain)
2016-05-31 17:33 UTC, M. B.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shawn C 2014-09-21 08:58:55 UTC
Steps to reproduce:
emerge -a net-wireless/broadcom-sta

Actual result:
gentoo-no-symtab ~ #  emerge -a net-wireless/broadcom-sta

 * IMPORTANT: 5 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


 * IMPORTANT: config file '/etc/portage/package.use' needs updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ~] net-wireless/broadcom-sta-6.30.223.248-r1 

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-wireless/broadcom-sta-6.30.223.248-r1
 * hybrid-v35_64-nodebug-pcoem-6_30_223_248.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...           [ ok ]
 * README-broadcom-sta-6.30.223.248.txt SHA256 SHA512 WHIRLPOOL size ;-) ...                      [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.15.8-hardened/build
 * Found sources for kernel version:
 *     3.15.8-hardened
 * Checking for suitable kernel configuration options...
 *   B43: If you insist on building this, you must blacklist it!
 *   BCMA: If you insist on building this, you must blacklist it!
 *   SSB: If you insist on building this, you must blacklist it!
 *   MAC80211: If you insist on building this, you must blacklist it!
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
>>> Unpacking source...
>>> Unpacking hybrid-v35_64-nodebug-pcoem-6_30_223_248.tar.gz to /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work
>>> Unpacking README-broadcom-sta-6.30.223.248.txt to /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work
unpack README-broadcom-sta-6.30.223.248.txt: file format not recognized. Ignoring.
>>> Source unpacked in /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work
>>> Preparing source in /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work ...
 * Applying broadcom-sta-6.30.223.141-license.patch ...                                           [ ok ]
 * Applying broadcom-sta-6.30.223.141-makefile.patch ...                                          [ ok ]
 * Applying broadcom-sta-6.30.223.141-eth-to-wlan.patch ...                                       [ ok ]
 * Applying broadcom-sta-6.30.223.141-gcc.patch ...                                               [ ok ]
 * Applying broadcom-sta-6.30.223.141-linux-3.15.patch ...                                        [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work ...
ln: failed to create symbolic link ‘Module.symvers’: File exists
 * Preparing wl module
make -j5 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' -C /usr/src/linux M=/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work wl.ko 
make: Entering directory `/usr/src/linux-3.15.8-hardened'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  CC [M]  /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/shared/linux_osl.o
  CC [M]  /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_linux.o
  CC [M]  /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_iw.o
  CC [M]  /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_cfg80211_hybrid.o
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_cfg80211_hybrid.c: In function ‘wl_init_eloop_handler’:
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_cfg80211_hybrid.c:2469:2: warning: passing argument 1 of ‘memset’ discards ‘const’ qualifier from pointer target type [enabled by default]
In file included from /usr/src/linux-3.15.8-hardened/arch/x86/include/asm/string.h:4:0,
                 from include/linux/string.h:17,
                 from include/linux/dynamic_debug.h:111,
                 from include/linux/printk.h:241,
                 from include/linux/kernel.h:13,
                 from /usr/src/linux-3.15.8-hardened/arch/x86/include/asm/percpu.h:44,
                 from /usr/src/linux-3.15.8-hardened/arch/x86/include/asm/preempt.h:5,
                 from include/linux/preempt.h:18,
                 from include/linux/spinlock.h:50,
                 from include/linux/seqlock.h:35,
                 from include/linux/time.h:5,
                 from include/linux/stat.h:18,
                 from include/linux/module.h:10,
                 from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/include/linuxver.h:40,
                 from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_cfg80211_hybrid.c:26:
/usr/src/linux-3.15.8-hardened/arch/x86/include/asm/string_64.h:55:7: note: expected ‘void *’ but argument is of type ‘const struct wl_cfg80211_event_loop *’
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_cfg80211_hybrid.c:2470:2: error: assignment of read-only location ‘el->handler[26]’
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_cfg80211_hybrid.c:2471:2: error: assignment of read-only location ‘el->handler[1]’
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_cfg80211_hybrid.c:2472:2: error: assignment of read-only location ‘el->handler[2]’
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_cfg80211_hybrid.c:2473:2: error: assignment of read-only location ‘el->handler[16]’
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_cfg80211_hybrid.c:2474:2: error: assignment of read-only location ‘el->handler[18]’
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_cfg80211_hybrid.c:2475:2: error: assignment of read-only location ‘el->handler[0]’
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_cfg80211_hybrid.c:2476:2: error: assignment of read-only location ‘el->handler[12]’
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_cfg80211_hybrid.c:2477:2: error: assignment of read-only location ‘el->handler[6]’
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_cfg80211_hybrid.c:2478:2: error: assignment of read-only location ‘el->handler[19]’
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_cfg80211_hybrid.c:2479:2: error: assignment of read-only location ‘el->handler[17]’
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/shared/linux_osl.c: In function ‘osl_malloc’:
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/shared/linux_osl.c:390:1: note: Function osl_malloc is missing from the size_overflow hash table +osl_malloc+2+61156+
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_linux.c:792:1: warning: ‘wl_suspend’ defined but not used [-Wunused-function]
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_linux.c:824:1: warning: ‘wl_resume’ defined but not used [-Wunused-function]
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/shared/linux_osl.c:390:1: note: Function osl_malloc is missing from the size_overflow hash table +osl_malloc+2+61156+
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/shared/linux_osl.c:390:1: note: Function osl_malloc is missing from the size_overflow hash table +osl_malloc+2+61156+
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/shared/linux_osl.c:390:1: note: Function osl_malloc is missing from the size_overflow hash table +osl_malloc+2+61156+
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/shared/linux_osl.c:390:1: note: Function osl_malloc is missing from the size_overflow hash table +osl_malloc+2+61156+
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/shared/linux_osl.c:390:1: note: Function osl_malloc is missing from the size_overflow hash table +osl_malloc+2+61156+
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/shared/linux_osl.c:390:1: note: Function osl_malloc is missing from the size_overflow hash table +osl_malloc+2+61156+
/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/shared/linux_osl.c:390:1: note: Function osl_malloc is missing from the size_overflow hash table +osl_malloc+2+61156+
make[1]: *** [/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work/src/wl/sys/wl_cfg80211_hybrid.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [wl.ko] Error 2
make: Leaving directory `/usr/src/linux-3.15.8-hardened'
 * ERROR: net-wireless/broadcom-sta-6.30.223.248-r1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-wireless/broadcom-sta-6.30.223.248-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-wireless/broadcom-sta-6.30.223.248-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work'
 * S: '/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work'

>>> Failed to emerge net-wireless/broadcom-sta-6.30.223.248-r1, Log file:

>>>  '/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/temp/build.log'

 * Messages for package net-wireless/broadcom-sta-6.30.223.248-r1:

 *   B43: If you insist on building this, you must blacklist it!
 *   BCMA: If you insist on building this, you must blacklist it!
 *   SSB: If you insist on building this, you must blacklist it!
 *   MAC80211: If you insist on building this, you must blacklist it!
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
 * ERROR: net-wireless/broadcom-sta-6.30.223.248-r1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-wireless/broadcom-sta-6.30.223.248-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-wireless/broadcom-sta-6.30.223.248-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work'
 * S: '/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.248-r1/work'
Comment 1 Shawn C 2014-09-21 09:00:17 UTC
gentoo-no-symtab ~ # emerge --info
Portage 2.2.8-r1 (hardened/linux/amd64, gcc-4.7.3, glibc-2.19-r1, 3.15.8-hardened x86_64)
=================================================================
System uname: Linux-3.15.8-hardened-x86_64-AMD_A4-5000_APU_with_Radeon-TM-_HD_Graphics-with-gentoo-2.2
KiB Mem:     3233676 total,   2840924 free
KiB Swap:    5970692 total,   5970692 free
Timestamp of tree: Thu, 18 Sep 2014 11:30:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.7, 3.3.5-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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=" -march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync 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://mirrors.163.com/gentoo/ http://mirrors.sohu.com/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://de-mirror.org/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp-stud.hs-esslingen.de/gentoo/ http://gentoo.aditsu.net:8000/ http://mirror.isoc.org.il/pub/gentoo/ http://gentoo.gg3.net/ http://ftp.lecl.net/pub/gentoo/ http://ftp.twaren.net/Linux/Gentoo/ rsync://rsync.gtlib.gatech.edu/gentoo http://www.gtlib.gatech.edu/pub/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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=""
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cli consolekit cracklib crypt cups cxx dbus dhcpcd dri dts emboss encode exif fam firefox flac gdbm gif gnome gnutls gpm gtk hardened iconv introspection ipv6 jpeg justify lcms ldap libnotify lock mad mmx mng modemmanager modules mp3 mp4 mpeg multilib ncurses networkmanager nls nptl nss ogg opengl openmp pam pango pax_kernel pcre pdf png policykit ppds ppp pulseaudio qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd thunar tiff truetype udev udisks unicode upower urandom usb vorbis wext wifi wxwidgets x264 xcb xdm xfce xml xtpax xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon" XFCE_PLUGINS="brightness clock trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 2 Eugene Cormier 2014-10-25 17:46:22 UTC
This is the same for me on the recently stabilized kernel-3.16.5
I'll attach my output....

Eugene
Comment 3 Eugene Cormier 2014-10-25 17:47:47 UTC
Created attachment 387346 [details]
Build failure
Comment 4 Eugene Cormier 2014-10-25 17:50:23 UTC
keywording version: net-wireless/broadcom-sta-6.30.223.248-r1 fixes the problem and compiles fine

Eugene
Comment 5 M. B. 2014-10-28 01:57:43 UTC
From my experience it's a gamble whether a binary driver works on hardened or not. It's unsure enough to have it running on a normal machine already.

Try to see whether one of the opensource drivers work. From what I can see here it's doubtful a patch will appear.

PS: Don't get your hopes up because of Eugene's posts; his error is a completely different, that was fixed.
Comment 6 Matt Turner gentoo-dev 2015-01-27 19:45:34 UTC
Please retest with broadcom-sta-6.30.223.248-r3.
Comment 7 ben.c.schubert 2015-01-28 22:29:20 UTC
Tested with kernel 3.17.7-hardened-r1,  problem persists
Comment 8 Oleh 2016-01-08 09:11:08 UTC
this need a no_const patch for drivers in a similar way aplied here:

http://forums.grsecurity.net/viewtopic.php?f=3&t=2962
Comment 9 Oleh 2016-01-08 09:11:31 UTC
Created attachment 422274 [details, diff]
patch against 248 version
Comment 10 Oleh 2016-01-08 09:12:31 UTC
above is a patch for broadcom-sta-6.30.223.248
rest ebuilds would need just about the same patch
Comment 11 Oleh 2016-02-01 06:54:18 UTC
any progress here?
Comment 12 M. B. 2016-02-06 05:40:59 UTC
For me this patch creates a linker conflict.

Could you provide the build.log of a successful build with this patch please?
Comment 13 Oleh 2016-02-16 15:23:25 UTC
a successful build does not left a build.log :)
i'll test this again in a few days.
Comment 14 M. B. 2016-02-17 08:03:38 UTC
It does.
FEATURES=keepwork emerge -1 broadcom-sta
Comment 15 M. B. 2016-02-17 08:04:26 UTC
ehhh, should turn my brains on.

FEATURES=keeptemp emerge -1 broadcom-sta
Comment 16 Oleh 2016-02-17 13:58:56 UTC
then it does when this FEATURE is enabled. This feature is not enabled by default.
Comment 17 Oleh 2016-05-17 13:13:25 UTC
attached a patch that is against broadcom-sta-6.30.223.271-r3. Not going to attach build.log, apply patch and merge ebuild to check this out.
Comment 18 Oleh 2016-05-17 13:14:11 UTC
Created attachment 434524 [details, diff]
broadcom-sta-6.30.223.271-pax-no-const.patch
Comment 19 Oleh 2016-05-17 13:16:44 UTC
for M.B:
https://bpaste.net/show/b2f539eb4b0e
Comment 20 Oleh 2016-05-31 17:12:01 UTC
any progress?
Comment 21 M. B. 2016-05-31 17:33:21 UTC
Created attachment 435970 [details]
build.log

No.

I still cannot build successfully (on non-hardened) with the patch and hence will not include it.
The ebuild provides epatch_user which allows everybody to apply this patch, should he deem it necessary.

The bug will remain open and confirmed in order for others to be able to find it more easily.
Comment 22 Oleh 2016-05-31 18:06:28 UTC
make the patch applied conditionally for hardened only.
Comment 23 Matt Turner gentoo-dev 2016-05-31 18:30:21 UTC
(In reply to Oleg from comment #22)
> make the patch applied conditionally for hardened only.

Applying patches conditionally is frowned upon.
Comment 24 Oleh 2016-06-01 05:01:14 UTC
yet there are so many patches applied conditionally in so many places throughout portage tree. ok, i'm not going to play this denial attitude. close this as invalid
Comment 25 M. B. 2016-06-01 11:28:27 UTC
I think you misunderstand me here. This bug is a very valid one and it will not be closed.

Even though I'm quite willing to support this package (in part out of personal interest) it remains a blob. That in itself means only few people are willing to invest time and energy in fixing things.

Now while your patch fixes things for a small minority, it does break things for the majority. Hence the conditional patch application was suggested. Which will not happen. Hence my suggestion for users with this problem to use the epatch_user facility.

I neither have the time nor the experience nor the test-system to work with a bug that's specific to hardened users. If such a patch comes along and proves to be working for both hardened and not impair normal users, I'd be quite willing to include and commit it.

That being said, to make such a patch work, one would (supposedly) have to
- identify the specific reason/hardened feature why it fails on hardened
- encode that reason in a way for the CPP to apply it conditionally

To have me include it, one would be expected to
- give me a rough outline on why no_const fails for most users and not for hardened
- what exactly makes no_const fix the problem without opening a security hole

Why the latter two reasons? Things that get submitted here end up on everyone's harddrive and eventually get installed. And I owe it to you, too, to be able to say, in my good judgement this patch is sane and fixes things in a way that doesn't explode. Which I can can simply not. A simple "errr ... it wasn't me. i got it on bugzilla and it seems to work for some" just isn't enough here.
Comment 26 Oleh 2016-06-27 05:45:11 UTC
this is some kind of demanding attitude. if you are maintainer of ebuild, you DO research on why no_const failing here and there, not users, like me. Users expects ebuild compiled and installed, because ebuild does not destined to fail at first and obviously users are not expected to be speleology experts of broadcom-sta sources ass. And your segregation into "majority" and "minortiy" also not giving you any credits. There is way on portage level to fix thing for minority without touching majority. That's the logic
Comment 27 4nykey 2016-09-19 09:30:17 UTC
(In reply to M. B. from comment #25)
> Now while your patch fixes things for a small minority, it does break things
> for the majority. [...]
> I neither have the time nor the experience nor the test-system to work with
> a bug that's specific to hardened users. If such a patch comes along and
> proves to be working for both hardened and not impair normal users,

That's the spirit. Now if you stop playing Adolf for a sec, you would realise, there's no such thing as hardened, major, minor, impaired, normal user. If you at some point would like to see if you can fire up a hardened system, it doesn't make you less normal.

> Hence the conditional patch application was suggested.
> Which will not happen. 

Because Matt Turner will frown upon you. I see. Maintainers of these packages feared not:

https://github.com/gentoo/gentoo/blob/master/app-emulation/virtualbox-modules/virtualbox-modules-5.1.6.ebuild#L47
https://github.com/gentoo/gentoo/blob/master/x11-drivers/nvidia-drivers/nvidia-drivers-370.28.ebuild#L175
https://github.com/gentoo/gentoo/blob/master/x11-drivers/ati-drivers/ati-drivers-15.12-r1.ebuild#L318
Comment 28 Matt Turner gentoo-dev 2017-09-09 20:37:27 UTC
Dropping myself as a maintainer.

If you are stuck using this unmaintained driver (likely in a MacBook),
you may be interested to know that a newer compatible wireless card
is supported by the in-tree brcmfmac driver. It has a model number 
BCM943602CS and is for sale on the second hand market for less than 
20 USD.

See https://wikidevi.com/wiki/Broadcom_Wireless_Adapters and
    https://wikidevi.com/wiki/Broadcom_BCM943602CS
for more information.
Comment 29 Pacho Ramos gentoo-dev 2018-03-13 16:30:05 UTC
Nick mailed me showing interest on fixing and maintaining this. Probably the way to do (until you become a developer) would be to maintain it via proxy-maint and send a PR fixing the existing bugs
https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers
Comment 30 Gilles Dartiguelongue (RETIRED) gentoo-dev 2018-03-25 22:15:26 UTC
If anyone wants to submit a PR with USE=pax_kernel for this patch, I would gladly review and merge it.
Comment 31 Magnus Granberg gentoo-dev 2018-03-25 22:29:45 UTC
(In reply to Gilles Dartiguelongue from comment #30)
> If anyone wants to submit a PR with USE=pax_kernel for this patch, I would
> gladly review and merge it.

Hardened-sources is not longer supported.
Comment 32 Gilles Dartiguelongue (RETIRED) gentoo-dev 2018-03-26 11:21:08 UTC
Wouldn't this be a problem with pax enabled kernel as well ?