Monthly Archives: December 2020

Gentoo: Gnome-builder 3.38.1 error compiling with Sysprof 3.38.1

As of 24 December I was getting an error with dev-util/gnome-builder-3.38.1 and dev-util/sysprof-3.38.1 with the sysprof flag active. My compile config:

dev-util/gnome-builder-3.38.1 clang devhelp git glade gtk-doc spell sysprof  PYTHON_SINGLE_TARGET="python3_8"
dev-util/sysprof-3.38.1 gtk unwind

Sysprof has a /usr/include/sysprof-3 with duplicate headers that get picked up first and give redefine error when the same headers are included from sysprof-4. My quick and dirty fix:

cd /usr/include/sysprof-3

mv sysprof-version-macros.h _sysprof-version-macros.h
mv sysprof-clock.h _sysprof-clock.h
mv sysprof-capture-types.h _sysprof-capture-types.h
mv sysprof-capture-reader.h _sysprof-capture-reader.h
mv sysprof-address.h _sysprof-address.h
mv sysprof-capture-condition.h _sysprof-capture-condition.h
mv sysprof-capture-writer.h _sysprof-capture-writer.h
mv sysprof-collector.h _sysprof-collector.h
mv sysprof-capture-cursor.h _sysprof-capture-cursor.h
mv sysprof-platform.h _sysprof-platform.h
mv sysprof-capture.h _sysprof-capture.h

Gentoo: geany-plugins-1.37-r100 compile error with pretty-printer plugin enabled

The error:

PrettyPrinter.h:55:22: error: two or more data types in declaration specifiers
   55 | typedef unsigned int bool;
      |                      ^~~~
In file included from PluginEntry.h:34,
                 from PluginEntry.c:28:
PrettyPrinter.h:55:1: warning: useless type name in empty declaration
   55 | typedef unsigned int bool;
      | ^~~~~~~

Solution, comment out line 55 of PrettyPrinter.h and restart compile using ebuild followed by install and qmerge.

Compile errors with broadcom-sta and kernel 5.9

The net-wireless/broadcom-sta package does compile with the 5.9 versions of the kernel. Specifically, the current driver version 6.30.223.271-r6. The following patch will allow compiling of a working driver.

I named the following patch linux-5.9.patch and placed in:

/etc/portage/patches/net-wireless/broadcom-sta-6.30.223.271-r6

--- a/src/wl/sys/wl_linux.c	2020-11-16 06:13:53.274122141 -0500
+++ b/src/wl/sys/wl_linux.c	2020-11-16 05:25:24.506040486 -0500
@@ -1662,8 +1662,13 @@
 		goto done2;
 	}
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)
+       if (uaccess_kernel())
+               buf = ioc.buf;
+#else
 	if (segment_eq(get_fs(), KERNEL_DS))
 		buf = ioc.buf;
+#endif
 
 	else if (ioc.buf) {
 		if (!(buf = (void *) MALLOC(wl->osh, MAX(ioc.len, WLC_IOCTL_MAXLEN)))) {