Opened 11 years ago
Closed 10 years ago
#40763 closed defect (fixed)
hping3 @20051105_1: build fails: expected parameter declarator
Reported by: | rr@… | Owned by: | Gminfly |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.0 |
Keywords: | Cc: | Schamschula (Marius Schamschula), kvanrhee@…, schnide (Joe Schnide), joao.netto@…, SickTeddyBear, macports@… | |
Port: | hping3 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
sytrymb:~ root# port install hping3 ---> Computing dependencies for hping3 ---> Fetching archive for hping3 ---> Attempting to fetch hping3-20051105_1.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/hping3 ---> Attempting to fetch hping3-20051105_1.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/hping3 ---> Attempting to fetch hping3-20051105_1.darwin_13.x86_64.tbz2 from http://packages.macports.org/hping3 ---> Fetching distfiles for hping3 ---> Attempting to fetch hping3-20051105.tar.gz from http://lil.fr.distfiles.macports.org/hping3 ---> Verifying checksums for hping3 ---> Extracting hping3 ---> Applying patches to hping3 ---> Configuring hping3 ---> Building hping3 Error: org.macports.build for port hping3 returned: command execution failed Please see the log file for port hping3 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_hping3/hping3/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port hping3 failed
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_hping3/hping3/work/hping3-20051105' :info:build gcc -c -O2 -Wall -DUSE_TCL -g main.c :info:build gcc -c -O2 -Wall -DUSE_TCL -g getifname.c :info:build gcc -c -O2 -Wall -DUSE_TCL -g getlhs.c :info:build gcc -c -O2 -Wall -DUSE_TCL -g parseoptions.c :info:build gcc -c -O2 -Wall -DUSE_TCL -g datafiller.c :info:build gcc -c -O2 -Wall -DUSE_TCL -g datahandler.c :info:build gcc -c -O2 -Wall -DUSE_TCL -g gethostname.c :info:build gcc -c -O2 -Wall -DUSE_TCL -g binding.c :info:build gethostname.c:21:8: error: expected parameter declarator :info:build size_t strlcpy(char *dst, const char *src, size_t siz); :info:build ^
Attachments (5)
Change History (24)
Changed 11 years ago by rr@…
comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to pmq@… |
Port: | hping3 added |
Summary: | Error: Processing of port hping3 failed → hping3 @20051105_1: build fails: expected parameter declarator |
comment:2 follow-ups: 3 4 Changed 11 years ago by tryn@…
comment:3 Changed 11 years ago by sck-nogas (Scott C. Kennedy)
Replying to 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".
Did the same, it worked for me.
comment:4 follow-up: 9 Changed 11 years ago by kvanrhee@…
Replying to 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!
comment:9 follow-up: 13 Changed 11 years ago by meg_lao@…
Replying to kvanrhee@…:
Replying to 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.
comment:11 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | joao.netto@… added |
---|
Has duplicate #42417.
comment:13 Changed 11 years ago by macports@…
Replying to meg_lao@…:
Replying to kvanrhee@…:
Replying to 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_TCLto
CCOPT= -O2 -Wall -DUSE_TCL -D_FORTIFY_SOURCE=0That works for me.
Could you please provide any hint as to how to proceed with the installation of hping3? The Makefile mentioned in your post does not exist after a (failed) build on my system. So I'd like to know how to apply the fix and proceed with the installation thereafter. Thanks in advance!
comment:15 follow-up: 16 Changed 11 years ago by Schamschula (Marius Schamschula)
I revisited hping3 this morning: I've updated the Portfile (no change, but moved livecheck to bottom), and added -D_FORTIFY_SOURCE=0 to patch-Makefile.in.diff. Both are attached.
Changed 11 years ago by Schamschula (Marius Schamschula)
Attachment: | Portfile-hping3.diff added |
---|
Changed 11 years ago by Schamschula (Marius Schamschula)
Attachment: | patch-Makefile.in.diff added |
---|
comment:16 Changed 11 years ago by macports@…
Replying to mschamschula@…:
I revisited hping3 this morning: I've updated the Portfile (no change, but moved livecheck to bottom), and added -D_FORTIFY_SOURCE=0 to patch-Makefile.in.diff. Both are attached.
When are the patched files expected to be available in the MacPorts SVN?
comment:17 Changed 10 years ago by jul_bsd@…
Changed 10 years ago by jul_bsd@…
Attachment: | patch-hping3-Portfile.diff added |
---|
Changed 10 years ago by jul_bsd@…
Attachment: | patch-gethostname.c.diff added |
---|
comment:18 Changed 10 years ago by mf2k (Frank Schima)
Owner: | changed from pmq@… to normen@… |
---|
Assigning to new maintainer.
comment:19 Changed 10 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
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".