From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31511 invoked by alias); 9 Jul 2002 17:34:19 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 31503 invoked from network); 9 Jul 2002 17:34:19 -0000 Received: from unknown (HELO kasica.elsis.si) (194.249.198.85) by sources.redhat.com with SMTP; 9 Jul 2002 17:34:19 -0000 Received: (qmail 7609 invoked by uid 1005); 9 Jul 2002 20:34:21 -0000 Received: from iz@vsr.si by kasica by uid 1002 with qmail-scanner-1.10 (sweep: 2.9/3.55. . Clear:0. Processed in 1.284769 secs); 09 Jul 2002 20:34:21 -0000 X-Qmail-Scanner-Mail-From: iz@vsr.si via kasica X-Qmail-Scanner: 1.10 (Clear:0. Processed in 1.284769 secs) Received: from unknown (HELO conc) (194.249.198.84) by kasica.elsis.si with SMTP; 9 Jul 2002 20:34:19 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Iztok Zupet Reply-To: iz@vsr.si Organization: VSR d.o.o. To: Wolfgang Heppner , ecos-discuss@sources.redhat.com Date: Tue, 09 Jul 2002 10:34:00 -0000 User-Agent: KMail/1.4.1 References: <3D2B1D6A.69205C67@iis.fhg.de> In-Reply-To: <3D2B1D6A.69205C67@iis.fhg.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200207091935.00218.iz@vsr.si> Subject: Re: [ECOS] errno problem building FreeBSD stack for viper X-SW-Source: 2002-07/txt/msg00108.txt.bz2 On Tuesday 09 July 2002 19:29, Wolfgang Heppner wrote: > Hi, > > i am trying to build the new FreeBSD stack for my MPC860T based target, > but it does not compile! My last CVS update was on June, 28. > > I cross checked it with the viper-target from the CVS-Repository and got > the same error: The Compiler (gcc 2.95.2) could not find the definition > of errno in getproto.c. > > Here is what i did: > > Using Windows Configtool 1.3.net, i selected template A&M Viper > then i added the packages > FreeBSD stack, > Networking and > Common ethernet support > > The Configtool proposed the following solutions for various conflicts, > which i accepted: > > CYGPKG_NET_DHCP Disabled > CYGPKG_NET_TFTP Disabled > CYGBLD_ISO_NETDB_SERV_HEADER Enabled, > CYGBLD_ISO_NETDB_PROTO_HEADER Enabled, > > CYGBLD_ISO_BSDTYPES_HEADER Enabled, > > It remained one conflict: CYGPKG_NET_FREEBSD_STACK requ. CYGPKG_IO_FILIO > > Therefore i added the package Fileio and accepted the following: > > CYGBLD_ISO_NAME_MAX_HEADER Enabled, > CYGBLD_ISO_OPEN_MAX_HEADER Enabled, > CYGBLD_ISO_DIRENT_HEADER Enabled, > > I saved this configuration without changing any default settings > When i tried to build the target lib the following error appeared: > > powerpc-eabi-gcc -c -I/ecos-d/Proj/NeweCos/ecos_viper_install/include > -I/ecos-d > /Programme/REDHAT~1/eCosLatest/ecos/packages/net/common/current > -I/ecos-d/Progra > mme/REDHAT~1/eCosLatest/ecos/packages/net/common/current/src > -I/ecos-d/Programme > /REDHAT~1/eCosLatest/ecos/packages/net/common/current/tests -I. > -I/ecos-d/Progra > mme/REDHAT~1/eCosLatest/ecos/packages/net/common/current/src/ > -msoft-float -mcpu > =860 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef > -Woverloaded-vir > tual -g -O2 -ffunction-sections -fdata-sections -fno-rtti > -fno-exceptions -fvtab > le-gc -finit-priority -D_KERNEL -D__ECOS -D__INSIDE_NET > -Wp,-MD,src/getproto.tmp > -o src/net_common_getproto.o > /ecos-d/Programme/REDHAT~1/eCosLatest/ecos/package > s/net/common/current/src/getproto.c > /ecos-d/Programme/REDHAT~1/eCosLatest/ecos/packages/net/common/current/src/ >getpr oto.c: In function `getprotobyname': > /ecos-d/Programme/REDHAT~1/eCosLatest/ecos/packages/net/common/current/src/ >getpr oto.c:71: `errno' undeclared (first use in this function) > /ecos-d/Programme/REDHAT~1/eCosLatest/ecos/packages/net/common/current/src/ >getpr oto.c:71: (Each undeclared identifier is reported only once > /ecos-d/Programme/REDHAT~1/eCosLatest/ecos/packages/net/common/current/src/ >getpr oto.c:71: for each function it appears in.) > /ecos-d/Programme/REDHAT~1/eCosLatest/ecos/packages/net/common/current/src/ >getpr oto.c: In function `getprotobynumber': > /ecos-d/Programme/REDHAT~1/eCosLatest/ecos/packages/net/common/current/src/ >getpr oto.c:85: `errno' undeclared (first use in this function) > make[2]: *** [src/getproto.o.d] Error 1 > > Did anybody else get the same problem - any ideas? > > Thanks in advance > Wolfgang > > PS: I tried it with the OpenBSD stack and it worked perfectly! The > include-file is different for Open- and FreeBSD and in the > OpenBSD version errno.h is included. > - The patch which solves that problem was done Yesterday evening by Gary Thomas. Just update the repository tree from CVS Regards iz -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss