[gnutls-devel] portability problem in gnutls-3.2.7: rpl_strerror missing
Thomas Klausner
wiz at NetBSD.org
Fri Nov 29 18:11:44 CET 2013
Hi!
gnutls decides to replace NetBSD's strerror() with its own; I guess
because this configure test fails:
checking whether strerror(0) succeeds... no
strerror(0) on NetBSD is: "Undefined error: 0"
I don't see how that is a problem, can someone explain please?
However, it later fails to link:
CCLD gnutls-cli-debug
../lib/.libs/libgnutls.so: undefined reference to `rpl_strerror'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Where is this function supposed to be defined?
grep -r rpl_strerror doesn't give me a hint:
gnutls-3.2.7/src/gl/string.in.h:# define strerror rpl_strerror
gnutls-3.2.7/src/gl/string.in.h:# define strerror_r rpl_strerror_r
gnutls-3.2.7/src/gl/string.h:# define strerror rpl_strerror
gnutls-3.2.7/src/gl/string.h:# define strerror_r rpl_strerror_r
gnutls-3.2.7/gl/string.in.h:# define strerror rpl_strerror
gnutls-3.2.7/gl/string.in.h:# define strerror_r rpl_strerror_r
gnutls-3.2.7/gl/string.h:# define strerror rpl_strerror
gnutls-3.2.7/gl/string.h:# define strerror_r rpl_strerror_r
Ideas?
Thanks,
Thomas
More information about the Gnutls-devel
mailing list