So I noticed something a bit funny about the MariaDB 10.2 install process, when it comes to header files. It seems there are kinda two competing install processes.
The source code includes a libmariadb/ subdirectory, which is actually (in the git repo) the mariadb-connector-c project as a submodule. This project has its own include/ subdirectory, which contains several header files and some install rules for them in a CMakeLists.txt file.
But the mariadb source also has its own include/ subdirectory, which similarly contains several header files and some install rules for them. In several cases, the install rules for both include/ subdirectories try to install a file with the same name to the same place: this includes at least mysql.h and errmsg.h . You can spot cases like this in the console output by looking for the string 'Up-to-date', which basically seems to be CMake indicating that a file listed for installation already exists and won't be replaced.
AFAICS, at least during our (Fedora's) builds, the libmariadb/include/ subdirectory gets to go first, and then when the include/ subdirectory runs, it doesn't overwrite any file that the libmariadb/include/ subdirectory already installed. But as there are more headers in the include/ subdirectory, you ultimately wind up with a mish-mash of headers installed, some from the libmariadb/ subproject and some from mariadb itself.
This is particularly significant in the case of mysql.h; what actually winds up installed is libmariadb/include/mysql.h , not include/mysql.h . There are some significant differences between the two; for instance, the one from libmariadb/include/ includes mariadb_version.h from the same directory , whereas the mysql.h from include/ includes mysql_version.h from the same directory. libmariadb's mariadb_version.h defines rather fewer things than mariadb's mysql_version.h does. So ultimately, for instance, if you install MariaDB 10.2, then write some code that just does #include mysql.h , then you will have no MYSQL_SERVER_VERSION defined.
This is definitely confusing and ambiguous, and I think it's a straight up bug. I would think that when installing MariaDB itself then we really want to install include/mysql.h , not libmariadb/include/mysql.h .
- causes
-
MDEV-13773
client packages need my_global.h and/or my_config.h
-
-
Closed
{"report":{"fcp":889.9000000953674,"ttfb":215.7999997138977,"pageVisibility":"visible","entityId":62344,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"b892bf18-1134-4389-9ad6-e83c2c5e070b","navigationType":0,"readyForUser":957.5,"redirectCount":0,"resourceLoadedEnd":980.1999998092651,"resourceLoadedStart":221.59999990463257,"resourceTiming":[{"duration":8.300000190734863,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":221.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":221.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":229.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":8.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":221.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":221.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":230.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":62.799999713897705,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":222,"connectEnd":222,"connectStart":222,"domainLookupEnd":222,"domainLookupStart":222,"fetchStart":222,"redirectEnd":0,"redirectStart":0,"requestStart":222,"responseEnd":284.7999997138977,"responseStart":284.7999997138977,"secureConnectionStart":222},{"duration":297.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":222.09999990463257,"connectEnd":222.09999990463257,"connectStart":222.09999990463257,"domainLookupEnd":222.09999990463257,"domainLookupStart":222.09999990463257,"fetchStart":222.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":222.09999990463257,"responseEnd":519.7999997138977,"responseStart":519.7999997138977,"secureConnectionStart":222.09999990463257},{"duration":301.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":222.5,"connectEnd":222.5,"connectStart":222.5,"domainLookupEnd":222.5,"domainLookupStart":222.5,"fetchStart":222.5,"redirectEnd":0,"redirectStart":0,"requestStart":222.5,"responseEnd":523.9000000953674,"responseStart":523.9000000953674,"secureConnectionStart":222.5},{"duration":301.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":222.59999990463257,"connectEnd":222.59999990463257,"connectStart":222.59999990463257,"domainLookupEnd":222.59999990463257,"domainLookupStart":222.59999990463257,"fetchStart":222.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":222.59999990463257,"responseEnd":524.4000000953674,"responseStart":524.4000000953674,"secureConnectionStart":222.59999990463257},{"duration":302.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":222.69999980926514,"connectEnd":222.69999980926514,"connectStart":222.69999980926514,"domainLookupEnd":222.69999980926514,"domainLookupStart":222.69999980926514,"fetchStart":222.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":222.69999980926514,"responseEnd":524.9000000953674,"responseStart":524.9000000953674,"secureConnectionStart":222.69999980926514},{"duration":303.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":222.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":222.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":526,"responseStart":0,"secureConnectionStart":0},{"duration":302.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":223.09999990463257,"connectEnd":223.09999990463257,"connectStart":223.09999990463257,"domainLookupEnd":223.09999990463257,"domainLookupStart":223.09999990463257,"fetchStart":223.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":223.09999990463257,"responseEnd":525.4000000953674,"responseStart":525.4000000953674,"secureConnectionStart":223.09999990463257},{"duration":302.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":223.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":223.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":526.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":302.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":223.40000009536743,"connectEnd":223.40000009536743,"connectStart":223.40000009536743,"domainLookupEnd":223.40000009536743,"domainLookupStart":223.40000009536743,"fetchStart":223.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":223.40000009536743,"responseEnd":526,"responseStart":526,"secureConnectionStart":223.40000009536743},{"duration":723.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":228.69999980926514,"connectEnd":228.69999980926514,"connectStart":228.69999980926514,"domainLookupEnd":228.69999980926514,"domainLookupStart":228.69999980926514,"fetchStart":228.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":228.69999980926514,"responseEnd":952.5,"responseStart":952.5,"secureConnectionStart":228.69999980926514},{"duration":724.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":228.7999997138977,"connectEnd":228.7999997138977,"connectStart":228.7999997138977,"domainLookupEnd":228.7999997138977,"domainLookupStart":228.7999997138977,"fetchStart":228.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":228.7999997138977,"responseEnd":953.5999999046326,"responseStart":953.5999999046326,"secureConnectionStart":228.7999997138977},{"duration":239.19999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":432,"connectEnd":432,"connectStart":432,"domainLookupEnd":432,"domainLookupStart":432,"fetchStart":432,"redirectEnd":0,"redirectStart":0,"requestStart":432,"responseEnd":671.1999998092651,"responseStart":671.1999998092651,"secureConnectionStart":432},{"duration":188.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":792,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":792,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":980.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":187.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":792.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":792.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":980.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":257.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":793.4000000953674,"connectEnd":793.4000000953674,"connectStart":793.4000000953674,"domainLookupEnd":793.4000000953674,"domainLookupStart":793.4000000953674,"fetchStart":793.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":793.4000000953674,"responseEnd":1050.5999999046326,"responseStart":1050.5999999046326,"secureConnectionStart":793.4000000953674},{"duration":263.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":793.7999997138977,"connectEnd":793.7999997138977,"connectStart":793.7999997138977,"domainLookupEnd":793.7999997138977,"domainLookupStart":793.7999997138977,"fetchStart":793.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":793.7999997138977,"responseEnd":1057.6999998092651,"responseStart":1057.6999998092651,"secureConnectionStart":793.7999997138977},{"duration":265,"initiatorType":"script","name":"https://jira.mariadb.org/s/e0bf5781d46ea69fb123572974cf39de-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":794.0999999046326,"connectEnd":794.0999999046326,"connectStart":794.0999999046326,"domainLookupEnd":794.0999999046326,"domainLookupStart":794.0999999046326,"fetchStart":794.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":794.0999999046326,"responseEnd":1059.0999999046326,"responseStart":1059.0999999046326,"secureConnectionStart":794.0999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":54,"responseStart":216,"responseEnd":220,"domLoading":219,"domInteractive":1024,"domContentLoadedEventStart":1024,"domContentLoadedEventEnd":1064,"domComplete":1271,"loadEventStart":1271,"loadEventEnd":1271,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":993.2999997138977},{"name":"bigPipe.sidebar-id.end","time":994},{"name":"bigPipe.activity-panel-pipe-id.start","time":994.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":996.4000000953674},{"name":"activityTabFullyLoaded","time":1080.6999998092651}],"measures":[],"correlationId":"5f707a69917859","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":108,"dbReadsTimeInMs":12,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Jared: I don't think that's what Sergei means, no. I believe that the full mariadb will contain both the server and the client headers, in different directories. mariadb-connector-c will only contain the client headers, in the same place mariadb puts them. Again, this is just as I understand it.