Re: GCC 4.3 problem building libeXosip2?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/5/08, Adam Tkac <atkac@xxxxxxxxxx> 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

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux