#13 hunspell fails to build if -lintl.so doesn't link -liconv

closed-fixed
nobody
None
5
2010-03-04
2008-08-27
David Sainty
No

/bin/bash ../../libtool --tag=CXX --mode=link g++ -O2 -I/usr/pkgroot3/include -L/usr/pkgroot3/lib -Wl,-R/usr/pkgroot3/lib -o hunspell hunspell.o -lintl ../hunspell/libhunspell-1.2.la ../parsers/libparsers.a -lcurses
g++ -O2 -I/home/pkgsrc3/pkgsrc/textproc/hunspell/work/.buildlink/include -Wl,-R/usr/pkgroot3/lib -o .libs/hunspell hunspell.o -L/home/pkgsrc3/pkgsrc/textproc/hunspell/work/.buildlink/lib /home/pkgsrc3/pkgsrc/textproc/hunspell/work/.buildlink/lib/libintl.so -lc ../hunspell/.libs/libhunspell-1.2.so ../parsers/libparsers.a /home/pkgsrc3/pkgsrc/textproc/hunspell/work/.buildlink/lib/libncurses.so -Wl,--rpath -Wl,/home/pkgsrc3/pkgsrc/textproc/hunspell/work/.buildlink/lib -Wl,--rpath -Wl,/usr/pkgroot3/lib
hunspell.o: In function `chenc(char*, char const*, char const*)':
hunspell.cxx:(.text+0x902): undefined reference to `libiconv_open'
hunspell.cxx:(.text+0x92d): undefined reference to `libiconv'
hunspell.cxx:(.text+0x937): undefined reference to `libiconv_close'
hunspell.o: In function `get_parser(int, char*, Hunspell*)':
hunspell.cxx:(.text+0x2141): undefined reference to `libiconv_open'
hunspell.cxx:(.text+0x21c7): undefined reference to `libiconv'
hunspell.cxx:(.text+0x2243): undefined reference to `libiconv_close'
hunspell.cxx:(.text+0x22f0): undefined reference to `libiconv_open'
hunspell.cxx:(.text+0x232b): undefined reference to `libiconv'
hunspell.cxx:(.text+0x2333): undefined reference to `libiconv_close'
hunspell.cxx:(.text+0x2411): undefined reference to `libiconv_open'
hunspell.cxx:(.text+0x244c): undefined reference to `libiconv'
hunspell.cxx:(.text+0x2454): undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
*** Error code 1

Stop.
bmake: stopped in /home/pkgsrc3/pkgsrc/textproc/hunspell/work/hunspell-1.2.2/src/tools

Discussion

  • David Sainty
    David Sainty
    2008-08-27

    Link instructions for libiconv

     
    Attachments
  • fix checked in

     
    • status: open --> closed-fixed