| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| MIME-Version: | 1.0 |
| Subject: | problem building ping |
| Date: | Mon, 5 Jun 2006 08:01:29 -0700 |
| Message-ID: | <E3A2DDAE8F14FC46A89015280A73D93801629930@USNWK101MSX.ww017.siemens.net> |
| From: | "Socaciu, Dan \(Com US\)" <dan DOT socaciu AT siemens DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id k55F1eLd020563 |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |