This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Posix management [HELP]


Hello everybody,

I've worked under ecos for one month. After having used ecos functions about
mutex, thread [...] without any problem, I must use, now, the Posix
compatibility layer. I wanna be able to manage message queues ...

So, I added the template and the package Posix with :
	- Build->Templates->Posix
	- Build->Packages->ISO C and POSIX infrastructure
	- Build->Packages->POSIX compatibility layer

I configured the tools as follow :
	- ISO C and POSIX infrastructure
		§ POSIX message queues enabled
			* implementation header enabled with the value :
<mqueue.h>
			* max nb queues : 50
			* max nb prio : 65535
	- POSIX compatibility layer
		§ POSIX message queues enabled
			* nb queues : 50
			* validate queue descriptors enabled
			* allow empty disabled

My problem is that I can't compile ecos libraries any more. 
You can see ECOS messages about this at the end  of this mail.

If my configuration is not complete, please tell me.
Oh yeah! I forgot to specify that I am under Linux Redhat 7.3 and ecos turns
as a synthetic target...
I need help, really.

Last thing : excuse my poor english; I am a french student and I work to
make it better...

Thanks a lot.

Matthieu GIRARDIN





make -r -C compat/posix/v2_0b1 build
make[1]: Entre dans le répertoire
`/opt/ecos/ecos-work/linux_build/compat/posix/v2_0b1'
gcc -c  -I/opt/ecos/ecos-work/linux_install/include
-I/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1
-I/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src
-I/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/tests -I.
-I/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/ -Wall
-Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g
-O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions
-fvtable-gc -finit-priority -Wp,-MD,src/mqueue.tmp -o
src/compat_posix_mqueue.o
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx
In file included from
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/pprivate.h:72,
                 from
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:89:
/opt/ecos/ecos-work/linux_install/include/cyg/posix/export.h:100: parse
error before `*'
/opt/ecos/ecos-work/linux_install/include/cyg/posix/export.h:102: parse
error before `*'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:209: syntax
error before `('
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:224: syntax
error before `;'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:229: ISO
C++ forbids declaration of 
`interr' with no type
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:229:
redefinition of `int interr'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:227: `int
interr' previously declared 
here
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:231: parse
error before `do'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:235: parse
error before `;'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:235: syntax
error before `++'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:244: ISO
C++ forbids declaration of 
`retval' with no type
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:244:
`mqd_t' was not declared in this 
scope
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:245: parse
error before `goto'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:250: ISO
C++ forbids declaration of 
`retval' with no type
/opt/ecos/ecos-2.0b1/packa:ges/compat/posix/v2_0b1/src/mqueue.cxx:250:
redefinition of `int retval'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:244: `int
retval' previously defined 
here
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:250:
`mqd_t' was not declared in this 
scope
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:251: parse
error before `goto'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:258:
variable `const mq_attr 
default_attr' has initializer but incomplete type
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:261:
`oflag' was not declared in this 
scope
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:261: ISO
C++ forbids declaration of 
`__builtin_stdarg_start' with no type
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:261:
declaration of `int 
__builtin_stdarg_start'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:261:
conflicts with built-in 
declaration `void __builtin_stdarg_start (void *&, ...)'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:261:
initializer list being treated as 
compound expression
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:262: ISO
C++ forbids declaration of 
`mode' with no type
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:263: ISO
C++ forbids declaration of 
`attr' with no type
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:263:
conflicting types for `int attr'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:257:
previous declaration as `const 
mq_attr *attr'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:263: cannot
convert `mq_attr *' to 
`int' in initialization
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:264: ISO
C++ forbids declaration of 
`__builtin_va_end' with no type
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:264:
declaration of `int 
__builtin_va_end'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:264:
conflicts with built-in 
declaration `void __builtin_va_end (void *&)'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:264: cannot
convert `void *' to `int' 
in initialization
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:267: parse
error before `for'
make[1]: Quitte le répertoire
`/opt/ecos/ecos-work/linux_build/compat/posix/v2_0b1'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:267: parse
error before `;'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:267: syntax
error before `++'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:275: ISO
C++ forbids declaration of 
`retval' with no type
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:275:
redefinition of `int retval'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:250: `int
retval' previously defined 
here
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:275:
`mqd_t' was not declared in this 
scope
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:276: parse
error before `goto'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:283: parse
error before `if'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:289: ISO
C++ forbids declaration of 
`retval' with no type
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:289:
redefinition of `int retval'
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:275: `int
retval' previously defined 
here
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:289:
`mqd_t' was not declared in this 
scope
/opt/ecos/ecos-2.0b1/packages/compat/posix/v2_0b1/src/mqueue.cxx:289:
confused by earlier errors, 
bailing out
make[1]: *** [src/mqueue.o.d] Erreur 1
make: Quitte le répertoire `/opt/ecos/ecos-work/linux_build'
make: *** [build] Erreur 2



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]