Current-Users archive

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

Re: mDNSResponder build failure on 64-bit platform (amd64)



On Wed, 30 Sep 2009, Ty Sarna wrote:

On Sep 30, 2009, at 4:21 AM, Elias Benali wrote:

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];"

Can you provide the whole error message? I started an amd64 cross build and I believe I'm already well past the part where this should happen. It was also reported to me that it builds on sparc64.

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

The dns_sd.h doesn't fail, (and seems extremely unlikely to anyway), so it's just commented out to avoid getting a warning in everything using the header.

Did you see:
#   compile  lib/dnssd_clientlib.ln
CC=/usr/src/obj.amd64/tooldir.NetBSD-5.99.19-amd64/bin/x86_64--netbsd-gcc 
/usr/src/obj.amd64/tooldir.NetBSD-5.99.19-amd64/bin/x86_64--netbsd-lint -chapbxzFS -d /usr/include  
-DHAVE_IPV6=1 -DPID_FILE=\"/var/run/mdnsd/mdnsd.pid\" 
-DMDNS_UDS_SERVERPATH=\"/var/run/mdnsd/mdnsd\" 
-I/usr/src/external/apache2/mDNSResponder/dist/mDNSShared -i 
/usr/src/external/apache2/mDNSResponder/dist/mDNSShared/dnssd_clientlib.c
/usr/src/external/apache2/mDNSResponder/dist/mDNSShared/dnssd_clientlib.c(152): 
warning: cast discards 'const' from pointer target type [275]
/usr/src/external/apache2/mDNSResponder/dist/mDNSShared/dnssd_clientlib.c(253): 
warning: constant in conditional context [161]
/usr/src/external/apache2/mDNSResponder/dist/mDNSShared/dnssd_clientlib.c(263): 
warning: pointer casts may be troublesome [247]



--
Hisashi T Fujinaka - htodd%twofifty.com@localhost
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte


Home | Main Index | Thread Index | Old Index