[MacPorts] #40763: hping3 @20051105_1: build fails: expected parameter declarator

MacPorts noreply at macports.org
Wed Nov 13 12:37:33 PST 2013


#40763: hping3 @20051105_1: build fails: expected parameter declarator
---------------------+-------------------
  Reporter:  rr@…    |      Owner:  pmq@…
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.2.0
Resolution:          |   Keywords:
      Port:  hping3  |
---------------------+-------------------

Comment (by meg_lao@…):

 Replying to [comment:4 kvanrhee@…]:
 > Replying to [comment:2 tryn@…]:
 > > I ran into this with Homebrew, and it has to do with the new/default
 secure strlcpy/strlcat functions.
 > >
 > > One option is to dive into the source and make it properly secure.
 Considering it hasn't been updated for eight years, I went with the second
 options.
 > >
 > > Append this to the CFLAGS: "-D_FORTIFY_SOURCE=0".
 > Can you explain how I do this? Or give me hint to the right direction so
 I can figure it out myself? Thanks!
 I edited the file
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_net_hping3/hping3/work/Makefile
 and change line
  CCOPT= -O2 -Wall   -DUSE_TCL
 to
  CCOPT= -O2 -Wall   -DUSE_TCL -D_FORTIFY_SOURCE=0

 That works for me.

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


More information about the macports-tickets mailing list