Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 396089 - dev-db/mysql-5.5.19: does not have support for disabling dtrace
Summary: dev-db/mysql-5.5.19: does not have support for disabling dtrace
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-26 14:53 UTC by Samu Voutilainen
Modified: 2012-01-10 13:50 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samu Voutilainen 2011-12-26 14:53:26 UTC
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.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-12-27 03:50:04 UTC
Can you please show me the output of "mysql_config" on your system?
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-12-27 07:42:29 UTC
USE=systemtap implemented now.

alpha, arm, hppa, ia64: Can you please either keyword dev-util/systemtap or use.mask systemtap on your architectures?
Comment 3 Samu Voutilainen 2012-01-01 13:44:43 UTC
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?
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-01-01 22:34:51 UTC
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.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-01-10 01:43:38 UTC
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)
Comment 6 Samu Voutilainen 2012-01-10 13:50:41 UTC
I already reinstalled MySQL, so I don’t have chance to get the data out anymore, sorry.