[tlbuild] xindy, clisp & libiconv

Mojca Miklavec mojca.miklavec.lists at gmail.com
Wed May 16 19:01:45 CEST 2012


Hello,

I have (or rather had) a few questions about clisp. Following the
instructions for installing xindy, I get "error: #error
HAVE_GOOD_ICONV should be defined in this configuration!" during clisp
installation.

gcc -I/home/mojca/build/clisp/clisp-tools/include
-I/home/mojca/build/clisp/clisp-build/gllib -g -O2 -W -Wswitch
-Wcomment -Wpointer-arith -Wimplicit -Wreturn-type
-Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2
-falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_MODULES -DNO_READLINE
-DNO_GETTEXT -I. -c encoding.c
/home/mojca/build/clisp/clisp-2.49/src/encoding.d:1986:2: error:
#error HAVE_GOOD_ICONV should be defined in this configuration!
make: *** [encoding.o] Error 1

I configured it with

./configure --with-libsigsegv-prefix=$clisp_toolsdir
--without-readline --disable-nls
--with-libinconv-prefix=$clisp_toolsdir $clisp_builddir

after installing libiconv to $clisp_toolsdir, but I realized that
./configure fails to recognize libiconv:
    checking for iconv... (cached) no, consider installing GNU libiconv

Inspection of config.log reveals that compiling a simple program:
    #include <stdlib.h>
    #include <iconv.h>
    int
    main ()
    {
    iconv_t cd = iconv_open("","");
           iconv(cd,NULL,NULL,NULL,NULL);
           iconv_close(cd);
      ;
      return 0;
    }
fails with:
    configure:20101: gcc -o conftest -g -O2
-I/home/mojca/build/clisp/clisp-tools/include  conftest.c  >&5
    /tmp/ccqmTZuZ.o: In function `main':
    /home/mojca/build/clisp/clisp-build/conftest.c:149: undefined
reference to `libiconv_open'
    /home/mojca/build/clisp/clisp-build/conftest.c:150: undefined
reference to `libiconv'
    /home/mojca/build/clisp/clisp-build/conftest.c:151: undefined
reference to `libiconv_close'
which is understandable since the line should probably be something like
    gcc -o conftest -g -O2
-I/home/mojca/build/clisp/clisp-tools/include
-L/home/mojca/build/clisp/clisp-tools/lib -liconv
(including -liconv and -L flag)

Help says:
    --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
but it doesn't even add DIR/lib.


I then tried
    LDFLAGS="-liconv -L$clisp_toolsdir/lib" ./configure
--with-libsigsegv-prefix=$clisp_toolsdir --without-readline
--disable-nls --with-libinconv-prefix=$clisp_toolsdir --with-debug
$clisp_builddir
but it doesn't even configure with those two flags, it ends with an error:
    ./conftest: error while loading shared libraries: libiconv.so.2:
cannot open shared object file: No such file or directory

I then had to delete clips-tools/lib/libiconv.so*

Finally it started compiling, but failed at

gcc -I/home/mojca/build/clisp/clisp-tools/include
-I/home/mojca/build/clisp/clisp-build/gllib -g -O2 -W -Wswitch
-Wcomment -Wpointer-arith -Wimplicit -Wreturn-type
-Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral
-falign-functions=4 -g -O0 -DDEBUG_OS_ERROR -DDEBUG_SPVW
-DDEBUG_BYTECODE -DSAFETY=3 -DENABLE_UNICODE -DDYNAMIC_MODULES
-DNO_READLINE -DNO_GETTEXT -I. -x assembler -c arimips64.s
arimips64.s: Assembler messages:
arimips64.s:32: Error: opcode not supported on this processor: mips1
(mips1) `daddu $4,4'
arimips64.s:34: Error: opcode not supported on this processor: mips1
(mips1) `daddu $5,4'
arimips64.s:45: Error: opcode not supported on this processor: mips1
(mips1) `dsubu $4,4'
arimips64.s:47: Error: opcode not supported on this processor: mips1
(mips1) `dsubu $5,4'
arimips64.s:60: Error: opcode not supported on this processor: mips1
(mips1) `daddu $4,4'
arimips64.s:71: Error: opcode not supported on this processor: mips1
(mips1) `dsubu $4,4'

I guess this means that I should not even bother with xindy unless I
want to dive into some really ugly business?

Mojca


More information about the tlbuild mailing list