LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-27-2005, 06:38 AM   #1
Hen
LQ Newbie
 
Registered: Feb 2005
Posts: 1

Rep: Reputation: 0
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!
 
Old 02-28-2005, 05:31 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile errors. DrunkenDisciple Linux - Software 3 11-29-2005 01:11 AM
c++ compile errors using g++ ttumelty Programming 5 09-08-2005 02:58 PM
compile errors davidleroux1 Programming 4 05-10-2005 11:03 PM
C++ compile errors Palamides Programming 1 03-09-2005 07:28 AM
Compile Errors userini Linux - Software 6 07-16-2003 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration