On Wed, Nov 05, 2014 at 10:34:27PM -0800, victor wrote: > Thanks for the input. With below command, I got new error as below: > > ./configure --prefix=/usr/local/git-2.1.3/ --disable-pthreads > sudo gmake NO_GETTEXT=1 install > > Undefined first referenced > symbol in file > type_cas_unlock builtin/index-pack.o > type_cas_lock builtin/index-pack.o > ld: fatal: Symbol referencing errors. No output written to git > > How can I overcome this?
The NO_PTHREADS build was broken in v2.1.2 and v2.1.3. The fix, from commit e0e2128 (index-pack: fix compilation with NO_PTHREADS, 2014-10-11) is in the current "master" branch. If you want to apply it manually, it is just: diff --git a/builtin/index-pack.c b/builtin/index-pack.c index 792c66c..a369f55 100644 --- a/builtin/index-pack.c +++ b/builtin/index-pack.c @@ -185,6 +185,9 @@ static void cleanup_thread(void) #define deepest_delta_lock() #define deepest_delta_unlock() +#define type_cas_lock() +#define type_cas_unlock() + #endif -Peff -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html