Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Trouble compiling 4.2.4 on Mac OS X.3



Are you still having troubles? Try the following patch from <http://www.zsh.org/mla/workers/2005/msg00143.html>:

Index: configure.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.ac,v
retrieving revision 1.25
diff -d -u -r1.25 configure.ac
--- configure.ac	1 Feb 2005 10:53:10 -0000	1.25
+++ configure.ac	3 Feb 2005 18:42:05 -0000
@@ -729,10 +729,11 @@

 AC_CHECK_LIB(iconv, iconv)

-if test "$host_os" = cygwin; then
-dnl cygwin iconv() is really libiconv()
-AC_CHECK_LIB(iconv, libiconv)
-fi
+case "$host_os" in
+  cygwin | darwin*)
+    dnl cygwin iconv() is really libiconv()
+    AC_CHECK_LIB(iconv, libiconv) ;;
+esac

 if test x$enable_pcre = xyes; then
 dnl pcre-config should probably be employed here



On Feb 19, 2005, at 1:52 AM, Quarante-Deux wrote:


Hello,

I have some trouble compiling zsh 4.2.4 on Mac OS X 10.3.8 (Darwin Kernel Version 7.8.0):

gcc -Wl,-x   -o zsh main.o  `cat stamp-modobjs`   -ldl -ltinfo -lm  -lc
ld: Undefined symbols:
_libiconv
_libiconv_close
_libiconv_open
make[1]: *** [zsh] Error 1
make: *** [all] Error 1

zsh 4.2.1 is OK.

Any idea? Thanks

                                                    dom

P.S.: I am not a subscriber.

--
Quarante-Deux : quelques pages sur la Science-Fiction
Ellen C. Herzfeld - Dominique O. Martel
http://www.quarante-deux.org/



Messages sorted by: Reverse Date, Date, Thread, Author