zsh-workers
 help / color / mirror / code / Atom feed
From: "Peter A. Castro" <doctor@fruitbat.org>
To: Peter Stephenson <pws@csr.com>
Cc: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: 4.2.4 failure on MacOS X
Date: Fri, 4 Feb 2005 10:55:15 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.58.0502041025040.17079@ming.fruitbat.org> (raw)
In-Reply-To: <200502031719.j13HJO7b006036@news01.csr.com>

On Thu, 3 Feb 2005, Peter Stephenson wrote:

> > gcc -Wl,-x   -o zsh main.o  `cat stamp-modobjs`   -L/sw/lib -lpcre -ldl
> > -ltinfo -lm  -lc
> > ld: Undefined symbols:
> > _libiconv
> > _libiconv_close
> > _libiconv_open
>
> Another possibility:  this error doesn't show the headers, and we now
> attempt to compile in the iconv stuff if the headers only were found:
>
> #   if defined(HAVE_ICONV_H) || defined(HAVE_ICONV) || defined(HAVE_LIBICONV)
>
> Peter, are the tests for HAVE_ICONV_H really necessary on Cygwin?
> Shouldn't HAVE_LIBICONV be defined from the test you added?

Not really, but it did make sense at the time.  You can't compile without
the header, and you can't link without the library, so both must be
present in some form or another.  It's assumed that if the header is
present the function is available.  The question is what library contains
it?  Under Cygwin, the header was available, but the detection of the
library had to be change because the real function name was 'libiconv',
not 'iconv'.  It's possible for iconv to be contained in a different
library under a different name, so perhaps configure should search a few
more places to find in (maybe using the AC_SEARCH_LIBS macro)?  Can
someone who's got a Mac OS-X environment determine what libraries contain
iconv (and where)?  Or is this a matter of the header exists but the
function doesn't?  I'm not sure how one would safe guard against this
without having some really ugly #if statements, or have it as a configure
option.

-- 
Peter A. Castro <doctor@fruitbat.org> or <Peter.Castro@oracle.com>
	"Cats are just autistic Dogs" -- Dr. Tony Attwood


  reply	other threads:[~2005-02-04 21:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-03 16:15 Peter Stephenson
2005-02-03 16:28 ` Bart Schaefer
2005-02-03 17:10   ` Peter Stephenson
2005-02-03 18:32     ` Clint Adams
2005-02-04 18:59       ` Peter A. Castro
2005-02-03 17:19   ` Peter Stephenson
2005-02-04 18:55     ` Peter A. Castro [this message]
2005-02-03 19:01 ` Motoi Washida
2005-02-04 10:35   ` Peter Stephenson
2005-02-04 19:10   ` Peter A. Castro

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=Pine.LNX.4.58.0502041025040.17079@ming.fruitbat.org \
    --to=doctor@fruitbat.org \
    --cc=pws@csr.com \
    --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).