Bug #57293 autotools builds beak on linux if dtrace cmd from systemtap-sdt-dev is installed
Submitted: 6 Oct 2010 19:45 Modified: 16 Jan 2014 12:19
Reporter: Hartmut Holzgraefe Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:mysql-5.5.6-rc OS:Linux (Ubuntu 10.4)
Assigned to: CPU Architecture:Any

[6 Oct 2010 19:45] Hartmut Holzgraefe
Description:
Followup to bug 52790:

autotools compile (no Cmake installed) still fails with 

    mysql-5.5.6-rc/mysys/mf_keycache.c:2560: 
        undefined reference to `keycache__read__start_semaphore'

and many more ...

From looking at 

./include/probes_mysql_dtrace.h:#define MYSQL_KEYCACHE_READ_START_ENABLED() keycache__read__start_semaphore

and 

./include/probes_mysql_nodtrace.h:#define	MYSQL_KEYCACHE_READ_START_ENABLED() (0)

it seems as if /usr/bin/dtrace (from package systemtap-sdt-dev) is detected as present but the actions taken based on this are different to what the Cmake side of the story does

How to repeat:
get 5.5.6-rc
unpack it
make sure Cmake is *not* installed
make sure systemtap-sdt-dev *is* installed
./configure 
make -> fails

Suggested fix:
Cmake builds also include ./include/probes_mysql_dtrace.h and so have MYSQL_KEYCACHE_READ_START_ENABLED defined as keycache__read__start_semaphore, too, but do not fail to compile

Implement the same mechanism that makes this work in Cmake builds for autoconf builds, too
[16 Jan 2014 12:18] Ståle Deraas
Posted by developer:
 
Autotools and 5.1 specific.