<html><head></head><body><div class="ydp8f5096b5yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div id="ydp8f5096b5yiv0254658949"><div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" class="ydp8f5096b5yiv0254658949yahoo-style-wrap"><div id="ydp8f5096b5yiv0254658949ydp363804c2yahoo_quoted_9160682867" class="ydp8f5096b5yiv0254658949ydp363804c2yahoo_quoted"><div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;"><div dir="ltr" data-setdir="false"><div dir="ltr">> How did you build it? If you did a standard build, did you run ldconfig? What did the configure run told about libgcrypt? Check the output of "gpgconf -V".<br clear="none"></div><div dir="ltr"><br clear="none"></div>OK, I tracked it down. libgcrypt 1.11.1 isn't building on my system using the Makefile generated by configure. Here's where it fails:</div><div><br></div><div dir="ltr" data-setdir="false"><div>libtool: link: gcc -I/home/vinay/tmp/include -g -O2 -fvisibility=hidden -fno-delete-null-pointer-checks -Wall -o t-thread-local t-thread-local.o -Wl,--disable-new-dtags ../src/.libs/libgcrypt.so ../compat/.libs/libcompat.a -L/home/vinay/tmp/lib /home/vinay/tmp/lib/libgpg-error.so -Wl,-rpath -Wl,/home/vinay/sw/libgcrypt-1.11.1/src/.libs -Wl,-rpath -Wl,/home/vinay/tmp/lib -Wl,-rpath -Wl,/home/vinay/tmp/lib<br>t-thread-local.o: In function `check_thread_local':<br>/home/vinay/sw/libgcrypt-1.11.1/tests/t-thread-local.c:124: undefined reference to `pthread_create'<br>/home/vinay/sw/libgcrypt-1.11.1/tests/t-thread-local.c:129: undefined reference to `pthread_join'<br>collect2: error: ld returned 1 exit status<br>Makefile:884: recipe for target 't-thread-local' failed<br>make[2]: *** [t-thread-local] Error 1<br>make[2]: Leaving directory '/home/vinay/sw/libgcrypt-1.11.1/tests'<br><br></div>In the Makefile, the recipe to make t-thread-local is:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div>t-thread-local$(EXEEXT): $(t_thread_local_OBJECTS) $(t_thread_local_DEPENDENCIES) $(EXTRA_t_thread_local_DEPENDENCIES)<br> @rm -f t-thread-local$(EXEEXT)<br> $(AM_V_CCLD)$(LINK) $(t_thread_local_OBJECTS) $(t_thread_local_LDADD) $(LIBS)<br><br></div>However, LIBS is the empty string, so there's a -pthread flag missing. Adding it in by hand to the Makefile allows the build to complete.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">So it looks like a problem with ./configure not specifying -pthread when building t-thread-local. Moreover, t-thread-local is new in 1.11.1 - it's not present in 1.11.0.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Kind regards,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Vinay Sajip</div></div></div></div></div></div></div><div id="ydp53d9fdc8yiv0254658949yqtfd84211" class="ydp53d9fdc8yiv0254658949yqt5851969350">
</div><div id="ydp53d9fdc8yiv0254658949yqtfd60062" class="ydp53d9fdc8yiv0254658949yqt5851969350">
</div></body></html>