Bug 23346

Summary: telepathy-gabble-0.31: credentials compilation problem
Product: Telepathy Reporter: Thomas Klausner <tk>
Component: gabbleAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED DUPLICATE QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: NetBSD   
Whiteboard:
i915 platform: i915 features:

Description Thomas Klausner 2009-08-16 11:14:36 UTC
gibber-unix-transport.c doesn't compile on NetBSD-5.99.15/amd64:
gibber-unix-transport.c: In function 'gibber_unix_transport_send_credentials':
gibber-unix-transport.c:207: error: invalid application of 'sizeof' to incomplete type 'struct ucred'
gibber-unix-transport.c:225: error: invalid application of 'sizeof' to incomplete type 'struct ucred'
gibber-unix-transport.c:227: error: 'SCM_CREDENTIALS' undeclared (first use in this function)
gibber-unix-transport.c:227: error: (Each undeclared identifier is reported only once
gibber-unix-transport.c:227: error: for each function it appears in.)
gibber-unix-transport.c:230: error: dereferencing pointer to incomplete type
gibber-unix-transport.c:231: error: dereferencing pointer to incomplete type
gibber-unix-transport.c:232: error: dereferencing pointer to incomplete type
gibber-unix-transport.c: In function 'gibber_unix_transport_read':
gibber-unix-transport.c:259: error: invalid application of 'sizeof' to incomplete type 'struct ucred'
gibber-unix-transport.c:272: error: 'SO_PASSCRED' undeclared (first use in this function)
gibber-unix-transport.c:329: error: dereferencing pointer to incomplete type
gibber-unix-transport.c:330: error: dereferencing pointer to incomplete type
gibber-unix-transport.c:331: error: dereferencing pointer to incomplete type
Comment 1 Simon McVittie 2009-08-24 13:08:26 UTC
Same problem as on Darwin. Could you try out the patch seen on that bug and see whether it helps you, please?

If you're enough of a BSD guru to make credentials passing actually work on *BSD/Darwin, patches would be very welcome; we currently have no developers running BSD.

*** This bug has been marked as a duplicate of bug 22968 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.