Bug 78841 - mDNSResponder compile warnings on amd64
Summary: mDNSResponder compile warnings on amd64
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-14 20:00 UTC by Vick Khera
Modified: 2005-03-16 12:46 UTC (History)
0 users

See Also:


Attachments
patch-mDNSPosix (2.40 KB, application/octet-stream; x-unix-mode=0644)
2005-03-14 20:12 UTC, Vick Khera
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vick Khera 2005-03-14 20:00:08 UTC
	

building mDNSResponder results in the following warnings, which probably will
cause run-time problems given that the printf code will want to read a long
when it is really given just an integer.


[root@yertle]# make
===>  Vulnerability check disabled, database not found
===>  Extracting for mDNSResponder-98
=> Checksum OK for mDNSResponder-98.tar.gz.
/usr/ports/distfiles//mDNSResponder-98.tar.gz:   80.4%
===>  Patching for mDNSResponder-98
===>  Applying FreeBSD patches for mDNSResponder-98
===>   mDNSResponder-98 depends on executable: gmake - found
===>  Configuring for mDNSResponder-98
===>  Building for mDNSResponder-98
Responder daemon done
Client library done
Client.c: In function `main':
Client.c:275: warning: long int format, different type arg (arg 4)
Embedded Standalone Client done
Responder.c: In function `main':
Responder.c:835: warning: long int format, different type arg (arg 4)
Embedded Standalone Responder done
ProxyResponder.c: In function `main':
ProxyResponder.c:325: warning: long int format, different type arg (arg 3)
Embedded Standalone ProxyResponder done
Identify.c: In function `main':
Identify.c:403: warning: long int format, different type arg (arg 3)
Identify done
NetMonitor.c: In function `main':
NetMonitor.c:1129: warning: long int format, different type arg (arg 4)
NetMonitor done
dnsextd done

Fix: 

cast the arg to (long) in the above files.
How-To-Repeat: 	

"make" in net/mDNSResponder on an amd64 (or any 64-bit architecture).
Comment 1 Vick Khera 2005-03-14 20:12:04 UTC
Here's a patch file to drop into the files subdir of the port.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2005-03-16 09:24:38 UTC
Responsible Changed
From-To: freebsd-ports-bugs->alfred

Over to maintainer.
Comment 3 Alfred Perlstein freebsd_committer freebsd_triage 2005-03-16 11:21:54 UTC
Responsible Changed
From-To: alfred->freebsd-ports-bugs

Sorry, dropping maintainer.
Comment 4 Florent Thoumie freebsd_committer freebsd_triage 2005-03-16 12:44:35 UTC
State Changed
From-To: open->closed

Committed, thanks! 
Note: I've rewritten the patch, modifying printf format makes more 
sense since exit status are ints, not longs.