Opened 10 years ago

Closed 10 years ago

#41336 closed defect (duplicate)

hping3 build fails under Mavericks

Reported by: Schamschula (Marius Schamschula) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: pmq@…
Port: hping3

Description

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.

Attachments (1)

patch-Makefile.in.diff (1.1 KB) - added by Schamschula (Marius Schamschula) 10 years ago.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by Schamschula (Marius Schamschula)

Attachment: patch-Makefile.in.diff added

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed

Using FSF GCC is not an acceptable solution due to the mixing of C++ runtimes that this will cause. The code needs to be fixed so that it builds with clang.

Anyway, this is a duplicate of #40763. Please search existing tickets before filing a new one.

Note: See TracTickets for help on using tickets.