[rescue] Compile fping
Paul Mantz
angelixd at gmail.com
Mon Jan 23 12:04:47 CST 2006
You should totally submit that as a functioning windows port; others may be
looking for a windows version without the resource of such a helpful
listhost :-)
On 1/23/06, Michael Parson <mparson at bl.org> wrote:
>
> On Sun, Jan 22, 2006 at 11:17:13PM -0500, Eric Webb wrote:
> > On Sunday 22 January 2006 10:29 pm, Sridhar Ayengar wrote:
> > >
> > > And to answer Eric, I have cygwin. If you still want me to compile
> it,
> > > ping me.
> >
> > Well, it may not be quite so easy. I swapped mails with the current
> > maintainer and he states:
> >
> > It definitely does NOT compile under MINGW but I was able to get
> > it to compile (with a significant amount of hacking) on a 2003
> version
> > of cygwin, but something has changed recently and it no longer
> > compiles cleanly anymore and I haven't looked into it recently.
> > (and I haven't tried any $$$ compilers like Microsoft)
> >
> > That said, if anyone feels up to the challenge, I could really use the
> tool :)
>
> I cheated, but I got it to work.
>
> 1. netinet/ip_icmp.h included cygwin/icmp.h, which is empty. I copied
> the netinet/ip_icmp.h from my NetBSD 2.0 box and replaced the default
> one.
>
> 2. The program checks to see if you are running as a UID other than 0
> and exits, I just commented this section out.
>
> It compiles, it runs, you want a copy?
>
> $ make
> gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c fping.c
> gcc -g -O2 -o fping fping.o
> Info: resolving _h_errno by linking to __imp__h_errno (auto-import)
> Info: resolving _opterr by linking to __imp__opterr (auto-import)
> Info: resolving _optarg by linking to __imp__optarg (auto-import)
> Info: resolving _optind by linking to __imp__optind (auto-import)
> $ ./fping google.com yahoo.com
> google.com is alive
> yahoo.com is alive
>
> $ uname -a
> CYGWIN_NT-5.1 mparson 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown
> unknown Cygwin
>
> --
> Michael Parson
> mparson at bl.org
> _______________________________________________
> rescue list - http://www.sunhelp.org/mailman/listinfo/rescue
>
More information about the rescue
mailing list