Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Undefined symbols: _iconv_open, _iconv_close

Help
Rus
2008-10-11
2013-05-29
  • Rus
    Rus
    2008-10-11

    Hello clisp users and team,

    Trying to build clisp-2.46 on Leopard (Mac OS X 10.5.5) got this error:

    ....
    rm -rf full
    CLISP_LINKKIT=. MAKE=make ./clisp-link add-module-sets base full gtk2 || (rm -rf full ; exit 1)
    make[1]: Nothing to be done for `clisp-module'.
    gcc -I/usr/local/include -Igllib -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2 -fexpensive-optimizations -falign-functions=4 -DUNIX_BINARY_DISTRIB -DUNICODE -DDYNAMIC_FFI -DNO_GETTEXT -I. -I/Applications/LISP/clisp-2.46/build-gtk -c modules.c
    gcc -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2 -fexpensive-optimizations -falign-functions=4 -DUNIX_BINARY_DISTRIB -DUNICODE -DDYNAMIC_FFI -DNO_GETTEXT -I. -x none modules.o gtk.o -L/sw/lib -L/sw/lib/pango-ft219/lib -L/usr/X11/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXrandr -lXcursor -lXcomposite -lXdamage -lpango-1.0 -lcairo -lX11 -lXfixes -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -L/sw/lib -L/sw/lib/pango-ft219/lib -L/usr/X11/lib -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXrandr -lXcursor -lXcomposite -lXdamage -lpango-1.0 -lcairo -lX11 -lXfixes -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl readline.o -lreadline -lncurses regexi.o regex.o calls.o gettext.o lisp.a -L/usr/local/lib -lreadline -lncurses /usr/local/lib/libavcall.a /usr/local/lib/libcallback.a -liconv -L/usr/local/lib -lsigsegv -lc -o lisp.run
    Undefined symbols:
      "_iconv_open", referenced from:
          _open_iconv in lisp.a(lisp.o)
      "_iconv_close", referenced from:
          _check_charset in lisp.a(lisp.o)
          _check_charset in lisp.a(lisp.o)
          _iconv_mblen in lisp.a(lisp.o)
          _iconv_mblen in lisp.a(lisp.o)
          _iconv_mblen in lisp.a(lisp.o)
          _iconv_mblen in lisp.a(lisp.o)
          _iconv_mbstowcs in lisp.a(lisp.o)
          _iconv_mbstowcs in lisp.a(lisp.o)
          _iconv_mbstowcs in lisp.a(lisp.o)
          _iconv_wcslen in lisp.a(lisp.o)
          _iconv_wcslen in lisp.a(lisp.o)
          _iconv_wcslen in lisp.a(lisp.o)
          _iconv_wcstombs in lisp.a(lisp.o)
          _iconv_wcstombs in lisp.a(lisp.o)
          _iconv_wcstombs in lisp.a(lisp.o)
          _iconv_range in lisp.a(lisp.o)
          _iconv_range in lisp.a(lisp.o)
          _ChannelStream_fini in lisp.a(lisp.o)
          _ChannelStream_fini in lisp.a(lisp.o)
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    ./clisp-link: failed in /Applications/LISP/clisp-2.46/build-gtk/full
    make: *** [full] Error 1

    My Fink-Commander tell me that I have libiconv 1.12-3 installed.

    What's wrong?

    Thanks in advance for any help.

    Sincerely,

      Ruslan Sorokin
      sorokin@oogis.ru

     
    • Rus
      Rus
      2008-10-11

      I have found solution myself:

      ./configure ... --with-libiconv-prefix=/sw ...

      Because I think that fink (:)) put packages into /sw folder.

      Good luck to all,

      Sincerely,

        Ru