[MacPorts] #30960: nsping fails to build on Lion
MacPorts
noreply at macports.org
Wed Aug 24 08:54:43 PDT 2011
#30960: nsping fails to build on Lion
-----------------------------------+----------------------------------------
Reporter: dyoung@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.1
Keywords: lion | Port:
-----------------------------------+----------------------------------------
main.log is attached.
{{{
$ sudo port -v install nsping
Password:
---> Building nsping
make: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_nsping/nsping/work/nsping-0.8'
cc -g -DBIND_8_COMPAT -c -o nsping.o nsping.c
In file included from nsping.c:13:
nsping.h:45: error: conflicting types for ‘dprintf’
/usr/include/stdio.h:446: error: previous declaration of ‘dprintf’ was
here
nsping.c: In function ‘dns_packet’:
nsping.c:339: warning: format ‘%d’ expects type ‘int’, but argument 6 has
type ‘long int’
nsping.c: At top level:
nsping.c:613: error: conflicting types for ‘dprintf’
/usr/include/stdio.h:446: error: previous declaration of ‘dprintf’ was
here
make: *** [nsping.o] Error 1
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_nsping/nsping/work/nsping-0.8'
shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_nsping/nsping/work/nsping-0.8"
&& /usr/bin/make -j4 -w " returned error 2
Error: Target org.macports.build returned: shell command failed (see log
for details)
Warning: the following items did not execute (for nsping):
org.macports.activate org.macports.build org.macports.destroot
org.macports.install
Log for nsping is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_nsping/nsping/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
}}}
Looks like the "dprintf" function in nsping.c is colliding with that of
/usr/include/stdio.h, which wasn't there in 10.6
On 10.7:
{{{
$ grep -P 'int\tdprintf' /usr/include/stdio.h
int dprintf(int, const char * __restrict, ...)
__DARWIN_LDBL_COMPAT(dprintf) __printflike(2, 3)
__OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
}}}
--
Ticket URL: <https://trac.macports.org/ticket/30960>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list