Date: Tue, 15 May 2007 10:05:35 -0400 (CLT) From: "Daniel Molina Wegener" <dmw@unete.cl> To: "Manolo Valdes" <nolis71cu@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: issue with net/if_ppp.h Message-ID: <45081.64.117.137.69.1179237935.squirrel@webmail.ifxnw.cl> In-Reply-To: <200705150955.40383.nolis71cu@gmail.com> References: <200705150955.40383.nolis71cu@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
El Mar, 15 de Mayo de 2007, 9:55, Manolo Valdes escribió: > Hi guys Hello... > > doing a test just like the way cmake do it to find includes on the system Grat tool, I use cmake too... > > ######test.c###### > > #include <net/if_ppp.h> > int main(){return 0;} > > ################ > > i got the following output: > > gcc test.c > In file included from /usr/include/net/if_ppp.h:28, > from test.c:1: > /usr/include/net/ppp_defs.h:86: error: syntax error before "ext_accm" > /usr/include/net/ppp_defs.h:146: error: syntax error before "time_t" > In file included from /usr/include/net/if_ppp.h:29, > from test.c:1: > /usr/include/net/if.h:265: error: field `ifru_addr' has incomplete type > /usr/include/net/if.h:266: error: field `ifru_dstaddr' has incomplete type > /usr/include/net/if.h:267: error: field `ifru_broadaddr' has incomplete type > /usr/include/net/if.h:299: error: field `ifra_addr' has incomplete type > /usr/include/net/if.h:300: error: field `ifra_broadaddr' has incomplete type > /usr/include/net/if.h:301: error: field `ifra_mask' has incomplete type > /usr/include/net/if.h:368: error: field `addr' has incomplete type > /usr/include/net/if.h:369: error: field `dstaddr' has incomplete type > test.c:7:2: warning: no newline at end of file > > this test works on on Linux systems. > > does anybody knows if this is a bug or problem with the net/if_ppp.h header? No, if_ppp requires other headers, I'm far from my BSD system, but you must look which header you must include before the if_ppp hreader. > > thanks in advance > > Manolito > > [SNIP] > Regards, -- .O. | Daniel Molina Wegener | C/C++ Developer ..O | dmw [at] unete [dot] cl | FOSS Coding Adict OOO | BSD & Linux User | Standards Rocks!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45081.64.117.137.69.1179237935.squirrel>