issue with net/if_ppp.h
Daniel Molina Wegener
dmw at unete.cl
Tue May 15 14:32:16 UTC 2007
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!
More information about the freebsd-hackers
mailing list