My previous question about iwlib
Quoted 9 lines · jarmo kettunen
gcc -O2 -Wall -DGLIBC_HEADERS -c
iwlib.c
In file included from iwlib.c:11:
iwlib.h:91:8: warning: extra tokens at end of #endif directive iwlib.h:96:8: warning: extra tokens at end of #endif directive In file included from iwlib.h:42,from iwlib.c:11:
/usr/include/linux/in.h:25: conflicting types forIPPROTO_IP' /usr/include/netinet/in.h:32: previous declaration ofIPPROTO_IP'
iwlib.h (or any other userspace app) must not include <linux/*> and <asm/*> files. If it needs access to them for accessing ioctl API (or anything else), maintainer must create stripped-down copy of these headers, and distribute them with app - which is btw only correct way, as otherwise you cannot create userspace app which will support more than one API version (and iw used couple of incompatible APIs in the past...).
Best regards,
Petr Vandrovec [email protected]
----- Original Message -----
From: Petr Vandrovec <[email protected]>
To: jarmo kettunen <[email protected]>
Cc: <[email protected]>
Sent: Thursday, November 29, 2001 9:02 PM
Subject: Re: My previous question about iwlib
Quoted 2 lines
Quoted 2 lines
gcc -O2 -Wall -DGLIBC_HEADERS -c
iwlib.c
In file included from iwlib.c:11:
these headers, and distribute them with app - which is btw only
Quoted 6 lines
correct way, as otherwise you cannot create userspace app which will support more than one API version (and iw used couple of incompatible APIs in the past...).
Best regards,
Petr Vandrovec [email protected]
Thank for reply
Problem found and corrected...Suppose to get rid of old eyeglases..Buy new with gain 7..-)
Or cosider to syop by some reading cource....
I was too heated to get new stuff on production and read too hastly documents.
In makefile was possibility to choose right version of glibc...When found that..voila'.
Thanks for partisipating....
Jarmo