Mysql 5.5 (maybe earlier too, I’m not sure) has support for DTrace based tracing, implemented by systemtap’s dtrace. http://dev.mysql.com/tech-resources/articles/getting_started_dtrace_saha.html There is nothing wrong with this, but this dtracing support seems to break some packages that links against MySQL. For me, that is ruby’s mysql2 gem. Reproducible: Always Steps to Reproduce: 1. Install mysql-5.5.19 2. Install ruby 3. Run "gem install mysql2" (I guess it should happen with gentoo’s mysql2 package too) Actual Results: Failure with compilation error: x86_64-pc-linux-gnu-gcc -shared -o mysql2.so client.o mysql2_ext.o result.o -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1,--as-needed -rdynamic -Wl,-export-dynamic -Wl,--no-undefined -Wl,-rpath,/usr/lib64/mysql -Wl,-R -Wl,/usr/lib64 -L/usr/lib64 -lruby18 -L/usr/lib64/mysql -lmysqlclient_r -lpthread -lprobes_mysql -lz -lm -lrt -lssl -lcrypto -ldl -lpthread -lrt -ldl -lcrypt -lm -lc /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lprobes_mysql Expected Results: Installation to work properly. I have no idea why this wouldn’t link properly, but it can be fixed by uninstalling systemtap and reinstalling mysql to have it not compiled with dtrace support. Search engines weren’t exactly helpful with trying to solve this out. It also feels strange to have ”hidden” feature that gets enabled if specific package is installed instead of being controlled with use flag.
Can you please show me the output of "mysql_config" on your system?
USE=systemtap implemented now. alpha, arm, hppa, ia64: Can you please either keyword dev-util/systemtap or use.mask systemtap on your architectures?
Confirming this to fix the error with mysql2 gem, thanks for fixing it. Do you still need output of mysql_config? If so, which flags I should use with it to get the result you want to see?
I wanted the entire output of 'mysql_config', from the prior setup. The mysql2 gem should have been using 'mysql_config --libs' to find what libraries to build with.
It's fixed, but I didn't see any info from the user that I wanted for testing (I suspect that the mysql2 gem is broken)
I already reinstalled MySQL, so I don’t have chance to get the data out anymore, sorry.