From owner-freebsd-hackers@FreeBSD.ORG Tue May 15 14:32:16 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A0CDD16A40A for ; Tue, 15 May 2007 14:32:16 +0000 (UTC) (envelope-from dmw@unete.cl) Received: from mail04.ifxnetworks.com (mail04.ifxnetworks.com [190.61.128.14]) by mx1.freebsd.org (Postfix) with ESMTP id 3A48913C45D for ; Tue, 15 May 2007 14:32:16 +0000 (UTC) (envelope-from dmw@unete.cl) Received: (qmail 19867 invoked from network); 15 May 2007 14:05:35 -0000 Received: from unknown (HELO webmail.ifxnw.cl) ([190.61.128.22]) (envelope-sender ) by mail04.ifxnetworks.com (qmail-ldap-1.03) with SMTP for ; 15 May 2007 14:05:35 -0000 Received: from 64.117.137.69 (proxying for 161.131.179.197, 161.131.179.197) (SquirrelMail authenticated user dmw@unete.cl) by webmail.ifxnw.cl with HTTP; Tue, 15 May 2007 10:05:35 -0400 (CLT) 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> Date: Tue, 15 May 2007 10:05:35 -0400 (CLT) From: "Daniel Molina Wegener" To: "Manolo Valdes" User-Agent: SquirrelMail/1.4.8 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-hackers@freebsd.org Subject: Re: issue with net/if_ppp.h X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dmw@unete.cl List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 14:32:16 -0000 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 > 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!