Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > fbe09aab31c235b5034b534fa76e2367 > files > 1

libeXosip2-3.1.0-4.fc15.src.rpm

From bc22adf7a01ff307896dac2fb9bc70d94482a3c7 Mon Sep 17 00:00:00 2001
From: Adam Tkac <atkac@redhat.com>
Date: Tue, 5 Feb 2008 14:00:43 +0100
Subject: [PATCH] GCC 4.3 problem building libeXosip2?

On Mon, Feb 04, 2008 at 02:36:50PM -0600, Jeffrey Ollie wrote:
> I'm working on an update to libeXosip2, unfortunately I get some
> errors while building on rawhide:
>
> http://koji.fedoraproject.org/koji/getfile?taskID=395271&name=build.log
>
> The problems occur both building locally on mock and when doing a
> scratch build on koji.   Builds on F-7 and F-8 work fine so I'm fairly
> confident that this is something related to GCC 4.3.  I'm working on
> getting a rawhide system up and running to do some testing - in the
> meantime is there anyone that can take a look and give me some
> pointers?
>
> Jeff
>

libeXosip2 is buggy. NI_MAXHOST is in #ifdef statement in header but
in code is used without #ifdef. Simple patch is attached

Adam

--
Adam Tkac, Red Hat, Inc.
---
 src/eXosip2.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/eXosip2.h b/src/eXosip2.h
index 64de408..3923508 100644
--- a/src/eXosip2.h
+++ b/src/eXosip2.h
@@ -87,13 +87,14 @@ extern "C"
 {
 #endif
 
+#define NI_MAXHOST      1025
+
 #if defined(__arc__)
 #define USE_GETHOSTBYNAME
 #endif
 
 #if defined(USE_GETHOSTBYNAME)
 
-#define NI_MAXHOST      1025
 #define NI_MAXSERV      32
 #define NI_NUMERICHOST  1
 
-- 
1.5.3.8