LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Ping compile errors (https://www.linuxquestions.org/questions/linux-software-2/ping-compile-errors-295417/)

Hen 02-27-2005 05:38 AM

Ping compile errors
 
Hello All :-)

My first post, so bear with me!

I'm trying to compile the 'Ping' command from source (on RedHat AS 3), but am running into some difficulties.

I have tried downloading a sourcce rpm, and it seems to install without problems - however, it does not seem to put the full source code in /usr/src/ (it only puts in source for some patches).

I have found the source for the inetutils package, but trying to compile it is where the errors occur (please note i have not modified the source, this is just trying to compile it 'out-of-the-box'). I have posted the errors below, so hopefully someone can tell me how i can get it to compile, or where i can find a copy of the source that will compile :-)

Here goes the errors (apologies, it's quite long):

In file included from ping_common.h:22,
from ping.c:61:
/usr/include/linux/errqueue.h:6: syntax error before "__u32"
/usr/include/linux/errqueue.h:8: syntax error before "ee_type"
/usr/include/linux/errqueue.h:9: syntax error before "ee_code"
/usr/include/linux/errqueue.h:10: syntax error before "ee_pad"
/usr/include/linux/errqueue.h:11: syntax error before "ee_info"
/usr/include/linux/errqueue.h:12: syntax error before "ee_data"
In file included from ping.c:61:
ping_common.h:112: syntax error before "acked"
ping_common.h:112: warning: type defaults to `int' in declaration of `acked'
ping_common.h:112: warning: data definition has no type or storage class
ping_common.h: In function `in_flight':
ping_common.h:163: `__u16' undeclared (first use in this function)
ping_common.h:163: (Each undeclared identifier is reported only once
ping_common.h:163: for each function it appears in.)
ping_common.h:163: syntax error before "diff"
ping_common.h:164: `diff' undeclared (first use in this function)
ping_common.h: At top level:
ping_common.h:167: syntax error before "seq"
ping_common.h: In function `acknowledge':
ping_common.h:169: `__u16' undeclared (first use in this function)
ping_common.h:169: syntax error before "diff"
ping_common.h:170: `diff' undeclared (first use in this function)
ping_common.h:173: `__s16' undeclared (first use in this function)
ping_common.h:173: `seq' undeclared (first use in this function)
ping_common.h:174: syntax error before "ntransmitted"
ping_common.h: In function `advance_ntransmitted':
ping_common.h:183: `__u16' undeclared (first use in this function)
ping_common.h:183: syntax error before "ntransmitted"
ping_common.h: At top level:
ping_common.h:196: syntax error before "__u8"
ping_common.h:200: syntax error before '*' token
ping.c:75: syntax error before "route"
ping.c:75: warning: type defaults to `int' in declaration of `route'
ping.c:75: warning: data definition has no type or storage class
ping.c:88: warning: parameter names (without types) in function declaration
ping.c:93: syntax error before "type"
ping.c: In function `main':
ping.c:172: `__u8' undeclared (first use in this function)
ping.c:172: `ptr' undeclared (first use in this function)
ping.c:173: syntax error before ')' token
ping.c:369: storage size of `filt' isn't known
ping.c:376: `ICMP_FILTER' undeclared (first use in this function)
ping.c:369: warning: unused variable `filt'
ping.c:407: `__u32' undeclared (first use in this function)
ping.c:407: syntax error before ')' token
ping.c:427: syntax error before ')' token
ping.c: In function `receive_error_msg':
ping.c:538: dereferencing pointer to incomplete type
ping.c:544: dereferencing pointer to incomplete type
ping.c:545: dereferencing pointer to incomplete type
ping.c:547: dereferencing pointer to incomplete type
ping.c:549: dereferencing pointer to incomplete type
ping.c:550: invalid use of undefined type `struct sock_extended_err'
ping.c:564: storage size of `filt' isn't known
ping.c:570: `ICMP_FILTER' undeclared (first use in this function)
ping.c:564: warning: unused variable `filt'
ping.c:582: dereferencing pointer to incomplete type
ping.c:582: dereferencing pointer to incomplete type
ping.c:582: dereferencing pointer to incomplete type
ping.c: In function `parse_reply':
ping.c:668: `__u8' undeclared (first use in this function)
ping.c:668: `buf' undeclared (first use in this function)
ping.c:692: syntax error before ')' token
ping.c: At top level:
ping.c:824: syntax error before "type"
ping.c: In function `pr_icmph':
ping.c:826: `type' undeclared (first use in this function)
ping.c:832: `code' undeclared (first use in this function)
ping.c:846: `info' undeclared (first use in this function)
ping.c:858: `icp' undeclared (first use in this function)
ping.c: In function `pr_options':
ping.c:979: `__u32' undeclared (first use in this function)
ping.c:979: syntax error before "address"
ping.c:980: `address' undeclared (first use in this function)
ping.c:1014: syntax error before "address"
ping.c:1030: `__u8' undeclared (first use in this function)
ping.c:1030: syntax error before "flags"
ping.c:1038: `flags' undeclared (first use in this function)
ping.c:1045: syntax error before "address"
ping.c: At top level:
ping.c:1123: syntax error before "addr"
ping.c: In function `pr_addr':
ping.c:1129: `addr' undeclared (first use in this function)
In file included from ping.c:1165:
/usr/include/linux/filter.h: At top level:
/usr/include/linux/filter.h:21: syntax error before "__u16"
/usr/include/linux/filter.h:23: syntax error before "jf"
/usr/include/linux/filter.h:24: syntax error before "k"
ping.c: In function `install_filter':

There are more, but i cut it slightly short for the purposes of posting (the other errors relate to the 'insns' array, and are very numerous).

Thanks for any help you can offer!

acid_kewpie 02-28-2005 04:31 PM

by cutting is short, you mean you removed data from the top? looks like there would be somethign just above that ... maybe anissing library? no such file or directory?


All times are GMT -5. The time now is 02:11 PM.