Test derived from the BZ
9.2-1 and 10.0-1 both do work for x86 (as expected)
$ apt install libglusterfs-dev gcc $ cat gtest.c #include <stdio.h> #include <dlfcn.h> #include <assert.h>
int main(int argc, char **argv) { void *h = dlopen("/usr/lib/x86_64-linux-gnu/libglusterfs.so.0", RTLD_NOW); if (!h) fprintf (stderr, "dlerror = %s\n", dlerror()); return 0; } $ gcc -Wall gtest.c -o gtest -ldl -g $ ./gtest
But on s390x (we only see the FTBFS on s390x+arm64) (Path obviously has to be adapted)
#include <stdio.h> #include <dlfcn.h> #include <assert.h>
int main(int argc, char **argv) { void *h = dlopen("/usr/lib/s390x-linux-gnu/libglusterfs.so.0", RTLD_NOW); if (!h) fprintf (stderr, "dlerror = %s\n", dlerror()); return 0; }
Impish fine root@i-gluster:~# ./gtest
Jammy broken root@j-gluster:~# ./gtest dlerror = /lib/s390x-linux-gnu/libtcmalloc.so.4: cannot allocate memory in static TLS block
Test derived from the BZ
9.2-1 and 10.0-1 both do work for x86 (as expected)
$ apt install libglusterfs-dev gcc
$ cat gtest.c
#include <stdio.h>
#include <dlfcn.h>
#include <assert.h>
int main(int argc, char **argv) "/usr/lib/ x86_64- linux-gnu/ libglusterfs. so.0", RTLD_NOW);
{
void *h = dlopen(
if (!h) fprintf (stderr, "dlerror = %s\n", dlerror());
return 0;
}
$ gcc -Wall gtest.c -o gtest -ldl -g
$ ./gtest
But on s390x (we only see the FTBFS on s390x+arm64)
(Path obviously has to be adapted)
#include <stdio.h>
#include <dlfcn.h>
#include <assert.h>
int main(int argc, char **argv) "/usr/lib/ s390x-linux- gnu/libglusterf s.so.0" , RTLD_NOW);
{
void *h = dlopen(
if (!h) fprintf (stderr, "dlerror = %s\n", dlerror());
return 0;
}
Impish fine
root@i-gluster:~# ./gtest
Jammy broken linux-gnu/ libtcmalloc. so.4: cannot allocate memory in static TLS block
root@j-gluster:~# ./gtest
dlerror = /lib/s390x-