Current-Users archive

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

mDNSResponder build failure on 64-bit platform (amd64)



This particular line fails due to the assumptions about the size of
the structure,

external/apache2/mDNSResponder/dist/mDNSShared/dnssd_ipc.h:338 :
"char assert1[(sizeof(ipc_msg_hdr)      == 28) ? 1 : -1];"

Proposed fix, as in dns_sd.h, ifdef the offending code out

Index: dnssd_ipc.h
===================================================================
RCS file: 
/cvsroot/src/external/apache2/mDNSResponder/dist/mDNSShared/dnssd_ipc.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 dnssd_ipc.h
--- dnssd_ipc.h 29 Sep 2009 22:14:16 -0000      1.1.1.1
+++ dnssd_ipc.h 30 Sep 2009 08:10:00 -0000
@@ -330,6 +330,7 @@

 void ConvertHeaderBytes(ipc_msg_hdr *hdr);

+#if !defined(__NetBSD__)
 struct CompileTimeAssertionChecks_dnssd_ipc
        {
        // Check that the compiler generated our on-the-wire packet format
structure definitions
@@ -337,5 +338,6 @@
        char assert0[(sizeof(client_context_t) ==  8) ? 1 : -1];
        char assert1[(sizeof(ipc_msg_hdr)      == 28) ? 1 : -1];
        };
+#endif /* __NetBSD__ */

 #endif // DNSSD_IPC_H
Index: dnssd_ipc.h
===================================================================
RCS file: 
/cvsroot/src/external/apache2/mDNSResponder/dist/mDNSShared/dnssd_ipc.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 dnssd_ipc.h
--- dnssd_ipc.h 29 Sep 2009 22:14:16 -0000      1.1.1.1
+++ dnssd_ipc.h 30 Sep 2009 08:10:00 -0000
@@ -330,6 +330,7 @@
 
 void ConvertHeaderBytes(ipc_msg_hdr *hdr);
 
+#if !defined(__NetBSD__)
 struct CompileTimeAssertionChecks_dnssd_ipc
        {
        // Check that the compiler generated our on-the-wire packet format 
structure definitions
@@ -337,5 +338,6 @@
        char assert0[(sizeof(client_context_t) ==  8) ? 1 : -1];
        char assert1[(sizeof(ipc_msg_hdr)      == 28) ? 1 : -1];
        };
+#endif /* __NetBSD__ */
 
 #endif // DNSSD_IPC_H


Home | Main Index | Thread Index | Old Index