Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Kaz Kylheku Newsgroups: comp.os.linux.development.apps,comp.lang.c,comp.lang.c++ Subject: Re: fcntl2.h:51:26 error with NetBeans IDE 7.0.1 on Ubuntu 11.08 Date: Sun, 8 Jan 2012 18:39:50 +0000 (UTC) Organization: A noiseless patient Spider Lines: 11 Message-ID: <20120108103348.176@kylheku.com> References: <3f058b58-9035-4981-b5cb-97ca01476423@w4g2000vbc.googlegroups.com> <87pqeup4w0.fsf@araminta.anjou.terraraq.org.uk> Injection-Date: Sun, 8 Jan 2012 18:39:50 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="UCk3K/YilCUd19+i749f3A"; logging-data="26170"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+b9L2jlm0SgMPyW6/SkZy8C0Nrzoo+HEw=" User-Agent: slrn/pre1.0.0-18 (Linux) Cancel-Lock: sha1:HtzVoMQYGM5PWP7twg16uyuwPkU= Xref: x330-a1.tempe.blueboxinc.net comp.os.linux.development.apps:370 comp.lang.c:15591 comp.lang.c++:13175 On 2012-01-08, Richard Kettlewell wrote: > OtagoHarbour writes: > > The message looks fairly straightforward; check that your call(s) to > open() are correct. The checking version is only defined conditionally > which presumably explains why you only see the error in certain > configurations. These checks are done in the body of an inline version of open which calls an appropriate variant based on what arguments are present. I'm guessing that these checks get hoisted into compile time under optimization.