Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] Compiling swish-e on a synology DS210j

From: Peter Karman <peter(at)>
Date: Wed Sep 29 2010 - 20:54:18 GMT wrote on 09/29/2010 03:28 PM:
> Hello Peter,
> indeed, it is. Here is, what happened:
> =====================================================
> DiskStation> CFLAGS='-lexpat' ./configure --prefix=/opt
> checking for build-swish-docs... no
> checking for a BSD-compatible install... config/install-sh -c
> checking whether build environment is sane... yes
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... configure: error: cannot run C compiled
>  programs.

yes, that is very broken. Your build environment (PATH?) sounds mangled.

> DiskStation> make

> make[3]: Entering directory `/volume1/Main/swish-e/swish-e-2.4.7/src'
> /bin/sh ../libtool --tag=CC --mode=link gcc -Wall -D_LARGEFILE_SOURCE -D_LARGEFI
> LE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2   -o swish-e  swish.o keychar_out.o du
> mp.o result_output.o -lm
> ../libtool: line 453: tr: not found

that's not good either.

> 2 -o .libs/swish-e swish.o keychar_out.o dump.o result_output.o  ./.libs/libswis
> hindex.a ./.libs/ -lz -lm -Wl,--rpath -Wl,/opt/lib
> ./.libs/libswishindex.a(xml.o): In function `countwords_XML':
> /volume1/Main/swish-e/swish-e-2.4.7/src/xml.c:123: undefined reference to `XML_P
> arserCreate'


> Have you noticed the line:
> error: cannot run C compiled
>  programs.
> Does not sound promising, does it?
> Isn't it strange, that I have two different version of libexpat at two places?!?
> DiskStation> ls -l /opt/lib/*exp*
> lrwxrwxrwx    1 root     root            17 Sep  1 22:37 /opt/lib/ ->
> lrwxrwxrwx    1 root     root            17 Sep  1 22:37 /opt/lib/
> ->
> -rwxr-xr-x    1 root     root        119228 May 14 04:04 /opt/lib/
> 5.2
> DiskStation> ls -l /lib/*exp*
> -rwxr-xr-x    1 root     root        126140 Sep 21 12:06 /lib/
> -rwxr-xr-x    1 root     root         29196 Sep 21 12:44 /lib/

It's not unusual for a system to have multiple versions of the same
software. But, the expat source is distributed with your swish-e src, in
src/expat. So swish-e should ignore the installed version(s). If it is
*not* ignoring them, for whatever reason, is where you might be running
into problems. I wonder if the --rpath -Wl,/opt/lib part of your gcc
command is causing problems. Can you try this:

 % cd src
-o .libs/swish-e swish.o keychar_out.o dump.o result_output.o \
./.libs/libswishindex.a ./.libs/ -lz -lm

basically, manually running the gcc command.

But I think you're missing some build tools (tr, e.g.); either they are
not on this system, or your PATH is not including them.

Peter Karman  .  .  peter(at)
Users mailing list
Received on Wed Sep 29 16:54:20 2010