Skip to main content.
home | support | download

Back to List Archive

Help needed to compiling in windows

From: Ander <redna(at)not-real.euskalerria.org>
Date: Thu Apr 27 2006 - 11:35:41 GMT
Hi everybody,

I'm trying to cross-compile swish-e for windows on ubuntu following the 
instructions in http://swishewiki.org/index.php/Win32#Building
but I'm having errors that abort the make operation. First, it says that 
it can't find regex.h library and stops. If I copy that library in the 
src folder, the compilation goes ahead but also fails some time after. 
The error now is something related to regexp too. Does anyone know 
what's going on?

Here is attached the output:

Without regex.h in the src folder:
====================================

i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I. -I. 
-Dlibexecdir=\"/usr/local/lib/swish-e\" -DPATH_SEPARATOR=\":\" -Ireplace 
-Wall -g -O2 -MT search.lo -MD -MP -MF .deps/search.Tpo -c search.c  
-DDLL_EXPORT -DPIC -o .libs/search.o
In file included from search.c:111:
swish.h:125:19: regex.h: No such file or directory
In file included from search.c:111:
swish.h:730: error: syntax error before "regex_t"
swish.h:730: warning: no semicolon at end of struct or union
swish.h:737: error: syntax error before '}' token
swish.h:737: warning: type defaults to `int' in declaration of `regex_list'
swish.h:737: warning: data definition has no type or storage class
swish.h:743: error: syntax error before "regex_list"
swish.h:743: warning: no semicolon at end of struct or union
swish.h:744: warning: type defaults to `int' in declaration of 
`path_extract_list'
swish.h:744: warning: data definition has no type or storage class
swish.h:876: error: syntax error before "regex_list"
swish.h:876: warning: no semicolon at end of struct or union
swish.h:881: warning: type defaults to `int' in declaration of 
`pathExtractList'swish.h:881: warning: data definition has no type or 
storage class
swish.h:976: error: syntax error before '}' token
swish.h:976: warning: type defaults to `int' in declaration of `SWISH'
swish.h:976: warning: data definition has no type or storage class
swish.h:999: error: syntax error before '*' token
swish.h:1000: error: syntax error before '*' token
swish.h:1010: error: syntax error before '*' token
swish.h:1011: error: syntax error before '*' token
swish.h:1011: warning: type defaults to `int' in declaration of `SwishNew'
swish.h:1011: warning: data definition has no type or storage class
swish.h:1012: error: syntax error before '*' token
swish.h:1038: error: syntax error before '*' token
swish.h:1038: warning: type defaults to `int' in declaration of `SwishInit'
swish.h:1038: warning: data definition has no type or storage class
swish.h:1039: error: syntax error before '*' token
swish.h:1040: error: syntax error before '*' token
swish.h:1041: error: syntax error before '*' token
In file included from search.c:113:
swstring.h:32: error: 'replace' redeclared as different kind of symbol
swish.h:731: error: previous declaration of 'replace' was here
swstring.h:40: error: syntax error before '*' token
In file included from swstring.h:97,
                 from search.c:113:
swregex.h:4: error: syntax error before "regex_list"
swregex.h:5: error: syntax error before "regex_list"
swregex.h:7: error: syntax error before "regex_list"
swregex.h:8: error: syntax error before "regex_list"
swregex.h:10: error: syntax error before '*' token
swregex.h:11: error: syntax error before '*' token
In file included from search.c:115:
search.h:77: error: syntax error before "SWISH"
search.h:77: warning: no semicolon at end of struct or union
search.h:86: error: syntax error before '}' token
search.h:167: error: syntax error before "SWISH"
search.h:167: warning: no semicolon at end of struct or union
search.h:188: error: syntax error before '}' token
search.h:190: error: syntax error before '*' token
search.h:192: error: syntax error before '*' token
search.h:200: error: syntax error before '*' token


Including regex.h in the src folder:
===================================
/bin/sh ../libtool --mode=link i586-mingw32msvc-gcc -Wall -g -O2   -o 
swish-e.exe  swish.o keychar_out.o dump.o result_output.o 
libswishindex.la libswish-e.la -lm
i586-mingw32msvc-gcc -Wall -g -O2 -o swish-e.exe swish.o keychar_out.o 
dump.o result_output.o  ./.libs/libswishindex.a ./.libs/libswish-e.a -lm
/.libs/libswishindex.a(swregex.o)(.text+0x22): In function 
`match_regex_list':
/home/ander/bilatzailea/orijinala/swish-e-2.4.3/src/swregex.c:203: 
undefined reference to `_regexec'
/.libs/libswishindex.a(swregex.o)(.text+0x96):/home/ander/bilatzailea/orijinala/swish-e-2.4.3/src/swregex.c:203: 
undefined reference to `_regexec'
/.libs/libswishindex.a(swregex.o)(.text+0x105): In function 
`regex_replace':
/home/ander/bilatzailea/orijinala/swish-e-2.4.3/src/swregex.c:275: 
undefined reference to `_regexec'
/.libs/libswishindex.a(swregex.o)(.text+0x13b):/home/ander/bilatzailea/orijinala/swish-e-2.4.3/src/swregex.c:271: 
undefined reference to `_regexec'
/.libs/libswishindex.a(swregex.o)(.text+0x178):/home/ander/bilatzailea/orijinala/swish-e-2.4.3/src/swregex.c:275: 
undefined reference to `_regexec'
/.libs/libswishindex.a(swregex.o)(.text+0x43f): In function 
`free_regex_list':
/home/ander/bilatzailea/orijinala/swish-e-2.4.3/src/swregex.c:402: 
undefined reference to `_regfree'
/.libs/libswishindex.a(swregex.o)(.text+0x4b4): In function 
`add_regular_expression':
/home/ander/bilatzailea/orijinala/swish-e-2.4.3/src/swregex.c:428: 
undefined reference to `_regcomp'
collect2: ld returned 1 exit status
make[3]: *** [swish-e.exe] Error 1
make[3]: Leaving directory 
`/home/ander/bilatzailea/orijinala/swish-e-2.4.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/home/ander/bilatzailea/orijinala/swish-e-2.4.3/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/home/ander/bilatzailea/orijinala/swish-e-2.4.3/src'
make: *** [all-recursive] Error 1

___________________________________________________________________________________________
Lortu posta elektronikoa doan >> http://www.euskalerria.org
Received on Thu Apr 27 04:35:49 2006