pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/47587: lua not linked to pthread causes issues with modules



The following reply was made to PR pkg/47587; it has been noted by GNATS.

From: "OBATA Akio" <obache%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/47587: lua not linked to pthread causes issues with modules
Date: Sun, 24 Feb 2013 11:12:48 +0900

 On Sun, 24 Feb 2013 09:30:01 +0900, <uzimac%da3m0n8t3r.com@localhost> wrote:
 
 > # lua testpg.lua
 > lua: error loading module 'luasql.postgres' from file 
 > '/usr/lib/lua/5.1/luasql/postgres.so':
 >         Cannot dlopen non-loadable /usr/lib/libpthread.so.1
 >
 >
 > I noticed lua 5.1.5 in /usr/pkg/lang but it does not link to pthread either.
 >
 > Adding this to the Makefile links pthread:
 >
 >
 > PTHREAD_AUTO_VARS=      yes
 > .include "../../mk/pthread.buildlink3.mk"
 > .if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} != "none"
 > SUBST_CLASSES+=         pthread
 > SUBST_STAGE.pthread=    pre-configure
 > SUBST_FILES.pthread=    configure
 > SUBST_SED.pthread=      -e 's|-lpthread|${PTHREAD_LIBS}|'
 > .endif
 
 Just try to add only "PTHREAD_AUTO_VARS=yes".
 pkgsrc/mk/dlopen.{buildlink3,builtin}.mk should
 take care such issues automatically for required platforms.
 
 -- 
 OBATA Akio / obache%NetBSD.org@localhost
 


Home | Main Index | Thread Index | Old Index