From 084185ad65506e59baf13dc15d2a3e1caf81f22a Mon Sep 17 00:00:00 2001 From: Rmys Date: Thu, 16 Apr 2020 22:17:19 +0300 Subject: [PATCH] python3 rebuild libtdb hata ['x86_64-pc-linux-gnu-gcc', 'test.c.1.o', '-o/var/pisi/libtdb-1.4.3-8/work/tdb-1.4.3/bin/.conf_check_5ee5b14e530ad9d2301d004a6951bc7a/testbuild/default/testprog', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/usr/local/lib', '-lpython3.8', '-lcrypt', '-ldl', '-lutil', '-lm', '-lm', '-lpython3.8', '-lcrypt', '-ldl', '-lutil', '-lm', '-lm', '-Wl,-O1', '-Wl,-z,relro', '-Wl,--hash-style=gnu', '-Wl,--as-needed', '-Wl,--sort-common'] err: /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib/libpython3.8.so: undefined reference to `pthread_detach' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib/libpython3.8.so: undefined reference to `sem_post' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib/libpython3.8.so: undefined reference to `pthread_sigmask' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib/libpython3.8.so: undefined reference to `pthread_attr_setstacksize' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib/libpython3.8.so: undefined reference to `pthread_getspecific' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib/libpython3.8.so: undefined reference to `sem_trywait' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib/libpython3.8.so: undefined reference to `pthread_condattr_setclock' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib/libpython3.8.so: undefined reference to `sem_timedwait' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib/libpython3.8.so: undefined reference to `pthread_key_create' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib/libpython3.8.so: undefined reference to `pthread_kill' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib/libpython3.8.so: undefined reference to `sem_wait' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib/libpython3.8.so: undefined reference to `pthread_setspecific' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib/libpython3.8.so: undefined reference to `sem_init' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib/libpython3.8.so: undefined reference to `pthread_key_delete' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib/libpython3.8.so: undefined reference to `pthread_create' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib/libpython3.8.so: undefined reference to `sem_destroy' /usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib/libpython3.8.so: undefined reference to `pthread_getcpuclockid' collect2: error: ld returned 1 exit status --- system/base/python3/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/base/python3/actions.py b/system/base/python3/actions.py index fac6a566..f5c125bc 100644 --- a/system/base/python3/actions.py +++ b/system/base/python3/actions.py @@ -31,7 +31,7 @@ def setup(): shelltools.export("CFLAGS", "-I%s/temp/include -O3" %get.workDIR()) shelltools.export("LDFLAGS", "-L%s/temp/lib -lbz2 -lpthread -ldl" %get.workDIR()) # fix unused direct dependency analysis - shelltools.export("LDSHARED", "x86_64-pc-linux-gnu-gcc -Wl,-O1,--as-needed -shared -lpthread") + #shelltools.export("LDSHARED", "x86_64-pc-linux-gnu-gcc -Wl,-O1,--as-needed -shared -lpthread") autotools.rawConfigure("\ --prefix=/usr \ --enable-shared \