From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19765 invoked by alias); 8 Nov 2007 21:05:37 -0000 Received: (qmail 19755 invoked by uid 22791); 8 Nov 2007 21:05:37 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 08 Nov 2007 21:05:34 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1IqEZ8-0004vr-00; Thu, 08 Nov 2007 22:05:30 +0100 Date: Thu, 08 Nov 2007 21:05:00 -0000 From: Andrew Lunn To: C B Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20071108210530.GA16634@lunn.ch> Mail-Followup-To: C B , ecos-discuss@ecos.sourceware.org References: <472B7580.4080409@mlbassoc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) 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] networking support for my eCos application X-SW-Source: 2007-11/txt/msg00051.txt.bz2 On Thu, Nov 08, 2007 at 03:00:59PM -0500, C B wrote: > > > > Yes, I would definitely suggest that you update to the CVS tree > > (release 2.0 is nearing 5 years old!) > > > > Once you've done that, I'd also suggest that you try some simple > > things. This sequence should work and generate a test that you > > can try on your hardware: > > % ecosconfig new eb9261 net > > % ecosconfig tree > > % make; make -C net/common/current tests TESTS=tests/ping_test > > Thanks for your help (Andrew & Gary). I think I'm getting closer. > > I got the latest eCos from CVS and the latest configtool & > ecosconfig from ecoscentric.com. I copied the relevant hardware > info from the ecos.db that I have to the one I checked out of CVS. > I'm able to succesfully perform each of the commands above. > > But, when I try to compile and link my own code I still get these > undefined references when I try to link with the eCos libs I've > built: > >>> undefined reference to 'init_all_network_interfaces' > >>> undefined reference to 'eth0_up' > >>> undefined reference to 'eth0_bootp_data' > >>> undefined reference to 'inet_ntoa' It sounds like you don't have the CYGPKG_NET package in your configuration. However that would be strange, the net template always includes it. Do an ecosconfig export foo.ecm and post foo.ecm. Also check that net/common/current/src/inet_ntoa.c is getting compiled and it is in the library install/lib/libtarget.a Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss