public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] errno problem building FreeBSD stack for viper
@ 2002-07-09 10:30 Wolfgang Heppner
  2002-07-09 10:34 ` Iztok Zupet
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Heppner @ 2002-07-09 10:30 UTC (permalink / raw)
  To: ecos-discuss

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, <net/netdb.h>
CYGBLD_ISO_NETDB_PROTO_HEADER Enabled, <net/netdb.h> 

CYGBLD_ISO_BSDTYPES_HEADER Enabled, <sys/bsdtypes.h>

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, <cyg/fileio/limits.h>
CYGBLD_ISO_OPEN_MAX_HEADER  Enabled, <cyg/fileio/limits.h>
CYGBLD_ISO_DIRENT_HEADER    Enabled, <cyg/fileio/dirent.h>

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 <sys/param.h> is different for Open- and FreeBSD and in the
OpenBSD version errno.h is included. 
-
-- 
Wolfgang Heppner

High Speed Kamerasysteme  - Abt. Bildsensorik (ESY-B)
High Speed Camera Systems - Dept. Electronic Imaging (ESY-B)

Fraunhofer                            
Institut Integrierte Schaltungen
Angewandte Elektronik

Am Wolfsmantel 33 
91058 Erlangen       
(Germany)

Tel:   +49 (0) 9131 776 528
Fax:   +49 (0) 9131 776 598

email: hep@iis.fhg.de
web:   http://www.iis.fhg.de

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] errno problem building FreeBSD stack for viper
  2002-07-09 10:30 [ECOS] errno problem building FreeBSD stack for viper Wolfgang Heppner
@ 2002-07-09 10:34 ` Iztok Zupet
  2002-07-09 10:39   ` Gary Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Iztok Zupet @ 2002-07-09 10:34 UTC (permalink / raw)
  To: Wolfgang Heppner, ecos-discuss

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, <net/netdb.h>
> CYGBLD_ISO_NETDB_PROTO_HEADER Enabled, <net/netdb.h>
>
> CYGBLD_ISO_BSDTYPES_HEADER Enabled, <sys/bsdtypes.h>
>
> 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, <cyg/fileio/limits.h>
> CYGBLD_ISO_OPEN_MAX_HEADER  Enabled, <cyg/fileio/limits.h>
> CYGBLD_ISO_DIRENT_HEADER    Enabled, <cyg/fileio/dirent.h>
>
> 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 <sys/param.h> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] errno problem building FreeBSD stack for viper
  2002-07-09 10:34 ` Iztok Zupet
@ 2002-07-09 10:39   ` Gary Thomas
  0 siblings, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2002-07-09 10:39 UTC (permalink / raw)
  To: iz; +Cc: Wolfgang Heppner, eCos Discussion

On Tue, 2002-07-09 at 11:35, Iztok Zupet wrote:
> 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, <net/netdb.h>
> > CYGBLD_ISO_NETDB_PROTO_HEADER Enabled, <net/netdb.h>
> >
> > CYGBLD_ISO_BSDTYPES_HEADER Enabled, <sys/bsdtypes.h>
> >
> > 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, <cyg/fileio/limits.h>
> > CYGBLD_ISO_OPEN_MAX_HEADER  Enabled, <cyg/fileio/limits.h>
> > CYGBLD_ISO_DIRENT_HEADER    Enabled, <cyg/fileio/dirent.h>
> >
> > 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 <sys/param.h> 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

Also, it's a whole lot easier to just select the Viper platform with the
"new_net" template.  That should set everything up for you just fine.


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-07-09 17:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-09 10:30 [ECOS] errno problem building FreeBSD stack for viper Wolfgang Heppner
2002-07-09 10:34 ` Iztok Zupet
2002-07-09 10:39   ` Gary Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).