GCC 4.3 problem building libeXosip2?

Jeffrey Ollie jeff at ocjtech.us
Thu Feb 7 03:59:24 UTC 2008


On 2/5/08, Adam Tkac <atkac at redhat.com> wrote:
>
> libeXosip2 is buggy. NI_MAXHOST is in #ifdef statement in header but
> in code is used without #ifdef. Simple patch is attached

Thanks for the patch - it got my package building.  However, I've been
digging deeper into the situation and found the following change was
made recently in F-9's glibc:

diff --git a/resolv/netdb.h b/resolv/netdb.h
index 7c5c9c9..5e007e2 100644
--- a/resolv/netdb.h
+++ b/resolv/netdb.h
@@ -607,8 +607,10 @@ struct gaicb
 #  define EAI_IDN_ENCODE  -105 /* IDN encoding failed.  */
 # endif

-# define NI_MAXHOST      1025
-# define NI_MAXSERV      32
+# ifdef __USE_GNU
+#  define NI_MAXHOST      1025
+#  define NI_MAXSERV      32
+# endif

 # define NI_NUMERICHOST        1       /* Don't try to look up hostname.  */
 # define NI_NUMERICSERV 2      /* Don't convert port number to name.  */

So that means that I'd have to define _GNU_SOURCE to use these macros.
 I had a similar issue when compiling the new linphone package in
rawhide.  I'm not sure which way is the "correct" way but something
that will certainly need to be kept in mind.

Jeff




More information about the fedora-devel-list mailing list