On Tue, Feb 2, 2016 at 8:25 AM, Thomas Claveirole
<thomas.claveirole(a)green-communications.fr> wrote:
Hi Waldemar,
> > getaddrinfo() does not implement IDN encoding, and always fail
> > when provided an IDN flag (e.g., AI_IDN) with EAI_BADFLAGS. [...]
Those errors look familiar. I had a similar problem with inetutils and
uClibc (ping was broken -- ping!), for which I submitted a patch
(which was never accepted).
Perhaps you could just patch vlc in a similar way not to use the
offending AI_IDN flag?
http://lists.gnu.org/archive/html/bug-inetutils/2015-10/msg00001.html
I haven't tried it at all, mind you, but I think the below (or
something like it) will address your problem:
diff --git a/include/vlc_network.h b/include/vlc_network.h
index 28a9fa6..39f011b 100644
--- a/include/vlc_network.h
+++ b/include/vlc_network.h
@@ -193,6 +193,9 @@ VLC_API ssize_t net_vaPrintf( vlc_object_t
*p_this, int fd, const char *psz_fmt,
#ifndef AI_NUMERICSERV
# define AI_NUMERICSERV 0
#endif
+#ifndef HAVE_LIBCIDN /* Does not have a usable AI_IDN flag */
+# undef AI_IDN
+#endif
#ifndef AI_IDN
# define AI_IDN 0 /* GNU/libc extension */
#endif
I think trying the above wouldn't take much of your time.
It should also be noted that you can configure glibc without IDN
support, too (libcidn), which makes you wind up in the same situation.
Thus, do not define IDN flags: it is better not to compile rather
than to compile a code that always fail.
I would rather like to see that IDN gets implemented and via a
config symbol disabled by default.
[...]
Are you willing on implementing or porting an existing
implementation to uClibc-ng?
Unfortunately, I do not plan to do that. I am just trying to have VLC
work with Buildroot and uClibc-ng, and I do not have much time to
spend on this.
Besides, IDN relies on Unicode, and I guess the implementation would
be either fairly complex or involve other libraries (ICU, libidn?)
This would also be probably big.
Best regards,
--
Thomas Claveirole <thomas.claveirole(a)green-communications.fr>
Cheers,
Jaret