Christian Maeder wrote: > Hi, > > building ghc-6.10.3 under x86 solaris eventually failed with: [...] > 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.
The actual cause is an evil /usr/local/include/iconv.h file that is found first and cannot be easily excluded. But passing the option "-isystem /usr/include" to gcc or setting export C_INCLUDE_PATH=/usr/include makes the haskeline installation not use "-liconv". Cheers Christian _______________________________________________ Glasgow-haskell-users mailing list [email protected] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
