Skip to contentSkip to conversation

My previous question about iwlib

DISCUSSION Petr Vandrovec 2 participants 2 messages Nov 29, 2001 – Nov 30, 2001

lore
Share & tools
lore
#0 lore raw
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 for IPPROTO_IP' /usr/include/netinet/in.h:32: previous declaration of IPPROTO_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]

#1 lore raw

----- 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