[Bug 22972] another darwin build problem

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jul 28 11:55:12 CEST 2009


http://bugs.freedesktop.org/show_bug.cgi?id=22972





--- Comment #1 from Simon McVittie <simon.mcvittie at collabora.co.uk>  2009-07-28 02:55:11 PST ---
Looks like three separate portability bugs; thanks for doing the make -k, this
lets us deal with them all at the same time!

(In reply to comment #0)
> next build issue...here is the complete output on stderr when running make -k:
> 
> gibber-resolver.c: In function 'gibber_resolver_res_query_to_list':
> gibber-resolver.c:667: error: 'HEADER' undeclared (first use in this function)
> gibber-resolver.c:667: error: (Each undeclared identifier is reported only once
> gibber-resolver.c:667: error: for each function it appears in.)
> gibber-resolver.c:669: error: 'head' undeclared (first use in this function)
> gibber-resolver.c:669: error: parse error before ')' token
> gibber-resolver.c:678: error: 'QFIXEDSZ' undeclared (first use in this
> function)
> gibber-resolver.c:692: error: 'T_SRV' undeclared (first use in this function)
> gibber-resolver.c:692: error: 'C_IN' undeclared (first use in this function)

Jack, could you look at your standard library headers - is there a macro we can
use to obtain these on Darwin? On Linux you need either
<arpa/nameser_compat.h>, or <arpa/nameser.h> with BIND_4_COMPAT defined (which
that header does automatically). Perhaps defining BIND_4_COMPAT on Darwin would
work?

Sjoerd, do you have any idea about the portability of those headers?

> gibber-resolver.c: In function 'gibber_resolver_gai_error_to_g_error':
> gibber-resolver.c:738: error: 'EAI_OVERFLOW' undeclared (first use in this
> function)

That error code might be Linux-specific; we could do an autoconf test for it?

> util.c: In function 'gabble_generate_id':
> util.c:82: error: storage size of 'uu' isn't known
> util.c:86: warning: implicit declaration of function 'uuid_generate_random'
> util.c:87: warning: implicit declaration of function 'uuid_unparse_lower'
> util.c:82: warning: unused variable 'uu'
> make[3]: *** [util.lo] Error 1

lib/gibber/Makefile.am should add UUID_CFLAGS to Makefile.am, but doesn't.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the telepathy-bugs mailing list