[gnutls-devel] gnutls-3.2.1 does not build on Solaris 10
Jörn Clausen
joern.clausen at uni-bielefeld.de
Mon Jul 15 09:55:20 CEST 2013
Hello Nikos!
Thanks, but I think the fix is not complete. librt is correctly found and
LIBRT = -lrt
is defined in all relevant Makefiles. But that symbol is not used any
further, i.e. it does not end up in any LDFLAGS. I think this is the
correct place to inject the definition:
--- work.pkgsrc-i86/gnutls-3.2.2/lib/Makefile.in 2013/07/15
07:38:47 1.1
+++ work.pkgsrc-i86/gnutls-3.2.2/lib/Makefile.in 2013/07/15 07:39:22
@@ -1845,7 +1845,7 @@
auth/libgnutls_auth.la algorithms/libgnutls_alg.la \
extras/libgnutls_extras.la $(am__append_8) $(am__append_11) \
$(am__append_14) $(thirdparty_libadd)
-thirdparty_libadd = $(LTLIBZ) $(LTLIBINTL) $(LIBSOCKET) \
+thirdparty_libadd = $(LTLIBZ) $(LTLIBINTL) $(LIBSOCKET) $(LIBRT) \
$(LTLIBPTHREAD) $(LTLIBICONV) $(P11_KIT_LIBS) $(LIB_SELECT) \
$(TSS_LIBS) $(am__append_12) $(am__append_13) $(am__append_17)
@HAVE_LD_OUTPUT_DEF_TRUE at defexecdir = $(bindir)
At least with this change I can build the package.
Regards,
Joern
On 13.07.13 10:59, Nikos Mavrogiannopoulos wrote:
> On 07/10/2013 01:15 PM, Jörn Clausen wrote:
>> Building gnutls-3.2.1 fails on Solaris 10, because "nanosleep" is not
>> found:
>>
>> CCLD psktool
>> Undefined first referenced
>> symbol in file
>> nanosleep ../lib/.libs/libgnutls.so
>> ld: fatal: Symbol referencing errors. No output written to .libs/psktool
>> collect2: error: ld returned 1 exit status
>> gmake[4]: *** [psktool] Error 1
>> This function is implemented in /usr/lib/librt.so:
>
> Thanks. I've added a configure-time check to link against this lib if
> nanosleep isn't in libc.
>
> regards,
> Nikos
>
--
Jörn Clausen joern.clausen at uni-bielefeld.de
Hochschulrechenzentrum http://www.uni-bielefeld.de/hrz/
Universität Bielefeld
More information about the Gnutls-devel
mailing list