Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 760123 - sys-libs/ldb-2.1.4-r1: failed compile (mdb.c:(.text+0x1bdf): undefined reference to `pthread_getspecific')
Summary: sys-libs/ldb-2.1.4-r1: failed compile (mdb.c:(.text+0x1bdf): undefined refere...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
Depends on:
Reported: 2020-12-16 07:51 UTC by adrian.miriuta
Modified: 2021-06-12 18:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

emerge --info '=sys-libs/ldb-2.1.4-r1::gentoo' (emerge__info.txt,7.71 KB, text/plain)
2020-12-16 07:51 UTC, adrian.miriuta
build.log (build.log,103.08 KB, text/x-log)
2020-12-16 07:52 UTC, adrian.miriuta
emerge -pqv '=sys-libs/ldb-2.1.4-r1::gentoo' (emerge_pqv.txt,2.07 KB, text/plain)
2020-12-16 07:52 UTC, adrian.miriuta

Note You need to log in before you can comment on or make changes to this bug.
Description adrian.miriuta 2020-12-16 07:51:10 UTC
Created attachment 678421 [details]
emerge --info '=sys-libs/ldb-2.1.4-r1::gentoo'

* ERROR: sys-libs/ldb-2.1.4-r1::gentoo failed (compile phase):
 *   build failed
 * Call stack:
 *, line  125:  Called src_compile
 *   environment, line 3610:  Called multilib-minimal_src_compile
 *   environment, line 2285:  Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
 *   environment, line 2555:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 2220:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 2218:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
 *   environment, line  436:  Called multilib-minimal_abi_src_compile
 *   environment, line 2279:  Called multilib_src_compile
 *   environment, line 2767:  Called waf-utils_src_compile
 *   environment, line 4362:  Called die
 * The specific snippet of code:
 *       "${WAF_BINARY}" ${_mywafconfig} ${jobs} "${@}" || die "build failed"
 * If you need support, post the output of `emerge --info '=sys-libs/ldb-2.1.4-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/ldb-2.1.4-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/ldb-2.1.4-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/ldb-2.1.4-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/ldb-2.1.4-r1/work/ldb-2.1.4-abi_x86_64.amd64'
 * S: '/var/tmp/portage/sys-libs/ldb-2.1.4-r1/work/ldb-2.1.4'
Comment 1 adrian.miriuta 2020-12-16 07:52:03 UTC
Created attachment 678424 [details]
Comment 2 adrian.miriuta 2020-12-16 07:52:26 UTC
Created attachment 678427 [details]
emerge -pqv '=sys-libs/ldb-2.1.4-r1::gentoo'
Comment 3 Adam 2021-06-12 16:47:12 UTC
I've had a similar issue (another undeined reference to a pthreads function) which i fixed by adding "-pthread" to CFLAGS in my /etc/portage/make.conf
Comment 4 Adam 2021-06-12 18:50:38 UTC
unfortunately, adding "-lpthread" to CFLAGS will cause other ebuild like python to fail.