is the library iconv necessary for haskeline?

Christian Maeder Christian.Maeder at dfki.de
Fri Jun 5 04:50:51 EDT 2009


Hi,

building ghc-6.10.3 under x86 solaris eventually failed with:

Configuring ghc-bin-6.10.3...
cabal-bin: At least the following dependencies are missing:
haskeline -any
gmake[3]: *** [boot.stage.2] Error 1

I think, haskeline is not build because libiconv is missing:

-bash-3.00$ ./Setup configure --prefix=/NONEXISTENT
--bindir=/NONEXISTENT --libdir=/NONEXISTENT --libexecdir=/NONEXISTENT
--datadir=/NONEXISTENT --docdir=/NONEXISTENT --haddockdir=/NONEXISTENT
--htmldir=/NONEXISTENT
--with-compiler=/export/local1/home/maeder/haskell/ghc-6.10.3/ghc/stage1-inplace/ghc
--with-hc-pkg=/export/local1/home/maeder/haskell/ghc-6.10.3/utils/ghc-pkg/install-inplace/bin/ghc-pkg
--libsubdir=$pkgid --with-gcc=gcc --with-ld=/usr/ccs/bin/ld
--with-alex=/home/pub-bkb/bin/alex --with-happy=/home/pub-bkb/bin/happy
--configure-option='--with-cc=gcc
--with-hsc2hs=/export/local1/home/maeder/haskell/ghc-6.10.3/utils/hsc2hs/install-inplace/bin/hsc2hs
--haddock-options=--use-contents=../index.html
--use-index=../doc-index.html' --enable-library-profiling
--enable-split-objs
Configuring haskeline-0.6.1.5...

checking whether to use -liconv... Setup: Unable to link against the
iconv library.

I wonder how this check for -liconv is generated. I have a file
/usr/include/iconv.h but not file /usr/lib/libiconv.*

Under Linux I've installed successfully
http://www.haskell.org/ghc/dist/6.10.3/ghc-6.10.3-i386-unknown-linux-n.tar.bz2
and I was able to install
http://hackage.haskell.org/packages/archive/haskeline/0.6.1.6/haskeline-0.6.1.6.tar.gz
without libiconv!

> ./Setup configure
Configuring haskeline-0.6.1.6...
checking whether to use -liconv... not needed.

However, the mere existence of /usr/local/lib/libiconv* files causes
configure to use -liconv:

checking whether to use -liconv... using -liconv.

I would like to avoid this (unnecessary?) dependency (without removing
/usr/local/lib). (/usr/local/lib is _not_ part of LD_LIBRARY_PATH and
should not be searched by gcc, but is still somehow found and used.)

Are there any configure options that work? (The cabal-flag libiconv is
false.)

How is "checking whether to use ..." generated?

Is libiconv really necessary under Solaris?

Cheers Christian



More information about the Glasgow-haskell-users mailing list