From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1147 invoked by alias); 29 Jul 2009 12:25:27 -0000 Received: (qmail 1133 invoked by uid 22791); 29 Jul 2009 12:25:26 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-bw0-f217.google.com (HELO mail-bw0-f217.google.com) (209.85.218.217) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Jul 2009 12:25:19 +0000 Received: by bwz17 with SMTP id 17so722002bwz.30 for ; Wed, 29 Jul 2009 05:25:16 -0700 (PDT) Received: by 10.204.116.8 with SMTP id k8mr5518542bkq.110.1248870315972; Wed, 29 Jul 2009 05:25:15 -0700 (PDT) Received: from smtp.gmail.com ([86.57.137.251]) by mx.google.com with ESMTPS id b17sm2562031fka.6.2009.07.29.05.25.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 29 Jul 2009 05:25:14 -0700 (PDT) Date: Wed, 29 Jul 2009 12:25:00 -0000 From: Sergei Gavrikov To: Simon Kallweit Cc: Bob.Brusa@gmail.com, "MailingList:ecos-discuss ;" Message-ID: <20090729122550.GA28019@sg-ubuntu.local> References: <4A6835B0.6000803@intefo.ch> <4A68574F.5040307@intefo.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A68574F.5040307@intefo.ch> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS]How to run testprograms for lwip X-SW-Source: 2009-07/txt/msg00257.txt.bz2 Simon Kallweit wrote: > Well, I can't really help you with that. Also, it seems you are using > the current lwip port available in the CVS (or ecos 3.0). I have not > used that port, as it was rather dated, so I ported a newer lwip > version. You could try my port too, a snapshot is available: > > http://download.westlicht.ch/lwip-20090722.tar.gz Hi Simon, Thank you for your contribution. I tried to built lwIP's with SNMP support using your snapshot. Unfortunately, I ran in a problem with CPP defines for eCos (lwipopts.h). mib2.c:70: #define SNMP_SYSSERVICES ((1 << 6) | (1 << 3) | ((IP_FORWARD) << 2)) mib2.c:766: static const s32_t sysservices = SNMP_SYSSERVICES; lwipopts.h:102: #define IP_FORWARD defined(CYGFUN_LWIP_IP_FORWARD) So, the above init will become itself: static const s32_t sysservices = ((1 << 6) | (1 << 3) | ((defined(CYGFUN_LWIP_IP_FORWARD)) << 2)) May be the below should be used in lwipopts.h? #if defined(CYGFUN_LWIP_IP_FORWARD) # define IP_FORWARD 1 #else # define IP_FORWARD 0 #endif FYI: There are a few defines like this #define FOO defined(CYG_FOO) in lwipopts.h. Small testcase: #define CYG_FOO 1 #define FOO defined(CYG_FOO) main () { int foo = FOO; } It cannot be linked. FOO is not boolean ;-) I can check the same "rvalues" then and send a patch if you want. Regards, Sergei -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss