trying to build mariadb 5.5.x on arm/mips targets with musl it gives me the following error
*../libmysql/libmysqlclient.a(my_context.c.o): In function `my_context_spawn_internal':
|
my_context.c:(.text+0x3c): undefined reference to `setcontext'
|
my_context.c:(.text+0x40): undefined reference to `setcontext'
|
../libmysql/libmysqlclient.a(my_context.c.o): In function `my_context_continue':
|
my_context.c:(.text+0xa4): undefined reference to `swapcontext'
|
my_context.c:(.text+0xc4): undefined reference to `swapcontext'
|
../libmysql/libmysqlclient.a(my_context.c.o): In function `my_context_spawn':
|
my_context.c:(.text+0x140): undefined reference to `getcontext'
|
my_context.c:(.text+0x15c): undefined reference to `getcontext'
|
my_context.c:(.text+0x180): undefined reference to `makecontext'
|
my_context.c:(.text+0x1c0): undefined reference to `makecontext'
|
../libmysql/libmysqlclient.a(my_context.c.o): In function `my_context_yield':
|
my_context.c:(.text+0x204): undefined reference to `swapcontext'
|
my_context.c:(.text+0x218): undefined reference to `swapcontext'
|
collect2: error: ld returned 1 exit status*
|
with glibc it works properly, x86_64 and i386 are also working with musl and glibc
patching the my_context.h file like this
@@ -31,8 +31,6 @@
|
#define MY_CONTEXT_USE_X86_64_GCC_ASM
|
#elif defined(__GNUC__) && __GNUC__ >= 3 && defined(__i386__)
|
#define MY_CONTEXT_USE_I386_GCC_ASM
|
-#elif defined(HAVE_UCONTEXT_H)
|
-#define MY_CONTEXT_USE_UCONTEXT
|
#else
|
#define MY_CONTEXT_DISABLE
|
#endif
|
is working, what could be the right approach ?
{"report":{"fcp":1277.8999996185303,"ttfb":221.39999961853027,"pageVisibility":"visible","entityId":63084,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"ced42f2f-82bb-40bd-8b72-2528dcbbd216","navigationType":0,"readyForUser":1349.3999996185303,"redirectCount":0,"resourceLoadedEnd":1620.3000001907349,"resourceLoadedStart":228.80000019073486,"resourceTiming":[{"duration":552.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":228.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":228.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":781.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":552.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":229.0999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":229.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":781.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":562.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":229.30000019073486,"connectEnd":229.30000019073486,"connectStart":229.30000019073486,"domainLookupEnd":229.30000019073486,"domainLookupStart":229.30000019073486,"fetchStart":229.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":229.30000019073486,"responseEnd":792,"responseStart":791.8999996185303,"secureConnectionStart":229.30000019073486},{"duration":588.8000001907349,"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":229.5999994277954,"connectEnd":229.5999994277954,"connectStart":229.5999994277954,"domainLookupEnd":229.5999994277954,"domainLookupStart":229.5999994277954,"fetchStart":229.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":229.5999994277954,"responseEnd":818.3999996185303,"responseStart":818.3999996185303,"secureConnectionStart":229.5999994277954},{"duration":592.2999992370605,"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":229.80000019073486,"connectEnd":229.80000019073486,"connectStart":229.80000019073486,"domainLookupEnd":229.80000019073486,"domainLookupStart":229.80000019073486,"fetchStart":229.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":229.80000019073486,"responseEnd":822.0999994277954,"responseStart":822.0999994277954,"secureConnectionStart":229.80000019073486},{"duration":592.6999998092651,"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":230,"connectEnd":230,"connectStart":230,"domainLookupEnd":230,"domainLookupStart":230,"fetchStart":230,"redirectEnd":0,"redirectStart":0,"requestStart":230,"responseEnd":822.6999998092651,"responseStart":822.6999998092651,"secureConnectionStart":230},{"duration":592.8999996185303,"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":230.19999980926514,"connectEnd":230.19999980926514,"connectStart":230.19999980926514,"domainLookupEnd":230.19999980926514,"domainLookupStart":230.19999980926514,"fetchStart":230.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":230.19999980926514,"responseEnd":823.0999994277954,"responseStart":823.0999994277954,"secureConnectionStart":230.19999980926514},{"duration":593.8999996185303,"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":230.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":230.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":824.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":592.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":231,"connectEnd":231,"connectStart":231,"domainLookupEnd":231,"domainLookupStart":231,"fetchStart":231,"redirectEnd":0,"redirectStart":0,"requestStart":231,"responseEnd":823.5,"responseStart":823.5,"secureConnectionStart":231},{"duration":593.6000003814697,"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":231.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":231.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":824.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":592.8999996185303,"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":231.30000019073486,"connectEnd":231.30000019073486,"connectStart":231.30000019073486,"domainLookupEnd":231.30000019073486,"domainLookupStart":231.30000019073486,"fetchStart":231.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":231.30000019073486,"responseEnd":824.1999998092651,"responseStart":824.1999998092651,"secureConnectionStart":231.30000019073486},{"duration":1379.3999996185303,"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":232.19999980926514,"connectEnd":232.19999980926514,"connectStart":232.19999980926514,"domainLookupEnd":232.19999980926514,"domainLookupStart":232.19999980926514,"fetchStart":232.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":232.19999980926514,"responseEnd":1611.5999994277954,"responseStart":1611.5999994277954,"secureConnectionStart":232.19999980926514},{"duration":1388,"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":232.30000019073486,"connectEnd":232.30000019073486,"connectStart":232.30000019073486,"domainLookupEnd":232.30000019073486,"domainLookupStart":232.30000019073486,"fetchStart":232.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":232.30000019073486,"responseEnd":1620.3000001907349,"responseStart":1620.3000001907349,"secureConnectionStart":232.30000019073486},{"duration":552.1999998092651,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1053.8000001907349,"connectEnd":1053.8000001907349,"connectStart":1053.8000001907349,"domainLookupEnd":1053.8000001907349,"domainLookupStart":1053.8000001907349,"fetchStart":1053.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1053.8000001907349,"responseEnd":1606,"responseStart":1605.8999996185303,"secureConnectionStart":1053.8000001907349},{"duration":386.8999996185303,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1249.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1249.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1636.5999994277954,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":63,"responseStart":222,"responseEnd":224,"domLoading":226,"domInteractive":1642,"domContentLoadedEventStart":1642,"domContentLoadedEventEnd":1682,"domComplete":2915,"loadEventStart":2915,"loadEventEnd":2917,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1622.3999996185303},{"name":"bigPipe.sidebar-id.end","time":1623.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1623.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":1626.6999998092651},{"name":"activityTabFullyLoaded","time":1704.6999998092651}],"measures":[],"correlationId":"43f92780e8c0a5","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":92,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}