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)not-real.peknet.com>
Date: Wed Sep 29 2010 - 20:54:18 GMT
d_engel@gmx.de 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 libswishindex.la libswish-e.la -lm
> ../libtool: line 453: tr: not found

that's not good either.

> gcc -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -O
> 2 -o .libs/swish-e swish.o keychar_out.o dump.o result_output.o  ./.libs/libswis
> hindex.a ./.libs/libswish-e.so -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'

[snip]

> 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/libexpat.so ->
>  libexpat.so.1.5.2
> lrwxrwxrwx    1 root     root            17 Sep  1 22:37 /opt/lib/libexpat.so.1
> -> libexpat.so.1.5.2
> -rwxr-xr-x    1 root     root        119228 May 14 04:04 /opt/lib/libexpat.so.1.
> 5.2
> DiskStation> ls -l /lib/*exp*
> -rwxr-xr-x    1 root     root        126140 Sep 21 12:06 /lib/libexpat.so.0
> -rwxr-xr-x    1 root     root         29196 Sep 21 12:44 /lib/libexportent.so
> 

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
 % gcc -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \
-D_FILE_OFFSET_BITS=64 -g -O2 \
-o .libs/swish-e swish.o keychar_out.o dump.o result_output.o \
./.libs/libswishindex.a ./.libs/libswish-e.so -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  .  http://peknet.com/  .  peter(at)not-real.peknet.com
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Wed Sep 29 16:54:20 2010