From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18018 invoked by alias); 29 Jun 2005 20:08:20 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 17820 invoked by uid 22791); 29 Jun 2005 20:08:13 -0000 Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 29 Jun 2005 20:08:13 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1Dniqt-0004YM-00; Wed, 29 Jun 2005 22:08:07 +0200 Date: Wed, 29 Jun 2005 20:08:00 -0000 To: Ellen Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20050629200807.GF8479@lunn.ch> Mail-Followup-To: Ellen , ecos-discuss@ecos.sourceware.org References: <89a6346f05062912554dee1fb9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <89a6346f05062912554dee1fb9@mail.gmail.com> User-Agent: Mutt/1.5.9i From: Andrew Lunn Subject: Re: [ECOS] How to enable POSIX message queue in eCos environment? X-SW-Source: 2005-06/txt/msg00297.txt.bz2 On Wed, Jun 29, 2005 at 02:55:40PM -0500, Ellen wrote: > Hi all, > > I'm new to eCos and trying to run on Linux synthetic target. Have a > question here for using POSIX message queue in eCos. > > I noticed in the reference manual, it is mentioned that "The presence > of message queues is controlled by the CYGPKG_POSIX_MQUEUES option. > Setting this option will cause _POSIX_MESSAGE_PASSING to be defined > and the message queue API to be make available." In my case, I > checked the ecos.ecc and pkgconf/isoinfra.h, I have the option > CYGINT_ISO_MQUEUE (instead of CYGPKG_POSIX_MQUEUES) set to 0, which > consequently makes the _POSIX_MESSAGE_PASSING undefined. So when > compiling, I got the error of undeclared "O_CREAT" and implicit > declaration of "mq_open". > > Since the CYGINT_ISO_MQUEUE is automatically defined in configtool, I > went back to the configuration tool, try to set this option. > Unfortunately, I found that under the "POSIX message queues", the > "maximum number of open message queues" is grey and its value is 0. > > Anybody can help to set this mqueue option and make the message queue > API available? Use the posix template. 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