Skip to main content.
home | support | download

Back to List Archive

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

From: <d_engel(at)not-real.gmx.de>
Date: Wed Sep 29 2010 - 20:28:31 GMT
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.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
DiskStation> make
Making all in filters
make[1]: Entering directory `/volume1/Main/swish-e/swish-e-2.4.7/filters'
Making all in SWISH
make[2]: Entering directory `/volume1/Main/swish-e/swish-e-2.4.7/filters/SWISH'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/volume1/Main/swish-e/swish-e-2.4.7/filters/SWISH'
make[2]: Entering directory `/volume1/Main/swish-e/swish-e-2.4.7/filters'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/volume1/Main/swish-e/swish-e-2.4.7/filters'
make[1]: Leaving directory `/volume1/Main/swish-e/swish-e-2.4.7/filters'
Making all in prog-bin
make[1]: Entering directory `/volume1/Main/swish-e/swish-e-2.4.7/prog-bin'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/volume1/Main/swish-e/swish-e-2.4.7/prog-bin'
Making all in conf
make[1]: Entering directory `/volume1/Main/swish-e/swish-e-2.4.7/conf'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/volume1/Main/swish-e/swish-e-2.4.7/conf'
Making all in filter-bin
make[1]: Entering directory `/volume1/Main/swish-e/swish-e-2.4.7/filter-bin'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/volume1/Main/swish-e/swish-e-2.4.7/filter-bin'
Making all in example
make[1]: Entering directory `/volume1/Main/swish-e/swish-e-2.4.7/example'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/volume1/Main/swish-e/swish-e-2.4.7/example'
Making all in html
make[1]: Entering directory `/volume1/Main/swish-e/swish-e-2.4.7/html'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/volume1/Main/swish-e/swish-e-2.4.7/html'
Making all in man
make[1]: Entering directory `/volume1/Main/swish-e/swish-e-2.4.7/man'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/volume1/Main/swish-e/swish-e-2.4.7/man'
Making all in src
make[1]: Entering directory `/volume1/Main/swish-e/swish-e-2.4.7/src'
make  all-recursive
make[2]: Entering directory `/volume1/Main/swish-e/swish-e-2.4.7/src'
Making all in expat
make[3]: Entering directory `/volume1/Main/swish-e/swish-e-2.4.7/src/expat'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/volume1/Main/swish-e/swish-e-2.4.7/src/expat'
Making all in replace
make[3]: Entering directory `/volume1/Main/swish-e/swish-e-2.4.7/src/replace'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/volume1/Main/swish-e/swish-e-2.4.7/src/replace'
Making all in snowball
make[3]: Entering directory `/volume1/Main/swish-e/swish-e-2.4.7/src/snowball'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/volume1/Main/swish-e/swish-e-2.4.7/src/snowball'
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
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'
/volume1/Main/swish-e/swish-e-2.4.7/src/xml.c:159: undefined reference to `XML_S
etUserData'
/volume1/Main/swish-e/swish-e-2.4.7/src/xml.c:160: undefined reference to `XML_S
etElementHandler'
/volume1/Main/swish-e/swish-e-2.4.7/src/xml.c:161: undefined reference to `XML_S
etCharacterDataHandler'
/volume1/Main/swish-e/swish-e-2.4.7/src/xml.c:168: undefined reference to `XML_P
arse'
/volume1/Main/swish-e/swish-e-2.4.7/src/xml.c:174: undefined reference to `XML_P
arserFree'
/volume1/Main/swish-e/swish-e-2.4.7/src/xml.c:164: undefined reference to `XML_S
etCommentHandler'
/volume1/Main/swish-e/swish-e-2.4.7/src/xml.c:168: undefined reference to `XML_P
arse'
/volume1/Main/swish-e/swish-e-2.4.7/src/xml.c:169: undefined reference to `XML_G
etCurrentLineNumber'
/volume1/Main/swish-e/swish-e-2.4.7/src/xml.c:169: undefined reference to `XML_G
etErrorCode'
/volume1/Main/swish-e/swish-e-2.4.7/src/xml.c:169: undefined reference to `XML_E
rrorString'
collect2: ld returned 1 exit status
make[3]: *** [swish-e] Error 1
make[3]: Leaving directory `/volume1/Main/swish-e/swish-e-2.4.7/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/volume1/Main/swish-e/swish-e-2.4.7/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/volume1/Main/swish-e/swish-e-2.4.7/src'
make: *** [all-recursive] Error 1
===============================================================

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

Thank you for your help so far!!
Regards,
     Dieter
-- 
GRATIS: Spider-Man 1-3 sowie 300 weitere Videos!
Jetzt freischalten! http://portal.gmx.net/de/go/maxdome
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Wed Sep 29 16:28:35 2010