[Bug 23349] New: telepathy-gabble-0.7.31: 'struct sockaddr_storage' declared inside parameter list

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Aug 16 20:42:38 CEST 2009


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

           Summary: telepathy-gabble-0.7.31: 'struct sockaddr_storage'
                    declared inside parameter list
           Product: Telepathy
           Version: unspecified
          Platform: x86-64 (AMD64)
        OS/Version: NetBSD
            Status: NEW
          Severity: normal
          Priority: medium
         Component: telepathy-gabble
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: wiz at danbala.tuwien.ac.at


Created an attachment (id=28672)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=28672)
Patch fixing the problem.

gibber-util.c doesn't compile on NetBSD-5.99.15/amd64:

In file included from gibber-util.c:26:
gibber-util.h:29: warning: 'struct sockaddr_storage' declared inside parameter
list
gibber-util.h:29: warning: its scope is only this definition or declaration,
which is probably not what you want
gibber-util.c:29: warning: 'struct sockaddr_storage' declared inside parameter
list
gibber-util.c:30: error: conflicting types for 'gibber_normalize_address'
gibber-util.h:29: error: previous declaration of 'gibber_normalize_address' was
here
gibber-util.c: In function 'gibber_normalize_address':
gibber-util.c:34: error: dereferencing pointer to incomplete type
gibber-util.c:34: error: 'AF_INET6' undeclared (first use in this function)
gibber-util.c:34: error: (Each undeclared identifier is reported only once
gibber-util.c:34: error: for each function it appears in.)
gibber-util.c:34: warning: implicit declaration of function
'IN6_IS_ADDR_V4MAPPED'
gibber-util.c:34: error: dereferencing pointer to incomplete type
gibber-util.c:40: error: dereferencing pointer to incomplete type
gibber-util.c:41: error: dereferencing pointer to incomplete type
gibber-util.c:43: error: dereferencing pointer to incomplete type
gibber-util.c:43: error: 'AF_INET' undeclared (first use in this function)
gibber-util.c:44: error: dereferencing pointer to incomplete type
gibber-util.c:45: error: dereferencing pointer to incomplete type

The attached patch fixes the problem.


-- 
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