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
Sergei Golubchik
made changes -
2017-07-22 12:09
Field
Original Value
New Value
Fix Version/s
10.2
[ 14601
]
Sergei Golubchik
made changes -
2017-07-22 12:11
Assignee
Sergei Golubchik
[ serg
]
Sergei Golubchik
made changes -
2017-07-22 12:11
Priority
Major
[ 3
]
Critical
[ 2
]
Sergei Golubchik
made changes -
2017-08-09 18:54
Status
Open
[ 1
]
In Progress
[ 3
]
Sergei Golubchik
made changes -
2017-08-09 18:54
Status
In Progress
[ 3
]
Stalled
[ 10000
]
Sergei Golubchik
made changes -
2017-08-14 19:55
Fix Version/s
10.2.8
[ 22544
]
Fix Version/s
10.2
[ 14601
]
Resolution
Fixed
[ 1
]
Status
Stalled
[ 10000
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:45
Workflow
MariaDB v3
[ 81747
]
MariaDB v4
[ 152517
]
{"report":{"fcp":1279,"ttfb":349,"pageVisibility":"visible","entityId":62344,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"8450cb38-9191-4402-9411-8b1c2aca04ae","navigationType":0,"readyForUser":1361.5,"redirectCount":0,"resourceLoadedEnd":1747.6999998092651,"resourceLoadedStart":355,"resourceTiming":[{"duration":171.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":355,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":355,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":526.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":172.59999990463257,"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":355.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":355.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":527.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":267.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":355.5,"connectEnd":355.5,"connectStart":355.5,"domainLookupEnd":355.5,"domainLookupStart":355.5,"fetchStart":355.5,"redirectEnd":0,"redirectStart":0,"requestStart":355.5,"responseEnd":622.5999999046326,"responseStart":622.5999999046326,"secureConnectionStart":355.5},{"duration":324.2000002861023,"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":355.69999980926514,"connectEnd":355.69999980926514,"connectStart":355.69999980926514,"domainLookupEnd":355.69999980926514,"domainLookupStart":355.69999980926514,"fetchStart":355.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":355.69999980926514,"responseEnd":679.9000000953674,"responseStart":679.9000000953674,"secureConnectionStart":355.69999980926514},{"duration":327.80000019073486,"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":356,"connectEnd":356,"connectStart":356,"domainLookupEnd":356,"domainLookupStart":356,"fetchStart":356,"redirectEnd":0,"redirectStart":0,"requestStart":356,"responseEnd":683.8000001907349,"responseStart":683.8000001907349,"secureConnectionStart":356},{"duration":328.2000002861023,"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":356.09999990463257,"connectEnd":356.09999990463257,"connectStart":356.09999990463257,"domainLookupEnd":356.09999990463257,"domainLookupStart":356.09999990463257,"fetchStart":356.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":356.09999990463257,"responseEnd":684.3000001907349,"responseStart":684.3000001907349,"secureConnectionStart":356.09999990463257},{"duration":328.3999996185303,"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":356.30000019073486,"connectEnd":356.30000019073486,"connectStart":356.30000019073486,"domainLookupEnd":356.30000019073486,"domainLookupStart":356.30000019073486,"fetchStart":356.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":356.30000019073486,"responseEnd":684.6999998092651,"responseStart":684.6999998092651,"secureConnectionStart":356.30000019073486},{"duration":427.59999990463257,"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":356.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":356.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":784.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":328.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":356.69999980926514,"connectEnd":356.69999980926514,"connectStart":356.69999980926514,"domainLookupEnd":356.69999980926514,"domainLookupStart":356.69999980926514,"fetchStart":356.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":356.69999980926514,"responseEnd":685.0999999046326,"responseStart":685.0999999046326,"secureConnectionStart":356.69999980926514},{"duration":427.5,"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":356.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":356.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":784.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":328.80000019073486,"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":357,"connectEnd":357,"connectStart":357,"domainLookupEnd":357,"domainLookupStart":357,"fetchStart":357,"redirectEnd":0,"redirectStart":0,"requestStart":357,"responseEnd":685.8000001907349,"responseStart":685.8000001907349,"secureConnectionStart":357},{"duration":1384.9000000953674,"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":358,"connectEnd":358,"connectStart":358,"domainLookupEnd":358,"domainLookupStart":358,"fetchStart":358,"redirectEnd":0,"redirectStart":0,"requestStart":358,"responseEnd":1742.9000000953674,"responseStart":1742.9000000953674,"secureConnectionStart":358},{"duration":1385.2000002861023,"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":358.09999990463257,"connectEnd":358.09999990463257,"connectStart":358.09999990463257,"domainLookupEnd":358.09999990463257,"domainLookupStart":358.09999990463257,"fetchStart":358.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":358.09999990463257,"responseEnd":1743.3000001907349,"responseStart":1743.3000001907349,"secureConnectionStart":358.09999990463257},{"duration":413.1000003814697,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":803.1999998092651,"connectEnd":803.1999998092651,"connectStart":803.1999998092651,"domainLookupEnd":803.1999998092651,"domainLookupStart":803.1999998092651,"fetchStart":803.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":803.1999998092651,"responseEnd":1216.3000001907349,"responseStart":1216.3000001907349,"secureConnectionStart":803.1999998092651},{"duration":523.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&slack-enabled=true&whisper-enabled=true","startTime":1224,"connectEnd":1224,"connectStart":1224,"domainLookupEnd":1224,"domainLookupStart":1224,"fetchStart":1224,"redirectEnd":0,"redirectStart":0,"requestStart":1224,"responseEnd":1747.6999998092651,"responseStart":1747.6999998092651,"secureConnectionStart":1224},{"duration":511.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1270.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1270.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1782.0999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":173,"responseStart":349,"responseEnd":352,"domLoading":353,"domInteractive":1815,"domContentLoadedEventStart":1815,"domContentLoadedEventEnd":1868,"domComplete":2363,"loadEventStart":2363,"loadEventEnd":2363,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1786.1999998092651},{"name":"bigPipe.sidebar-id.end","time":1787.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1787.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1789.5999999046326},{"name":"activityTabFullyLoaded","time":1887.4000000953674}],"measures":[],"correlationId":"e539486f7e90f2","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":123,"dbReadsTimeInMs":19,"dbConnsTimeInMs":29,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}