Missing ‘strverscmp’ Gnulib module
Ludovic Courtès
ludo at gnu.org
Tue Mar 30 18:43:37 CEST 2010
Hi Simon,
Simon Josefsson <simon at josefsson.org> writes:
> ludo at gnu.org (Ludovic Courtès) writes:
>> (You should really have a ‘bug-libtasn1’ mailing list. :-))
>
> It is called gnutls-devel at gnu.org. ;) Maybe a bug-libtasn1 (or
> help-libtasn1) list should be started, although there is some cost to
> maintain yet another mailing list for me... let's see how heavy the
> libtasn1-specific traffic will be on gnutls-devel first.
Or you could ask for an alias bug-libtasn1 at gnu.org ->
gnutls-devel at gnu.org, for the sake of consistency with other GNU
projects mailing list names.
>> Libtasn1 should use Gnulib’s ‘strverscmp’ module since that function is
>> a GNU extension and is lacking on non-GNU platforms (e.g.,
>> <http://hydra.nixos.org/build/336708>).
>
> Libtasn1 already uses that module, but didn't link to it... Fixed as
> below:
>
> http://git.savannah.gnu.org/cgit/libtasn1.git/commit/?id=ab67c9ada8549b03b3345b912362698355ef5a19
Yeah, it fixes FreeBSD builds! :-)
> Let me know if you find any other portability issues.
On Darwin:
--8<---------------cut here---------------start------------->8---
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../lib -I../gl -I../gl -g -O2 -c Test_errors.c
Test_errors.c: In function 'main':
Test_errors.c:33: warning: 'libtasn1_strerror' is deprecated (declared at ../lib/libtasn1.h:319)
Test_errors.c:34: warning: 'libtasn1_perror' is deprecated (declared at ../lib/libtasn1.h:324)
/bin/sh ../libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2 -no-install -o Test_errors Test_errors.o ../lib/libtasn1.la
libtool: link: warning: `-no-install' is ignored for i386-apple-darwin9.8.0
libtool: link: warning: assuming `-no-fast-install' instead
libtool: link: gcc -std=gnu99 -g -O2 -o .libs/Test_errors Test_errors.o ../lib/.libs/libtasn1.dylib
Undefined symbols:
"_libtasn1_strerror", referenced from:
_main in Test_errors.o
"_libtasn1_perror", referenced from:
_main in Test_errors.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [Test_errors] Error 1
--8<---------------cut here---------------end--------------->8---
(From <http://hydra.nixos.org/build/336800>.)
I can set up email notification if you want.
Thanks,
Ludo’.
More information about the Gnutls-devel
mailing list