9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Edward E Elzey <eee@lafvb.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] compiler warnings for libavl/avl.c
Date: Tue,  2 Mar 2010 12:50:14 -0500	[thread overview]
Message-ID: <4B8D4FD6.6030302@lafvb.com> (raw)
In-Reply-To: <twig.1267551627.47659@swcp.com>

EBo wrote:

>>> -int errno;
>>> +#include <errno.h>

> I simply noticed the patch and was wondering if there would be any advantage
> to including it, so I have no idea if there is any specific advantage.  I also
> was not sure if this was simply a POSIX'ism or a 9'ism, and if this
> could/should be cleaned up.

Actually the good folks at Linux have broken errno:

9l -o o.9660srv main.o 9660srv.o xfile.o iobuf.o data.o
/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss
mismatches non-TLS reference in main.o
/lib/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status

The include of errno.h is a necessary appeasment.

--
To err is human, to aaaaaargh: pirate.
Have you been touched by His noodley appendage?



  reply	other threads:[~2010-03-02 17:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-26  9:43 [9fans] Has Anyone compiled 9vx on snow leopard ? prem
2010-02-26 15:16 ` Oleg Finkelshteyn
2010-03-02 17:02   ` [9fans] compiler warnings for libavl/avl.c EBo
2010-03-02 17:12     ` erik quanstrom
2010-03-02 17:40   ` EBo
2010-03-02 17:50     ` Edward E Elzey [this message]
2010-03-02 17:52     ` erik quanstrom
2010-03-02 18:41       ` EBo
2010-03-04 18:10         ` Russ Cox
2010-03-01  9:49 ` [9fans] Has Anyone compiled 9vx on snow leopard ? prem
2010-03-01  9:49 ` prem
2010-03-01 10:30   ` John Stalker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B8D4FD6.6030302@lafvb.com \
    --to=eee@lafvb.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).