Bug #34983 List enabled plugins after a ./configure run
Submitted: 2 Mar 2008 13:31 Modified: 25 Oct 2018 6:36
Reporter: Daniël van Eeden Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S4 (Feature request)
Version:5.1.23a-maria OS:Any
Assigned to: CPU Architecture:Any

[2 Mar 2008 13:31] Daniël van Eeden
Description:
Please list which plugins whould be build after a configure run.

MPlayer does this and it makes it much easier to see if all required plugins are configured in. I like to find out missing compile options before the actual compile.

This should also list if ndbcluster is enabled. ndbcluster is not build even when the "--with-plugins=all" option is used, this is not very obvious. It requires the --enable-ndbcluster option.

How to repeat:
./configure

Suggested fix:
Something like this (although this won't list disabled plugins):
awk '/WITH_.*_STORAGE_ENGINE/ { engine=substr($2,6); engine=substr(engine,1,index(engine,"_")-1); if ($3 == "1") { print "Storage engine " engine " is enabled." } else { "Storage engine " engine " is not enabled" }}' config.log
[17 Mar 2008 11:20] Susanne Ebrecht
Many thanks for writing a feature request.
[17 Mar 2008 11:28] Hartmut Holzgraefe
Thanks for your feature request, i think this would perfectly make sense and have verified it as valid bug entry.

A little more background on this

This is how the MPlayer output looks like

[...]
  Enabled optional drivers:
    Input: ftp tv-teletext tv-v4l2 tv-v4l tv cddb cdda libdvdcss(internal) dvdread(internal) vcd dvb network 
    Codecs: libdv libavcodec qtx real xanim win32 faad2 libmpeg2 liba52 mp3lib tremor(internal) libmad liblzo 
    Audio output: alsa jack esd arts oss sdl mpegpes(dvb) 
    Video output: sdl pnm jpeg png mpegpes(dvb) fbdev aa xvidix cvidix opengl dga xv x11 xover dfbmga directfb md5sum tga 
    Audio filters: 
  Disabled optional drivers:
    Input: dvdnav vstream pvr radio live555 nemesi smb 
    Codecs: x264 xvid libamr_wb libamr_nb faac musepack libdca libtheora speex toolame twolame gif 
    Audio output: sun openal polyp v4l2 ivtv dxr2 nas 
    Video output: v4l2 ivtv dxr3 dxr2 vesa gif89a zr zr2 svga caca ggi xmga mga winvidix 3dfx xvmc bl xvr100 tdfx_vid s3fb tdfxfb 
    Audio filters: ladspa 
[...]

It would indeed be nice if the MySQL configure output looked similar (constructed example, not necessarily complete):

  Enabled optional plugins:
    Storage engines: innodb 
    Information schema: show_variables, show_status
    [...]
  Disabled optional plugins:
    Storage engines: ndb
    Information schema: show_master_status, show_slave_status

It may not be possible to categorize this by plugin type though
as one plugin project can actually contain multiple plugins, e.g.
ndb (when it becomes fully pluggable) would provide both the
ndb storage engine plugin and ndb specific information_schema plugins.
[8 Feb 2011 15:08] Daniël van Eeden
Would the recent switch with 5.5 from autotools to cmake make this any easier?
[11 Sep 2018 13:33] Dyre Tjeldvoll
Posted by developer:
 
Since MySQL now uses CMake, this information can be found in CMakeCache.txt after the cmake run.
[25 Oct 2018 6:36] Erlend Dahl
Posted by developer - Dyre Tjeldvoll

Since MySQL now uses CMake, this information can be found in CMakeCache.txt
after the cmake run.