zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <clint@zsh.org>
To: Lasse Kliemann <lasse-list-zsh-workers-2007@mail.plastictree.net>
Cc: zsh-workers@sunsite.dk
Subject: Re: Bug report: count undeclared in utils.c
Date: Sun, 27 May 2007 10:30:42 -0400	[thread overview]
Message-ID: <20070527143042.GA2437@scowler.net> (raw)
In-Reply-To: <20070527115223.GD3500@enterprise.starfleet>

> Compiling zsh 4.3.4 on OpenBSD, I get:
> 
> utils.c: In function `getkeystring':
> utils.c:4746: error: `count' undeclared (first use in this function)
> utils.c:4746: error: (Each undeclared identifier is reported only once
> utils.c:4746: error: for each function it appears in.)
> 
> Having a look at the source utils.c, I suspect that `count' is really 
> undeclared in case that 
> 
> - `HAVE_NL_LANGINFO' and `CODESET' are defined,
> - and `HAVE_ICONV' is not defined,
> - and one of the following is also not defined: `HAVE_WCHAR_H', 
>   `HAVE_WCTOMB', `__STDC_ISO_10646__'.
> 
> Maybe this is a rare configuration that only occurs on OpenBSD.

Builds and passes 'make check' for me on OpenBSD 3.5.  GNU iconv is in
/usr/local but I didn't tell configure to find it there.

config.h lines:

#define HAVE_NL_LANGINFO 1
/* #undef HAVE_ICONV */
/* #undef HAVE_WCHAR_H */
#define HAVE_WCTOMB 1


wchar_t and wctomb are defined in stdlib.h; there is no wchar.h.
__STDC_ISO_10646__ does not appear to be defined anywhere.


  reply	other threads:[~2007-05-27 14:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-27 11:52 Lasse Kliemann
2007-05-27 14:30 ` Clint Adams [this message]
2007-05-27 17:56 ` Phil Pennock

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=20070527143042.GA2437@scowler.net \
    --to=clint@zsh.org \
    --cc=lasse-list-zsh-workers-2007@mail.plastictree.net \
    --cc=zsh-workers@sunsite.dk \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).