System uname: Darwin-10.3.0-i386-64bit hping-3_pre20051105-r1 couldn't be compiled under OS X after I ecopied (ecopy) it into my overlay. Unmasking it and applying a patch I carry around for sometimes fixed it, using TCL or not. This patch was supposed back in time to allow compiling hping-3_pre20051105-r1 under OSX/Linux and *BSD but I haven't tested it since on other OS, except for now, on my OS X.
Created attachment 227003 [details, diff] For a successful compilation under OS X.
Created attachment 227005 [details, diff] ebuild patch
Comment on attachment 227005 [details, diff] ebuild patch Please prepare a clean patch against -r2. The current one is rather messy (includes files such as Makefile and .depend that were generated by the configure script and Makefile, respectively), and the patch does not apply against -r1 or -r2.
(In reply to comment #3) > Please prepare a clean patch against -r2. The current one is rather messy > (includes files such as Makefile and .depend that were generated by the > configure script and Makefile, respectively), and the patch does not apply > against -r1 or -r2. Yes that's because all these files, and vim swap files are included in the source archive from hping.org.. I'll try and make a cleaner patch though, splitting this one in multiple patches. And not removing the .depend/Makefile/swap then.
Comment on attachment 227003 [details, diff] For a successful compilation under OS X. splitted in multiple patches.
Created attachment 231079 [details, diff] patched ebuild for hping3 -r2
Created attachment 231081 [details, diff] adbuf patch
Created attachment 231083 [details, diff] apd patch
Created attachment 231085 [details, diff] ars patch
Created attachment 231087 [details, diff] byteorder patch
Created attachment 231089 [details, diff] getifname patch
Created attachment 231091 [details, diff] libpcap_stuff patch
Created attachment 231093 [details, diff] scan patch
Created attachment 231095 [details, diff] script patch
Created attachment 231097 [details, diff] sendip patch
Okay. Sorry for the flood.Patch is now splitted. Proper compilation (no errors and no more warnings) under x64-osx and also tested under linux (x86). Hope it helps.
Have you send the patches upstream? Is this still up-to-update in -r3?
Please send your patches upstream.