This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

problem building ping


I downloaded the ping source and I'm simply trying to build it.
When I try to make it this is the error message i'm getting:
 
$ make
/bin/sh: mdtype: command not found
/bin sh: ostype: command not found
+ '[' '!' -d - ']'
++ find Makefile -newer -/Makefile -print
+ '[' -n Makefile ']'
+ make - --unix config
make[1]: Entering directory `/cygdrive/c/cygwin/usr/src/ping-1.0'
/bin/sh: mdtype: command not found
/bin/sh: ostype: command not found
+ mkdir -
mkdir: cannot create directory `-': File exists
+ chmod ug+w -
+ ln -s ../ping.c -
ln: creating symbolic link `-/ping.c' to `../ping.c': File exists
+ sed -e '/^all:/d' Makefile
+ chmod ug+w -/Makefile
chmod: invalid option -- /
Try `chmod --help' for more information.
+ cd -
/bin/sh: line 0: cd: OLDPWD not set
+ make - --unix -w depend
make[2]: Entering directory `/cygdrive/c/cygwin/usr/src/ping-1.0'
cc -M ping.c | sed 's/\.o//' | \
awk ' { if ($1 != prev) \
        { if (rec != "") print rec; rec = $0; prev = $1; } \
        else { if (length(rec $2) > 78) { print rec; rec = $0; } \
        else rec = rec " " $2 } } \
        END { print rec } ' >> makedep;
echo '/^# DO NOT DELETE THIS LINE/+2,$d' >eddep;
echo '$r makedep' >>eddep;
echo 'w' >>eddep;
cp Makefile Makefile.bak;
ed - Makefile < eddep;
rm eddep makedep;
echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile;
echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile;
echo '# see make depend above' >> Makefile;
make[2]: Leaving directory `/cygdrive/c/cygwin/usr/src/ping-1.0'
make[1]: Leaving directory `/cygdrive/c/cygwin/usr/src/ping-1.0'
+ cd -
/bin/sh: line 0: cd: OLDPWD not set
+ make - --unix ping
make[1]: Entering directory `/cygdrive/c/cygwin/usr/src/ping-1.0'
rm -f ping.o; cc -O -c ping.c
ping.c: In function `main':
ping.c:183: warning: passing arg 2 of `signal' from incompatible pointer
type
ping.c:184: warning: passing arg 2 of `signal' from incompatible pointer
type
ping.c:205: warning: passing arg 2 of `select' from incompatible pointer
type
ping.c:208: warning: passing arg 5 of `recvfrom' from incompatible
pointer type
ping.c: In function `catcher':
ping.c:246: warning: passing arg 2 of `signal' from incompatible pointer
type
ping.c: In function `pinger':
ping.c:268: error: dereferencing pointer to incomplete type
ping.c:268: error: `ICMP_ECHO' undeclared (first use in this function)
ping.c:268: error: (Each undeclared identifier is reported only once
ping.c:268: error: for each function it appears in.)
ping.c:269: error: dereferencing pointer to incomplete type
ping.c:270: error: dereferencing pointer to incomplete type
ping.c:271: error: dereferencing pointer to incomplete type
ping.c:272: error: dereferencing pointer to incomplete type
ping.c:283: error: dereferencing pointer to incomplete type
ping.c: In function `pr_pack':
ping.c:361: error: `ICMP_MINLEN' undeclared (first use in this function)
ping.c:364: error: aggregate value used where an integer was expected
ping.c:364: error: aggregate value used where an integer was expected
ping.c:364: error: aggregate value used where an integer was expected
ping.c:364: error: aggregate value used where an integer was expected
ping.c:364: error: aggregate value used where an integer was expected
ping.c:364: error: incompatible type for argument 1 of `__ntohl'
ping.c:369: error: dereferencing pointer to incomplete type
ping.c:369: error: `ICMP_ECHOREPLY' undeclared (first use in this
function)
ping.c:371: error: aggregate value used where an integer was expected
ping.c:371: error: aggregate value used where an integer was expected
ping.c:371: error: aggregate value used where an integer was expected
ping.c:371: error: aggregate value used where an integer was expected
ping.c:371: error: aggregate value used where an integer was expected
ping.c:371: error: incompatible type for argument 1 of `__ntohl'
ping.c:372: error: dereferencing pointer to incomplete type
ping.c:372: error: dereferencing pointer to incomplete type
ping.c:372: error: dereferencing pointer to incomplete type
ping.c:380: error: dereferencing pointer to incomplete type
ping.c:384: error: dereferencing pointer to incomplete type
ping.c:398: error: dereferencing pointer to incomplete type
make[1]: *** [ping.o] Error 1
make[1]: Leaving directory `/cygdrive/c/cygwin/usr/src/ping-1.0'
make: [submake] Error 2 (ignored)
 
 
I think it might be because it can't properly find the header files it's
looking for.
I'm wondering if there's something I missed with the cygwin environment.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]