Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] building swish-e-2.4.5 using gcc 4

From: Judith Retief <JudithR(at)not-real.inet.co.za>
Date: Tue Jul 14 2009 - 07:06:15 GMT
I've managed to get swish-e to build, but I'm not very comfortable with the 'sollution'. I ran configure with the --with-pcre option and it built fine. As the configure script has the line "Not building with perl compatible regex - use --with-pcre to enable", I assume including --with-pcre will build swish-e to use perl-compatible regular expressions.

Why this would make swish-e compile sucessfully is not obvious to me, and I'm not comfortable with problems going away magically :)

Also, would perl-compatible regular expressions be meaningfully different from non-compatible expressions? Basically: does building --with-pcre result in swish providing different search results than without?

Judith



-----Original Message-----
From: Judith Retief 
Sent: Monday, July 13, 2009 08:57 AM
To: 'Swish-e Users Discussion List'
Subject: RE: [swish-e] building swish-e-2.4.5 using gcc 4



> what version of glibc do you have installed? I expect 
> it's a header mismatch, but can't be sure unless you 
> post the error messages you're seeing.

Sorry, I realise answerning c lib compilation errors isn't exactly what this list is for.

On the system where things compile smoothly:
	/lib/libc.so.6 -> libc-2.3.5.so

On the system where it doesn't:
	 /lib/libc.so.6 -> libc-2.7.so



As for the complation errors, things complile find until this step:

make[3]: Entering directory `/root/cms-install/swish-e-2.4.5/src'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.  -Dlibexecdir=\"/usr/local/lib/swish-e\" -DPATH_SEPARATOR=\":\"   -I/usr/include/libxml2 -Ireplace  -Wall -g -O2 -MT search.lo -MD -MP -MF ".deps/search.Tpo" -c -o search.lo search.c; \
        then mv -f ".deps/search.Tpo" ".deps/search.Plo"; else rm -f ".deps/search.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -Dlibexecdir=\"/usr/local/lib/swish-e\" -DPATH_SEPARATOR=\":\" -I/usr/include/libxml2 -Ireplace -Wall -g -O2 -MT search.lo -MD -MP -MF .deps/search.Tpo -c search.c  -fPIC -DPIC -o .libs/search.o
In file included from swish.h:135,
                 from search.c:123:
/usr/include/regex.h:145: error: expected '=', ',', ';', 'asm' or '__attribute__' before 're_void'
/usr/include/regex.h:315: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_'
/usr/include/regex.h:324: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_'
/usr/include/regex.h:326: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TclReFree'
/usr/include/regex.h:327: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_'


_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Tue Jul 14 03:06:29 2009