LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Problem installing iproute2 (https://www.linuxquestions.org/questions/linux-networking-3/problem-installing-iproute2-245145/)

greklas 10-20-2004 11:43 AM

Problem installing iproute2
 
Hi,
I'm using Slackware 9, kernel 2.4.20 and I'm trying to install iproute iproute2-currnet.tar.gz and when I use "make" command I receive an some ERRORS:

In file included from <command line>:1:
../include-glibc/glib-bugs.h:16: parse error before "in_port_t"
../include-glibc/glib-bugs.h:16: warning:type defaults to 'int' in declaration of 'in_port_t'
../include-glibc/glib-bugs.h:16: warning:data definition has no type or storage class
../include-glibc/glib-bugs.h:17: parse error before "in_addr_t"
../include-glibc/glib-bugs.h:17: warning:type defaults to 'int' in declaration of 'in_addr_t'
../include-glibc/glib-bugs.h:17: warning:data definition has no type or storage class

In file included from ll_map.c:22:
../include/libnetlink.h:11:field 'local' has incoplete type
../include/libnetlink.h:12:field 'peer' has incoplete type
../include/libnetlink.h:15: confused by earlier erroes, bailing out
make[1];***[ll_map.c] Error 1


I shall inform you that:
1) Line 22 in iproute2/lib/ll_map.c is:
#include "libnetlink.h"
2) Line 16 in iproute2/include-glibc/glib-bugs.h is
typedef __u16 in_port_t;
3) Line 17 in iproute2/include-glibc/glib-bugs.h is
typedef __u32 in_addr_t;

Could anyone advise me please?
Thank you

BillJennings 10-21-2004 01:15 AM

This looks to me like a GCC compatiblilty problem. What version of GCC are you using? Also, what version of glibc?

Sincerely
Bill Jennings

greklas 10-21-2004 07:39 AM

gcc -v --> 3.2.2
glib-config --version --> 1.2.10


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