[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

glibc + kernel headers



I've written a small porgram which uses kernel accounting, but cant compile
under glibc because kernel headers are invalid. gcc gives me back this :

In file included from /usr/include/linux/if.h:23,
                 from accounting.h:11,
                 from stag.c:5:
/usr/include/linux/socket.h:38: warning: SCM_RIGHTS' redefined
/usr/include/socketbits.h:216: warning: this is the location of the previous definition
/usr/include/linux/socket.h:41: warning: SOCK_STREAM' redefined
/usr/include/socketbits.h:40: warning: this is the location of the previous definition
/usr/include/linux/socket.h:42: warning: SOCK_DGRAM' redefined
/usr/include/socketbits.h:43: warning: this is the location of the previous definition
/usr/include/linux/socket.h:43: warning: SOCK_RAW' redefined
/usr/include/socketbits.h:45: warning: this is the location of the previous definition
/usr/include/linux/socket.h:44: warning: SOCK_RDM' redefined
..
.
.
and a lots of this.
What have i do to make this correct?
(If you want to test it download the tar.gz from http://www.oldwnet.hu/stag/download/stag.tar.gz)


Regards, 
 Tibor
-- 

Virtual welcome : Tibor Koleszár
=[ IntegraNET ]===[ Internet Service Provider Corporation ]=
[ Koleszar Tibor - System engineer                         ]
[ E-mail         : t.koleszar@somogy.hu                    ]
============================================================


Reply to: