Here’s a tip if you are using Fedora and trying to use one of the Google Sanitizers with clang and is having problems doing so. One of the common problems is not being able to find libclang_rt.asan-x86_64.a:
/usr/bin/ld:cannot find/usr/bin/../lib64/clang/3.8.0/lib/linux/libclang_rt.asan-x86_64.a:No such file ordirectory
This can be resolved by simply installing the compiler-rt package:
There’s, probably, a better way to do this. Per documentation, it should be possible to set it up permanently by creating a file on /etc/X11/xorg.conf.d however I did not manage to create a file that works so far.
Ignore the upgrade steps provided by the application. They are incomplete. If you execute them, the upgrade will finish with success but no rules will be enabled after that. Instead, execute the steps provided in this StackOverflow comment.
Newer versions of SonarQube have stopped supporting MariaDB and you may need to switch to MySQL instead. While I’d rather use MariaDB, I understand that it is not within the supported matrix. Therefore I am documenting the steps here. The steps are focused on RHEL 7 (they probably would work on Centos 7 as well, but I did not test it).
Before start with this process, shutdown your SonarQube instance as well as any other analysis that may access the database.
The first step is to use mysqldump to create a backup of your MariaDB database:
After the backup is complete, shutdown and disable your MariaDB instance:
systemctl stop mariadb;systemctl disable mariadb
Then install MySQL 5.7 from Software Collections. The process is documented on this page. These steps are for 5.6, however, you can just replace 56 with 57 in all the steps and the result is the same.
With the new MySQL 5.7 installed and running, create the database:
In the MySQL sheel recreate the database with the same credentials and permissions as the old one:
I have been on a intense session of C/C++ hacking lately and one of the things I came across is this interesting StackOverflow topic about how to colorize the GDB output. There are plenty of tips there, but since I prefer vanilla GDB, I just stick to the first one and downloaded a customized GDB for myself.
Although man pages are essential for anyone doing serious work on Linux and other Unix-like operating systems, it’s hard to advocate for them as being user friendly and easy to read. Therefore, evangelists invent all sorts of things to spread knowledge about their favorite tools and technologies: tutorials, e-books, videos, etc. There’s even a coloring book that teaches how SELinux works. Now we have one more addition to the mix: fanzines. If you like them, this website has some very interesting and funny zines about programming, debugging and Linux in general.
I have created Fedora packages for OpenPHT, a community-driven fork of the Plex Home Theater client. The packages can be download from this link (I plan to propose adding the RPM specs to the main project, but before doing so, I would like to make sure they are working as expected).
The build instructions, for those interested in reviewing or rebuilding the package can be found in this gist or in the RPM spec file.