Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] heimdal: explicitly set -lpthread
@ 2015-04-21  2:04 Ryan Coe
  2015-04-21  7:35 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Ryan Coe @ 2015-04-21  2:04 UTC (permalink / raw)
  To: buildroot

fixes the following build error:

output/build/host-heimdal-1.5.3/lib/sqlite/.libs/libheimsqlite.a(sqlite3.o): In function `pthreadMutexTry':
sqlite3.c:(.text+0x5795): undefined reference to `pthread_mutex_trylock'
output/build/host-heimdal-1.5.3/lib/sqlite/.libs/libheimsqlite.a(sqlite3.o): In function `pthreadMutexAlloc':
sqlite3.c:(.text+0xbf84): undefined reference to `pthread_mutexattr_init'
sqlite3.c:(.text+0xbf91): undefined reference to `pthread_mutexattr_settype'
sqlite3.c:(.text+0xbfa4): undefined reference to `pthread_mutexattr_destroy'
output/build/host-heimdal-1.5.3/base/.libs/libheimbase.a(heimbase.o): In function `init_ar_tls':
heimbase.c:(.text+0x4f): undefined reference to `pthread_key_create'
output/build/host-heimdal-1.5.3/base/.libs/libheimbase.a(heimbase.o): In function `autorel_tls':
heimbase.c:(.text+0x263): undefined reference to `pthread_getspecific'
heimbase.c:(.text+0x291): undefined reference to `pthread_setspecific'
collect2: error: ld returned 1 exit status
make[3]: *** [verify_krb5_conf] Error 1
make[3]: Leaving directory `output/build/host-heimdal-1.5.3/lib/krb5'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `output/build/host-heimdal-1.5.3/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `output/build/host-heimdal-1.5.3'
make: *** [output/build/host-heimdal-1.5.3/.stamp_built] Error 2

Signed-off-by: Ryan Coe <bluemrp9@gmail.com>

---
Changes v1 -> v2:
  - add description about build failure
  - remove host-flex addition
---
 package/heimdal/heimdal.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/heimdal/heimdal.mk b/package/heimdal/heimdal.mk
index 972f15c..fef4174 100644
--- a/package/heimdal/heimdal.mk
+++ b/package/heimdal/heimdal.mk
@@ -10,7 +10,7 @@ HEIMDAL_DEPENDENCIES = host-e2fsprogs host-pkgconf
 HEIMDAL_INSTALL_STAGING = YES
 # static because of -fPIC issues with e2fsprogs on x86_64 host
 HOST_HEIMDAL_CONF_OPTS = --with-x=no --disable-shared --enable-static
-HOST_HEIMDAL_CONF_ENV = MAKEINFO=true
+HOST_HEIMDAL_CONF_ENV = MAKEINFO=true LIBS="-lpthread"
 HEIMDAL_MAKE = $(MAKE1)
 # For heimdal-0004-compile_et.patch
 HEIMDAL_AUTORECONF = YES
-- 
2.3.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-04-22  7:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-21  2:04 [Buildroot] [PATCH v2] heimdal: explicitly set -lpthread Ryan Coe
2015-04-21  7:35 ` Thomas Petazzoni
2015-04-22  4:32   ` Ryan Coe
2015-04-22  7:39     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox