[MacPorts] #41336: hping3 build fails under Mavericks

MacPorts noreply at macports.org
Tue Nov 12 13:23:51 PST 2013


#41336: hping3 build fails under Mavericks
----------------------------+--------------------------------
 Reporter:  mschamschula@…  |      Owner:  macports-tickets@…
     Type:  defect          |     Status:  new
 Priority:  Normal          |  Milestone:
Component:  ports           |    Version:  2.2.1
 Keywords:                  |       Port:  hping3
----------------------------+--------------------------------
 hping3 has run into a common compiler issue under Mavericks. clang fails
 with

 {{{
 gethostname.c:21:8: error: expected parameter declarator
 size_t strlcpy(char *dst, const char *src, size_t siz);
        ^
 }}}

 A simple work around is to use gcc, e.g. gcc-mp-4.8. As Makefile.in has
 gcc hard coded, adding configure.cc in the Portfile does not work.
 Modified patch-Makefile.in.diff attached.

-- 
Ticket URL: <https://trac.macports.org/ticket/41336>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list